From 318b88d0b612fe1ba592baf642e20e3ed33bfcd2 Mon Sep 17 00:00:00 2001 From: dmayerich Date: Fri, 13 Dec 2013 13:50:45 -0600 Subject: [PATCH] consolidate output --- nearfield.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/nearfield.cpp b/nearfield.cpp index 5b4af2c..2802520 100644 --- a/nearfield.cpp +++ b/nearfield.cpp @@ -167,7 +167,8 @@ void nearfieldStruct::Simulate() calcUs(); sumUf(); - //U.Mag().toImage("testU.bmp"); + if(verbose) + U.Mag().toImage("testU.bmp"); } void nearfieldStruct::calcBesselLut(ptype* j, ptype d_min, ptype d_max, int dR) @@ -216,16 +217,19 @@ void nearfieldStruct::calcBesselLut(ptype* j, ptype d_min, ptype d_max, int dR) } } - /*ofstream outfile("uf_besselout.txt"); - for(int ir = 0; ir < dR; ir++) + if(verbose) { - outfile<