aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-07-14 14:00:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-07-14 14:00:00 +0000
commit6d29ff8c160f178b71741078d259070a3cb7a4e4 (patch)
tree5922f796cd7d278777b28040e2b58f4dd5807a65 /Carpet
parent156afa0204af8419cb3ebacb88f6e4aefdfb361c (diff)
Carpet: Allow zero-extent grids
Carpet extends 1D grids to 3D grids by giving them an extent of 1 in the additional directions. This assumption was erroneously checked later in certain places. However, when grids are distributed onto processors, the extent can become 0 in these additional directions as well if there are fewer grid points that processors. Remove this check. darcs-hash:20050714140029-891bb-f3ac62f54e25fb69130d0559e0f95ac4d1dd02dc.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/Carpet/src/modes.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/Carpet/Carpet/src/modes.cc b/Carpet/Carpet/src/modes.cc
index 7c2a922c3..0c5b34e35 100644
--- a/Carpet/Carpet/src/modes.cc
+++ b/Carpet/Carpet/src/modes.cc
@@ -112,9 +112,6 @@ namespace Carpet {
for (int d=0; d<dim; ++d) {
assert (groupdata.at(group).info.lsh[d]>=0);
assert (groupdata.at(group).info.lsh[d]<=groupdata.at(group).info.gsh[d]);
- if (d>=groupdata.at(group).info.dim) {
- assert (groupdata.at(group).info.lsh[d]==1);
- }
assert (groupdata.at(group).info.lbnd[d]>=0);
assert (groupdata.at(group).info.lbnd[d]<=groupdata.at(group).info.ubnd[d]+1);
assert (groupdata.at(group).info.ubnd[d]<groupdata.at(group).info.gsh[d]);