diff options
author | rhaas <rhaas@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2012-09-14 22:52:36 +0000 |
---|---|---|
committer | rhaas <rhaas@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2012-09-14 22:52:36 +0000 |
commit | bc72dcd963066de6c3359f4d97f6e05ee1a093d0 (patch) | |
tree | 59d58b997f6c1f60df3ccf550379d3116a507f12 /src/ParamCheck.c | |
parent | 26067015fd74e5079d09a589fc3bab9e7fd13f22 (diff) |
This patch cleans up the code, improves performance of the MoL loops since it
combines several loops into one, and reduces the required scratch space.
Code originally by Erik, tested by Christian Reisswig.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@178 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'src/ParamCheck.c')
-rw-r--r-- | src/ParamCheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ParamCheck.c b/src/ParamCheck.c index 5ae51d6..b80aa1b 100644 --- a/src/ParamCheck.c +++ b/src/ParamCheck.c @@ -172,10 +172,10 @@ void MoL_ParamCheck(CCTK_ARGUMENTS) "number of intermediate steps must be 10 and the number of scratch levels at least 10"); } - if ( (CCTK_Equals(ODE_Method, "RK4-RK2"))&&( !((MoL_Intermediate_Steps == 4) || (MoL_Num_Scratch_Levels > 3))) ) + if ( (CCTK_Equals(ODE_Method, "RK4-RK2"))&&( !((MoL_Intermediate_Steps == 4) || (MoL_Num_Scratch_Levels > 0))) ) { CCTK_PARAMWARN("When using the multirate RK4-RK2 evolver the " - "number of intermediate steps must be 4 and the number of scratch levels at least 3"); + "number of intermediate steps must be 4 and the number of scratch levels at least 1"); } if (adaptive_stepsize) |