diff options
Diffstat (limited to 'src/Courant.c')
-rw-r--r-- | src/Courant.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Courant.c b/src/Courant.c index 7499c41..ea1a6cc 100644 --- a/src/Courant.c +++ b/src/Courant.c @@ -64,19 +64,15 @@ void Time_Courant(CCTK_ARGUMENTS) /* Set the Cactus timestep */ - if (! timestep_outonly) + if (!timestep_outonly) { cctkGH->cctk_delta_time = *courant_dt; - - message = (char *)malloc(1024*sizeof(char)); - sprintf(message,"Time step set to %f",cctkGH->cctk_delta_time); - CCTK_INFO(message); - free(message); - + CCTK_VInfo(CCTK_THORNSTRING,"Time step set to %f",cctkGH->cctk_delta_time); } else { - cctkGH->cctk_delta_time = dtfac*min_spacing; + cctkGH->cctk_delta_time = dtfac*min_spacing; + CCTK_VInfo(CCTK_THORNSTRING,"Courant timestep would be %f",*courant_dt); } |