aboutsummaryrefslogtreecommitdiff
path: root/src/patch/test_patch_system.cc
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-09-26 19:47:01 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-09-26 19:47:01 +0000
commit1ff99646874d702d84e488d9455af0779cefe4bc (patch)
tree3e123c4184080fdf399a103a1a50be3a40f0da23 /src/patch/test_patch_system.cc
parentf687b94a1e24c31f55f8db49931c2b822ed7f676 (diff)
add extra { } around for loops so the code is now agnostic
with regards to modern vs archaic for-loop declaration scope git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@773 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/test_patch_system.cc')
-rw-r--r--src/patch/test_patch_system.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/patch/test_patch_system.cc b/src/patch/test_patch_system.cc
index d4610f2..0ff72fb 100644
--- a/src/patch/test_patch_system.cc
+++ b/src/patch/test_patch_system.cc
@@ -521,6 +521,7 @@ int ghosted_gpn = 0;
const patch& p = ps.ith_patch(pn);
// nominal grid
+ {
for (int irho = p.min_irho() ; irho <= p.max_irho() ; ++irho)
{
for (int isigma = p.min_isigma() ;
@@ -538,8 +539,10 @@ int ghosted_gpn = 0;
++gpn;
}
}
+ }
// ghosted grid
+ {
for (int irho = p.ghosted_min_irho() ;
irho <= p.ghosted_max_irho() ;
++irho)
@@ -561,6 +564,7 @@ int ghosted_gpn = 0;
++ghosted_gpn;
}
}
+ }
}
assert( gpn == ps. N_grid_points() );