From 8818164ee93781355a88da4bc40bea0ee179a16d Mon Sep 17 00:00:00 2001 From: allen Date: Fri, 15 Sep 2000 10:28:37 +0000 Subject: 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 --- src/Courant.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3