diff options
Diffstat (limited to 'schedule.ccl')
-rw-r--r-- | schedule.ccl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/schedule.ccl b/schedule.ccl index fe74af9..0b151a2 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -241,6 +241,18 @@ schedule GROUP MoL_CalcRHS IN MoL_Step LANG: C } "Physics thorns schedule the calculation of the discrete spatial operator in here" +##################################################### +### If required, check for any NaNs in the RHSs ### +##################################################### + +if (MoL_NaN_Check) +{ + schedule MoL_NaNCheck IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_Add + { + LANG: C + } "Check the RHS GFs for NaNs" +} + ###################################################### ### The time integrator performs the update here ### ###################################################### |