aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Restrict.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-08-03 22:08:24 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2008-08-03 22:08:24 -0500
commitb5b6998537a4c24cecaf38cddfeba17183c7e49f (patch)
tree2885de27c1243c3be0c58cb4d0e55cb848ba33b2 /Carpet/Carpet/src/Restrict.cc
parent2ba4a4073179f69c4453aae874a4322ba8c78b96 (diff)
Carpet: Correct error in restriction
The group numbers were interpreted wrong.
Diffstat (limited to 'Carpet/Carpet/src/Restrict.cc')
-rw-r--r--Carpet/Carpet/src/Restrict.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/Carpet/Carpet/src/Restrict.cc b/Carpet/Carpet/src/Restrict.cc
index f1b047384..6df4666fd 100644
--- a/Carpet/Carpet/src/Restrict.cc
+++ b/Carpet/Carpet/src/Restrict.cc
@@ -65,9 +65,9 @@ namespace Carpet {
const int tl = 0;
for (comm_state state; not state.done(); state.step()) {
- for (int g = 0; g < (int)groups.size(); ++g) {
- const int group = groups[g];
- for (int m=0; m<(int)arrdata.at(group).size(); ++m) {
+ for (int group = 0; group < (int)groups.size(); ++group) {
+ const int g = groups[group];
+ for (int m=0; m<(int)arrdata.at(g).size(); ++m) {
// use background time here (which may not be modified
// by the user)