aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Courant.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Courant.c b/src/Courant.c
index 81cfa60..eb778d3 100644
--- a/src/Courant.c
+++ b/src/Courant.c
@@ -47,18 +47,18 @@ void Time_Courant(CCTK_ARGUMENTS)
}
/* Calculate the courant timestep */
- if (CCTK_Equals(courant_method,"courant_time"))
+ if (CCTK_Equals(timestep_method,"courant_time"))
{
- *courant_dt = courant_fac*(*courant_time)/sqrt((CCTK_REAL )cctk_dim);
+ *courant_dt = courant_fac*(*courant_min_time)/sqrt((CCTK_REAL )cctk_dim);
}
- else if (CCTK_Equals(courant_method,"courant"))
+ else if (CCTK_Equals(timestep_method,"courant_speed"))
{
*courant_dt = courant_fac/(*courant_wave_speed)/sqrt((CCTK_REAL )cctk_dim);
}
/* Set the Cactus timestep */
- if (! courant_outonly)
+ if (! timestep_outonly)
{
cctkGH->cctk_delta_time = *courant_dt;