aboutsummaryrefslogtreecommitdiff
path: root/src/Courant.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Courant.c')
-rw-r--r--src/Courant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Courant.c b/src/Courant.c
index 9687f7b..ade4e53 100644
--- a/src/Courant.c
+++ b/src/Courant.c
@@ -55,7 +55,8 @@ void Time_Courant(CCTK_ARGUMENTS)
}
else if (CCTK_Equals(timestep_method,"courant_speed"))
{
- *courant_dt = courant_fac/(*courant_wave_speed)/sqrt((double) cctk_dim);
+ *courant_dt = courant_fac*min_spacing/
+ (*courant_wave_speed)/sqrt((double) cctk_dim);
}
/* Set the Cactus timestep */