diff options
Diffstat (limited to 'Carpet/Carpet/src/Storage.cc')
-rw-r--r-- | Carpet/Carpet/src/Storage.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/Storage.cc b/Carpet/Carpet/src/Storage.cc index f8f6f3516..eee79cbcb 100644 --- a/Carpet/Carpet/src/Storage.cc +++ b/Carpet/Carpet/src/Storage.cc @@ -168,7 +168,11 @@ namespace Carpet { // Set the new number of active time levels groupdata.AT(group).activetimelevels.AT(ml).AT(rl) = tls[n]; + // Allocate storage only on map 0? + const bool ismap0group = IsMap0Group(group); + for (int m=0; m<(int)arrdata.AT(group).size(); ++m) { + if (ismap0group) continue; for (int var=0; var<gp.numvars; ++var) { #ifdef CCTK_HAVE_CONTIGUOUS_GROUPS bool const contiguous = gp.contiguous; |