aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/CarpetIOHDF5/interface.ccl6
-rw-r--r--Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/Carpet/CarpetIOHDF5/interface.ccl b/Carpet/CarpetIOHDF5/interface.ccl
index 55d092e85..471ef0ed0 100644
--- a/Carpet/CarpetIOHDF5/interface.ccl
+++ b/Carpet/CarpetIOHDF5/interface.ccl
@@ -27,9 +27,9 @@ CCTK_INT next_output_iteration TYPE=scalar
CCTK_REAL next_output_time TYPE=scalar
CCTK_INT this_iteration TYPE=scalar
-CCTK_INT last_output_iteration_slice[3] TYPE=scalar
-CCTK_REAL last_output_time_slice[3] TYPE=scalar
-CCTK_INT this_iteration_slice[3] TYPE=scalar
+CCTK_INT last_output_iteration_slice[4] TYPE=scalar
+CCTK_REAL last_output_time_slice[4] TYPE=scalar
+CCTK_INT this_iteration_slice[4] TYPE=scalar
CCTK_INT FUNCTION Coord_GroupSystem \
diff --git a/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc b/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc
index 8c2298263..9d3403d91 100644
--- a/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc
+++ b/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc
@@ -116,7 +116,7 @@ void CarpetIOHDF5_Init (CCTK_ARGUMENTS)
*next_output_iteration = 0;
*next_output_time = cctk_time;
- for (int d=0; d<3; ++d) {
+ for (int d=0; d<4; ++d) {
this_iteration_slice[d] = 0;
last_output_iteration_slice[d] = 0;
last_output_time_slice[d] = cctk_time;