diff options
-rw-r--r-- | Carpet/CarpetSlab/src/slab.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetSlab/src/slab.cc b/Carpet/CarpetSlab/src/slab.cc index d50ee25a1..83f15db85 100644 --- a/Carpet/CarpetSlab/src/slab.cc +++ b/Carpet/CarpetSlab/src/slab.cc @@ -160,7 +160,7 @@ namespace CarpetSlab { // (if this fails, someone requested an insane number of grid points) { int max = INT_MAX; - for (int dd=0; dd<dim; ++dd) { + for (int dd=0; dd<hdim; ++dd) { assert (length[dd] >= 0 && length[dd] <= max); if (length[dd] > 0) max /= length[dd]; } |