aboutsummaryrefslogtreecommitdiff
path: root/src/Courant.c
diff options
context:
space:
mode:
authorallen <allen@5633253d-7678-4964-a54d-f87795f8ee59>2000-09-15 10:28:37 +0000
committerallen <allen@5633253d-7678-4964-a54d-f87795f8ee59>2000-09-15 10:28:37 +0000
commit8818164ee93781355a88da4bc40bea0ee179a16d (patch)
tree4130b28654785d16323edf31d6df812bcfa61363 /src/Courant.c
parenta69ca9960f5eed7aec267de705a2b8554fe5c450 (diff)
Changes to better parameter names after adding new fixed timestep choice.
THESE SHOULDNT AFFECT ANYONE UNLESS THEY ARE USING DYNAMIC COURANT TIMESTEPS THE DEFAULTS REMAIN THE SAME Main one is that courant_method->timestep_method git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Time/trunk@28 5633253d-7678-4964-a54d-f87795f8ee59
Diffstat (limited to 'src/Courant.c')
-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;