From eeb8bdf88f9b3de750e95bdb98ae78a8f9b4ad49 Mon Sep 17 00:00:00 2001 From: hawke Date: Fri, 28 Jul 2006 09:43:58 +0000 Subject: Efficient RK4, as provided by Yosef Zlochower. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@113 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b --- schedule.ccl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'schedule.ccl') diff --git a/schedule.ccl b/schedule.ccl index aff477d..b54905c 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -558,6 +558,13 @@ else if (CCTK_Equals(ODE_Method,"RK3")) LANG: C } "Updates calculated with the efficient Runge-Kutta 3 method" } +else if (CCTK_Equals(ODE_Method,"RK4")) +{ + schedule MoL_RK4Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep + { + LANG: C + } "Updates calculated with the efficient Runge-Kutta 4 method" +} else if (CCTK_Equals(ODE_Method,"RK45") || CCTK_Equals(ODE_Method,"RK45CK")) { STORAGE: ErrorEstimate ErrorScalars @@ -625,6 +632,29 @@ schedule GROUP MoL_PostStep AT PostRestrict { } "Ensure that everything is correct after restriction" +############################################################ +### Additional boundary condition bins as requested by ### +### Yosef Zlochower. ### +############################################################ + +# schedule GROUP MoL_OldBdry_Wrap IN MoL_PostStep +# { +# } "Wrapper group, do not schedule directly into this group" +# +# schedule GROUP MoL_OldStyleBoundaries in MoL_OldBdry_Wrap +# { +# } "Place old style boundary routines here" +# +# schedule MoL_OldBdry_SetDt IN MoL_OldBdry_Wrap BEFORE MoL_OldStyleBoundaries +# { +# LANGUAGE: C +# } "Store and change dt" +# +# schedule MoL_OldBdry_ResetDt IN MoL_OldBdry_Wrap AFTER MoL_OldStyleBoundaries +# { +# LANGUAGE: C +# } "Reset dt" + ################################################# ### Final internal MoL stuff; decrement the ### ### counter, change time and timestep ### -- cgit v1.2.3