aboutsummaryrefslogtreecommitdiff
path: root/src/Courant.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Courant.c')
-rw-r--r--src/Courant.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Courant.c b/src/Courant.c
index d40fb84..ba6587e 100644
--- a/src/Courant.c
+++ b/src/Courant.c
@@ -74,12 +74,15 @@ void Time_Courant(CCTK_ARGUMENTS)
cctkGH->cctk_delta_time = *courant_dt;
if (verbose)
{
- CCTK_VInfo(CCTK_THORNSTRING,"Time step set to %f",cctkGH->cctk_delta_time);
+ CCTK_VInfo(CCTK_THORNSTRING,"Time step set to %g",cctkGH->cctk_delta_time);
}
}
else
{
cctkGH->cctk_delta_time = dtfac*min_spacing;
- CCTK_VInfo(CCTK_THORNSTRING,"Courant timestep would be %f",*courant_dt);
+ if (cctkGH->cctk_iteration % timestep_outevery == 0)
+ {
+ CCTK_VInfo(CCTK_THORNSTRING,"Courant timestep would be %g",*courant_dt);
+ }
}
}