diff options
author | hawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2004-06-23 06:58:27 +0000 |
---|---|---|
committer | hawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2004-06-23 06:58:27 +0000 |
commit | f2354d8e2968cdda27d7aacdea93fe205dc406b6 (patch) | |
tree | 1b6fc5d793ebe55bd72b0b992d92b8e986ec7e10 /src/GenericRK.c | |
parent | 8c508e75afcb8fc262e88e64e55331b069cbd525 (diff) |
Make MoL independent of dimensions for GFs.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@70 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'src/GenericRK.c')
-rw-r--r-- | src/GenericRK.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GenericRK.c b/src/GenericRK.c index 308ca74..ed2372a 100644 --- a/src/GenericRK.c +++ b/src/GenericRK.c @@ -95,8 +95,12 @@ void MoL_GenericRKAdd(CCTK_ARGUMENTS) CCTK_INT arrayscratchlocation; - totalsize = cctk_lsh[0] * cctk_lsh[1] * cctk_lsh[2]; - + totalsize = 1; + for (arraydim = 0; arraydim < cctk_dim; arraydim++) + { + totalsize *= cctk_lsh[arraydim]; + } + beta = RKBetaCoefficients[MoL_Intermediate_Steps - (*MoL_Intermediate_Step)]; |