aboutsummaryrefslogtreecommitdiff
path: root/src/ParamCheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ParamCheck.c')
-rw-r--r--src/ParamCheck.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ParamCheck.c b/src/ParamCheck.c
index c2346b0..112c530 100644
--- a/src/ParamCheck.c
+++ b/src/ParamCheck.c
@@ -128,6 +128,14 @@ int MoL_ParamCheck(CCTK_ARGUMENTS)
"number of intermediate steps must be 3");
}
+ if ( (CCTK_Equals(ODE_Method, "RK4"))&&(!(MoL_Intermediate_Steps == 4))
+ && (!(MoL_Num_Scratch_Levels > 1)))
+ {
+ CCTK_PARAMWARN("When using the efficient RK4 evolver the "
+ "number of intermediate steps must be 4, and"
+ " the number of scratch levels at least 1");
+ }
+
if ( (CCTK_Equals(ODE_Method, "RK45") || CCTK_Equals(ODE_Method, "RK45CK")) &&
( !((MoL_Intermediate_Steps == 6)||(MoL_Num_Scratch_Levels > 5)) ) )
{