aboutsummaryrefslogtreecommitdiff
path: root/src/FlatBoundary.c
diff options
context:
space:
mode:
authorrideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4>2003-05-07 21:12:11 +0000
committerrideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4>2003-05-07 21:12:11 +0000
commit1779a717ac10598ffe7088b9178c541f9cc7c51e (patch)
tree5f0dbcfb75083b172dff22efc81bcb29efc47a36 /src/FlatBoundary.c
parent19e86045f70e3bce48d49b99d5496e6c7ed93aed (diff)
Only pass *sequential* (in var index) selected group members to ApplyBnd<BC>.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@228 6a38eb6e-646e-4a02-a296-d141613ad6c4
Diffstat (limited to 'src/FlatBoundary.c')
-rw-r--r--src/FlatBoundary.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FlatBoundary.c b/src/FlatBoundary.c
index 84d7db9..e36eaea 100644
--- a/src/FlatBoundary.c
+++ b/src/FlatBoundary.c
@@ -117,9 +117,9 @@ int BndFlat(const cGH *GH, int num_vars, int *vars, int *faces, int *widths,
for identical bcs. If all GFs had the same staggering then we
could groups many GFs together. */
gi = CCTK_GroupIndexFromVarI (vars[i]);
- while (i+j<num_vars && CCTK_GroupIndexFromVarI(vars[i+j])==gi &&
- tables[i+j]==tables[i] && faces[i+j]==faces[i] &&
- widths[i+j]==widths[i])
+ while (i+j<num_vars && vars[i+j]==vars[i]+j &&
+ CCTK_GroupIndexFromVarI(vars[i+j])==gi && tables[i+j]==tables[i]
+ && faces[i+j]==faces[i] && widths[i+j]==widths[i])
{
++j;
}