diff options
author | eschnett <eschnett@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2012-06-12 20:47:41 +0000 |
---|---|---|
committer | eschnett <eschnett@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2012-06-12 20:47:41 +0000 |
commit | 7923fe9d90ae7b78450708403bd7d451e0227d15 (patch) | |
tree | ef0d11218b3ee03d433d27ef28bb0c6af9c954ac /schedule.ccl | |
parent | 3ef5e49f3a6a655373466b95ab211c2563772b22 (diff) |
Allow skipping setting the RHS to zero in MoL
By default, MoL initialises the RHS variables to zero before calling
the CalcRHS routines. This is (a) superfluous in a well-written code,
and (b) makes it impossible to re-use a RHS that has been calculated
ahead of time, e.g. at the end of the previous time step.
This patch adds a parameter to disable this behaviour.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@173 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'schedule.ccl')
-rw-r--r-- | schedule.ccl | 9 |
1 files changed, 6 insertions, 3 deletions
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 ### |