aboutsummaryrefslogtreecommitdiff
path: root/src/ParamCheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ParamCheck.c')
-rw-r--r--src/ParamCheck.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ParamCheck.c b/src/ParamCheck.c
index b80aa1b..96494bf 100644
--- a/src/ParamCheck.c
+++ b/src/ParamCheck.c
@@ -116,6 +116,12 @@ void MoL_ParamCheck(CCTK_ARGUMENTS)
}
}
+ if ( (CCTK_Equals(ODE_Method, "Euler"))&&(!(MoL_Intermediate_Steps == 1)) )
+ {
+ CCTK_PARAMWARN("When using the Euler evolver the "
+ "number of intermediate steps must be 1");
+ }
+
if ( (CCTK_Equals(ODE_Method, "RK2"))&&(!(MoL_Intermediate_Steps == 2)) )
{
CCTK_PARAMWARN("When using the efficient RK2 evolver the "
@@ -160,6 +166,12 @@ void MoL_ParamCheck(CCTK_ARGUMENTS)
"and the number of scratch levels at least 13.");
}
+ if ( (CCTK_Equals(ODE_Method, "AB"))&&(!(MoL_Intermediate_Steps == 1)) )
+ {
+ CCTK_PARAMWARN("When using the Adams-Bashforth evolver the "
+ "number of intermediate steps must be 1");
+ }
+
if ( (CCTK_Equals(ODE_Method, "RK2-MR-2:1"))&&( !((MoL_Intermediate_Steps == 5) || (MoL_Num_Scratch_Levels > 4))) )
{
CCTK_PARAMWARN("When using the multirate 2-1 RK2 evolver the "