diff options
author | hawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2006-08-01 12:57:45 +0000 |
---|---|---|
committer | hawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2006-08-01 12:57:45 +0000 |
commit | 1db9e820e488272d13b6331d4f81aa9c2d637fbc (patch) | |
tree | 502778f424980849482fc46ad3a8b2454a5c3bf4 /src/IndexArrays.c | |
parent | 5b12759aff89d3e5854999776b169112e8510111 (diff) |
Modification for evolving array variables; change to local
arrays. This gets around the problems with the driver allocating the
scratch space differently on multiprocessors from the individual
arrays.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@116 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'src/IndexArrays.c')
-rw-r--r-- | src/IndexArrays.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/IndexArrays.c b/src/IndexArrays.c index e30d169..3c7c1e0 100644 --- a/src/IndexArrays.c +++ b/src/IndexArrays.c @@ -465,6 +465,18 @@ void MoL_FreeIndexArrays(void) SandRComplexArrayVariableIndex = NULL; } + if (ArrayScratchSizes) + { + free(ArrayScratchSizes); + ArrayScratchSizes = NULL; + } + + if (ArrayScratchSpace) + { + free(ArrayScratchSpace); + ArrayScratchSpace = NULL; + } + return; } |