diff options
Diffstat (limited to 'src/FlatBoundary.c')
-rw-r--r-- | src/FlatBoundary.c | 6 |
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; } |