From e3096d84ffb4b909977066f158db78eb45f4a80b Mon Sep 17 00:00:00 2001 From: hawke Date: Tue, 22 Jul 2003 07:07:14 +0000 Subject: Add two methods: RK3. The optimized version of the TVD RK3 solver. Requires no scratch space so is about as efficient as ICN, but third order. Generic method from a parameter table. By specifying the number of intermediate steps and the alpha and beta arrays, create your own method at parameter time. Not well (or at all) documented because it doesn't seem to work correctly at the moment. Some tidying of extraneous code as well. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@29 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b --- schedule.ccl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'schedule.ccl') diff --git a/schedule.ccl b/schedule.ccl index 4321dcf..fe74af9 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -259,6 +259,13 @@ else if (CCTK_Equals(ODE_Method,"RK2")) LANG: C } "Updates calculated with the efficient Runge-Kutta 2 method" } +else if (CCTK_Equals(ODE_Method,"RK3")) +{ + schedule MoL_RK3Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep + { + LANG: C + } "Updates calculated with the efficient Runge-Kutta 3 method" +} else if (CCTK_Equals(ODE_Method,"ICN")) { schedule MoL_ICNAdd AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep -- cgit v1.2.3