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/RK2.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/RK2.c')
-rw-r--r-- | src/RK2.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -100,7 +100,11 @@ void MoL_RK2Add(CCTK_ARGUMENTS) cctk_time); #endif - totalsize = cctk_lsh[0] * cctk_lsh[1] * cctk_lsh[2]; + totalsize = 1; + for (arraydim = 0; arraydim < cctk_dim; arraydim++) + { + totalsize *= cctk_lsh[arraydim]; + } switch (*MoL_Intermediate_Step) { |