aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/CarpetSlab/src/slab.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/CarpetSlab/src/slab.cc b/Carpet/CarpetSlab/src/slab.cc
index 1825602c3..7408d417d 100644
--- a/Carpet/CarpetSlab/src/slab.cc
+++ b/Carpet/CarpetSlab/src/slab.cc
@@ -204,8 +204,9 @@ namespace CarpetSlab {
// Create collector data object
void* myhdata = rank==collect_proc ? hdata : 0;
+ size_t const mymemsize = totalsize * typesize;
gdata* const alldata = mydata->make_typed (-1, error_centered, op_sync);
- alldata->allocate (hextent, collect_proc, myhdata);
+ alldata->allocate (hextent, collect_proc, myhdata, mymemsize);
// Done with the temporary stuff
mydata = 0;