diff options
author | hawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2003-07-22 07:07:14 +0000 |
---|---|---|
committer | hawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2003-07-22 07:07:14 +0000 |
commit | e3096d84ffb4b909977066f158db78eb45f4a80b (patch) | |
tree | 9e41096faa3de1f2af27660866aa5e4eea4cffed /schedule.ccl | |
parent | 06f6fb8bd438528724715988336a8b8ef86192ce (diff) |
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
Diffstat (limited to 'schedule.ccl')
-rw-r--r-- | schedule.ccl | 7 |
1 files changed, 7 insertions, 0 deletions
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 |