aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/dh.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-02-09 05:34:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-02-09 05:34:00 +0000
commit0233180112e326d55913bf406548175d4d3a1ba5 (patch)
tree02c2e7e5c0aedc0a3c1a6dc4f246932abdb51633 /Carpet/CarpetLib/src/dh.cc
parent5c429a0c8999fd3ac62c108b1e2067e7f078d1e0 (diff)
CarpetLib: Handle empty bbox vectors when setting up the optimised dh fields
darcs-hash:20070209053449-dae7b-3a9c6b25f4c8001110d7040f481f6d981d5ce95c.gz
Diffstat (limited to 'Carpet/CarpetLib/src/dh.cc')
-rw-r--r--Carpet/CarpetLib/src/dh.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/dh.cc b/Carpet/CarpetLib/src/dh.cc
index ee775c6f3..e3af614de 100644
--- a/Carpet/CarpetLib/src/dh.cc
+++ b/Carpet/CarpetLib/src/dh.cc
@@ -552,12 +552,12 @@ optimise_field (dboxes & box,
int const rl, int const c, int const ml)
{
size_t num_regions = 0;
- for (int cc=0; cc<h.components(rl); ++cc) {
+ for (size_t cc=0; cc<(box.*field).size(); ++cc) {
num_regions += (box.*field).AT(cc).size();
}
assert ((box.*field_fast).empty());
(box.*field_fast).reserve (num_regions);
- for (int cc=0; cc<h.components(rl); ++cc) {
+ for (size_t cc=0; cc<(box.*field).size(); ++cc) {
for (iblist::const_iterator
r=(box.*field).AT(cc).begin(); r!=(box.*field).AT(cc).end(); ++r)
{