Commit 318b88d0b612fe1ba592baf642e20e3ed33bfcd2
1 parent
51b6469a
consolidate output
Showing
1 changed file
with
12 additions
and
8 deletions
Show diff stats
nearfield.cpp
@@ -167,7 +167,8 @@ void nearfieldStruct::Simulate() | @@ -167,7 +167,8 @@ void nearfieldStruct::Simulate() | ||
167 | calcUs(); | 167 | calcUs(); |
168 | sumUf(); | 168 | sumUf(); |
169 | 169 | ||
170 | - //U.Mag().toImage("testU.bmp"); | 170 | + if(verbose) |
171 | + U.Mag().toImage("testU.bmp"); | ||
171 | } | 172 | } |
172 | 173 | ||
173 | void nearfieldStruct::calcBesselLut(ptype* j, ptype d_min, ptype d_max, int dR) | 174 | 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) | @@ -216,16 +217,19 @@ void nearfieldStruct::calcBesselLut(ptype* j, ptype d_min, ptype d_max, int dR) | ||
216 | } | 217 | } |
217 | } | 218 | } |
218 | 219 | ||
219 | - /*ofstream outfile("uf_besselout.txt"); | ||
220 | - for(int ir = 0; ir < dR; ir++) | 220 | + if(verbose) |
221 | { | 221 | { |
222 | - outfile<<ir*dr + d_min<<endl; | ||
223 | - for(int l = 0; l<=Nl; l++) | 222 | + ofstream outfile("uf_besselout.txt"); |
223 | + for(int ir = 0; ir < dR; ir++) | ||
224 | { | 224 | { |
225 | - outfile<<j[ir * (Nl+1) + l]<<" --"; | 225 | + outfile<<ir*dr + d_min<<endl; |
226 | + for(int l = 0; l<=Nl; l++) | ||
227 | + { | ||
228 | + outfile<<j[ir * (Nl+1) + l]<<" -- "; | ||
229 | + } | ||
230 | + outfile<<endl; | ||
226 | } | 231 | } |
227 | - outfile<<endl; | 232 | + outfile.close(); |
228 | } | 233 | } |
229 | - outfile.close();*/ | ||
230 | 234 | ||
231 | } | 235 | } |