aboutsummaryrefslogtreecommitdiff
path: root/param.ccl
diff options
context:
space:
mode:
authorhawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2003-07-22 07:07:14 +0000
committerhawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2003-07-22 07:07:14 +0000
commite3096d84ffb4b909977066f158db78eb45f4a80b (patch)
tree9e41096faa3de1f2af27660866aa5e4eea4cffed /param.ccl
parent06f6fb8bd438528724715988336a8b8ef86192ce (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 'param.ccl')
-rw-r--r--param.ccl11
1 files changed, 11 insertions, 0 deletions
diff --git a/param.ccl b/param.ccl
index 0bf2bcc..0aeae83 100644
--- a/param.ccl
+++ b/param.ccl
@@ -86,12 +86,14 @@ KEYWORD ODE_Method "The ODE method use by MoL to do time integration"
"ICN" :: "Iterative Crank Nicholson"
"ICN-avg" :: "Iterative Crank Nicholson with averaging"
"RK2" :: "Efficient RK2"
+ "RK3" :: "Efficient RK3"
} "ICN"
KEYWORD Generic_Type "If using the generic method, which sort"
{
"RK" :: "One of the standard TVD Runga-Kutta methods"
"ICN" :: "Iterative Crank Nicholson as a generic method"
+ "Table" :: "Given from the generic method descriptor parameter"
} "RK"
CCTK_INT MoL_Intermediate_Steps "Number of intermediate steps taken by the ODE method"
@@ -111,3 +113,12 @@ CCTK_REAL MoL_Tiny "Effective local machine zero; required by generic solvers"
BOOLEAN initial_data_is_crap "If the initial data routine fails to set up the previous time levels, copy the current backwards"
{
} "no"
+
+# The default for this parameter corresponds to generic RK2
+STRING Generic_Method_Descriptor "A string used to create a table containing the description of the generic method"
+{
+ ".*" :: "Should contain the Alpha and Beta arrays, and the number of intermediate steps"
+} "GenericIntermediateSteps = 2 \
+ GenericAlphaCoeffs = { 1.0 0.0 0.5 0.5 } \
+ GenericBetaCoeffs = { 1.0 0.5 }"
+