diff options
author | eschnett <eschnett@4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843> | 2010-06-15 21:25:40 +0000 |
---|---|---|
committer | eschnett <eschnett@4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843> | 2010-06-15 21:25:40 +0000 |
commit | d7d60ca1b83ef02c1b8f78ac2709c3f4a7190583 (patch) | |
tree | b69daf1479bff6c5b6d577d81b2fb8a77444305a /src/multipole.cc | |
parent | b3389798247f453fb955a903c4cfee56986f335e (diff) |
Corrects parameter ranges and their description
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/Multipole/trunk@63 4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843
Diffstat (limited to 'src/multipole.cc')
-rw-r--r-- | src/multipole.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multipole.cc b/src/multipole.cc index 1a2881a..6f8848c 100644 --- a/src/multipole.cc +++ b/src/multipole.cc @@ -130,7 +130,7 @@ static void output_1D(CCTK_ARGUMENTS, const variable_desc *v, CCTK_REAL rad, if (CCTK_MyProc(cctkGH) == 0) { - if (out_1d_every != 0 && (cctk_iteration) % out_1d_every == 0) + if (out_1d_every != 0 && cctk_iteration % out_1d_every == 0) { const char *real_name = CCTK_VarName(v->index); sprintf(name_tmp, "mp_%s_r%1.2f.th.asc", real_name, rad); @@ -280,7 +280,7 @@ extern "C" void Multipole_Calc(CCTK_ARGUMENTS) int i, array_size=(ntheta+1)*(nphi+1); CCTK_REAL real_lm = 0.0, imag_lm = 0.0; - if (cctk_iteration % out_every != 0) + if (out_every == 0 || cctk_iteration % out_every != 0) return; int lmax = get_l_max(); |