diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Courant.c | 7 | ||||
-rw-r--r-- | src/Simple.c | 2 |
2 files changed, 6 insertions, 3 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); + } } } diff --git a/src/Simple.c b/src/Simple.c index 39c049c..af22128 100644 --- a/src/Simple.c +++ b/src/Simple.c @@ -63,7 +63,7 @@ void Time_Simple(CCTK_ARGUMENTS) } CCTK_VInfo(CCTK_THORNSTRING, - "Timestep set to %f (Simple Courant)",cctkGH->cctk_delta_time); + "Timestep set to %g (courant_static)",cctkGH->cctk_delta_time); } |