aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/OutputInfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OutputInfo.c b/src/OutputInfo.c
index 8a813c2..f9b21a4 100644
--- a/src/OutputInfo.c
+++ b/src/OutputInfo.c
@@ -202,7 +202,7 @@ int IOBasic_TimeForInfoOutput (const cGH *GH, int vindex)
/* check if this variable should be output */
retval = myGH->outInfo_every > 0 &&
- GH->cctk_iteration % myGH->outInfo_every &&
+ (GH->cctk_iteration % myGH->outInfo_every == 0) &&
myGH->info_reductions[vindex].num_reductions > 0;
if (retval)
{