aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-01-12 21:11:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-01-12 21:11:00 +0000
commit4c946e2e43c0d24a906d0520416e39f1bebffdf9 (patch)
treee2723374adb09a92f7e2b892a044b1eb2cfa0a2a /Carpet
parent10a70387ac4b33199ad68c87ba905937c405604b (diff)
CarpetLib: Ensure that the strides are compatible with the refinement factors
Ensure that the strides of each refinement level are compatible with the refinement factor of this level. darcs-hash:20070112211111-dae7b-5136e494c4d7a6dd446c096646a601ca2791a6be.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetLib/src/gh.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/gh.cc b/Carpet/CarpetLib/src/gh.cc
index eb523551c..bb9f96e7d 100644
--- a/Carpet/CarpetLib/src/gh.cc
+++ b/Carpet/CarpetLib/src/gh.cc
@@ -31,6 +31,7 @@ gh::gh (const vector<ivect> & reffacts_, const centering refcent_,
assert (all (reffacts.at(n) >= reffacts.at(n-1)));
assert (all (reffacts.at(n) % reffacts.at(n-1) == 0));
}
+ assert (all (baseextent.stride() % reffacts.at(reffacts.size()-1) == 0));
}
// Destructors