aboutsummaryrefslogtreecommitdiff
path: root/src/multipole.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/multipole.cc')
-rw-r--r--src/multipole.cc4
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();