aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gh.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-05-10 22:24:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-05-10 22:24:00 +0000
commitd17e9336c049e657f1e8ab7efae0960cd59d3613 (patch)
treed8e37b4c72e463e9001cd2b4d8dbcbda70185d17 /Carpet/CarpetLib/src/gh.cc
parent1202fe0f7400b05d4951ac94ebf0d0d71f691cb3 (diff)
CarpetLib: Allow empty domains
darcs-hash:20070510222457-dae7b-63f0ce31174188709611001c19feb58f3c516862.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gh.cc')
-rw-r--r--Carpet/CarpetLib/src/gh.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/gh.cc b/Carpet/CarpetLib/src/gh.cc
index e85d010d8..66722e11d 100644
--- a/Carpet/CarpetLib/src/gh.cc
+++ b/Carpet/CarpetLib/src/gh.cc
@@ -58,7 +58,8 @@ gh (vector<ivect> const & reffacts_, centering const refcent_,
for (int ml = 0; ml < (int)baseextents.size(); ++ ml) {
for (int rl = 0; rl < (int)baseextents.AT(ml).size(); ++ rl) {
ibbox const & box = baseextents.AT(ml).AT(rl);
- assert (all (box.shape() / box.stride() >
+ // This condition must hold even for zero-sized grid arrays
+ assert (all (box.shape() / box.stride() >=
boundary_width[0] + boundary_width[1]));
}
}