diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-10 22:24:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-10 22:24:00 +0000 |
commit | d17e9336c049e657f1e8ab7efae0960cd59d3613 (patch) | |
tree | d8e37b4c72e463e9001cd2b4d8dbcbda70185d17 /Carpet/CarpetLib/src/gh.cc | |
parent | 1202fe0f7400b05d4951ac94ebf0d0d71f691cb3 (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.cc | 3 |
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])); } } |