aboutsummaryrefslogtreecommitdiff
path: root/src/ParamCheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ParamCheck.c')
-rw-r--r--src/ParamCheck.c30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/ParamCheck.c b/src/ParamCheck.c
index c46343a..a1b313a 100644
--- a/src/ParamCheck.c
+++ b/src/ParamCheck.c
@@ -172,18 +172,32 @@ void MoL_ParamCheck(CCTK_ARGUMENTS)
"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))) )
+ if ( CCTK_Equals(ODE_Method, "RK2-MR-2:1") )
{
- CCTK_PARAMWARN("When using the multirate 2-1 RK2 evolver the "
- "number of intermediate steps must be 5 and the number of scratch levels at least 5");
+ if ( !((MoL_Intermediate_Steps == 5) && (MoL_Num_Scratch_Levels > 4)) )
+ {
+ CCTK_PARAMWARN("When using the multirate 2-1 RK2 evolver the "
+ "number of intermediate steps must be 5 and the number of scratch levels at least 5");
+ }
+ if (init_RHS_zero)
+ {
+ CCTK_PARAMWARN("When using the multirate 2-1 RK2 evolver the "
+ "parameter MoL::init_RHS_zero must be set to 'no'.");
+ }
}
- if ( (CCTK_Equals(ODE_Method, "RK4-MR-2:1"))&&
- ( !((MoL_Intermediate_Steps == 10) && (MoL_Num_Scratch_Levels > 9))) )
+ if ( CCTK_Equals(ODE_Method, "RK4-MR-2:1") )
{
- CCTK_PARAMWARN("When using the multirate 2-1 RK4 evolver the "
- "number of intermediate steps must be 10 and the number of scratch levels at least 10");
+ if ( !((MoL_Intermediate_Steps == 10) && (MoL_Num_Scratch_Levels > 9)) )
+ {
+ CCTK_PARAMWARN("When using the multirate 2-1 RK4 evolver the "
+ "number of intermediate steps must be 10 and the number of scratch levels at least 10");
+ }
+ if (init_RHS_zero)
+ {
+ CCTK_PARAMWARN("When using the multirate 2-1 RK4 evolver the "
+ "parameter MoL::init_RHS_zero must be set to 'no'.");
+ }
}
if ( (CCTK_Equals(ODE_Method, "RK4-RK2"))&&