diff options
author | tradke <schnetter@cct.lsu.edu> | 2004-11-17 14:34:00 +0000 |
---|---|---|
committer | tradke <schnetter@cct.lsu.edu> | 2004-11-17 14:34:00 +0000 |
commit | d05a99da36ea8068cb17566caac4a307764fcad2 (patch) | |
tree | c706b7313597166d31d3fd43ee68cea80e59fe6c /Carpet/CarpetSlab/src | |
parent | f983c7a9da7eec71d0f553cba5a516e0e5a077f0 (diff) |
CarpetSlab: iterate over length[hdim], not over length[dim]
darcs-hash:20041117143412-3fd61-afe895a742cf18f818a020ca856750497550a608.gz
Diffstat (limited to 'Carpet/CarpetSlab/src')
-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]; } |