diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2009-11-08 14:13:36 -0600 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 16:45:11 +0000 |
commit | 46fa0fa2ab297ff3e95ab342a0092e2b640c7f30 (patch) | |
tree | 35bfe3b0ecbf1c30783dcf9ec9dd8efffca604f4 /Carpet/LoopControl | |
parent | ab5f214316eb015f5508bf4f527d342c23009709 (diff) |
LoopControl: Correct handling empty regions
Diffstat (limited to 'Carpet/LoopControl')
-rw-r--r-- | Carpet/LoopControl/src/loopcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/LoopControl/src/loopcontrol.c b/Carpet/LoopControl/src/loopcontrol.c index 34bfe4d6b..93ff2d830 100644 --- a/Carpet/LoopControl/src/loopcontrol.c +++ b/Carpet/LoopControl/src/loopcontrol.c @@ -391,7 +391,7 @@ lc_statset_init (lc_statset_t * restrict const ls, for (int d=0; d<3; ++d) { assert (npoints[d] >= 0); assert (npoints[d] < 1000000000); - assert (npoints[d] < 1000000000 / total_npoints); + assert (total_npoints == 0 || npoints[d] < 1000000000 / total_npoints); total_npoints *= npoints[d]; } |