aboutsummaryrefslogtreecommitdiff
path: root/src/containers.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers.hh')
-rw-r--r--src/containers.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/containers.hh b/src/containers.hh
index 1ff9896..25a368f 100644
--- a/src/containers.hh
+++ b/src/containers.hh
@@ -323,9 +323,11 @@ struct matrix3d{
this->xmin = xmin;
this->ymin = ymin;
+ this->zmin = zmin;
this->dx = dx;
this->dy = dy;
- this->entry = new T[dx * dy];
+ this->dz = dz;
+ this->entry = new T[dx * dy * dz];
}
matrix3d(int xmin, int xmax, int ymin, int ymax, int zmin, int zmax, T init)