aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--param.ccl6
-rw-r--r--schedule.ccl9
2 files changed, 12 insertions, 3 deletions
diff --git a/param.ccl b/param.ccl
index 7e29e56..ba43b51 100644
--- a/param.ccl
+++ b/param.ccl
@@ -162,6 +162,12 @@ BOOLEAN disable_prolongation "If Mesh refinement is enabled should we use buffer
+BOOLEAN init_RHS_zero "Initialise the RHS to zero" STEERABLE=recover
+{
+} "yes"
+
+
+
BOOLEAN adaptive_stepsize "Choose the time step size adaptively"
{
} "no"
diff --git a/schedule.ccl b/schedule.ccl
index 9c33bbe..f0aed52 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -484,10 +484,13 @@ if (CCTK_Equals(ODE_Method,"ICN-avg"))
### The time step is initialised to zero ###
##############################################
-schedule MoL_InitRHS IN MoL_Step BEFORE MoL_CalcRHS
+if (init_RHS_zero)
{
- LANG: C
-} "Initialise the RHS functions"
+ schedule MoL_InitRHS IN MoL_Step BEFORE MoL_CalcRHS
+ {
+ LANG: C
+ } "Initialise the RHS functions"
+}
#####################################################
### The group where all the physics takes place ###