aboutsummaryrefslogtreecommitdiff
path: root/CarpetAttic/CarpetIOFlexIO/src/ioflexio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'CarpetAttic/CarpetIOFlexIO/src/ioflexio.cc')
-rw-r--r--CarpetAttic/CarpetIOFlexIO/src/ioflexio.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/CarpetAttic/CarpetIOFlexIO/src/ioflexio.cc b/CarpetAttic/CarpetIOFlexIO/src/ioflexio.cc
index a4964f0ed..7456091de 100644
--- a/CarpetAttic/CarpetIOFlexIO/src/ioflexio.cc
+++ b/CarpetAttic/CarpetIOFlexIO/src/ioflexio.cc
@@ -303,7 +303,7 @@ namespace CarpetIOFlexIO {
ext = bbox<int,dim>(lo,hi,str);
- gdata<dim>* const tmp = data->make_typed ();
+ gdata<dim>* const tmp = data->make_typed (n);
tmp->allocate (ext, 0);
tmp->copy_from (data, ext);
@@ -591,7 +591,7 @@ namespace CarpetIOFlexIO {
const vect<int,dim> ub
= lb + (vect<int,dim>(amr_dims) - 1) * str;
const bbox<int,dim> ext(lb,ub,str);
- gdata<dim>* const tmp = data->make_typed ();
+ gdata<dim>* const tmp = data->make_typed (n);
if (CCTK_MyProc(cgh)==0) {
tmp->allocate (ext, 0, amrgrid->data);