diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Cartoon2DBC.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Cartoon2DBC.c b/src/Cartoon2DBC.c index 9fcbfc4..cce30ac 100644 --- a/src/Cartoon2DBC.c +++ b/src/Cartoon2DBC.c @@ -99,7 +99,7 @@ CCTK_INT BndCartoon2DVI(cGH *GH, CCTK_INT tensortype, CCTK_INT vi) xindx = (xindx<0)?CCTK_CoordIndex(-1,"x","cart3d"):xindx; xp = GH->data[xindx][0]; -/* xp = GH->data[CCTK_CoordIndex(-1,"x","cart3d")][0];*/ + /* xp = GH->data[CCTK_CoordIndex(-1,"x","cart3d")][0];*/ lx0 = xp[0]; dx0 = GH->cctk_delta_space[0]/GH->cctk_levfac[0]; dy0 = GH->cctk_delta_space[1]/GH->cctk_levfac[1]; @@ -115,6 +115,9 @@ CCTK_INT BndCartoon2DVI(cGH *GH, CCTK_INT tensortype, CCTK_INT vi) /* y = 0 */ j = ny/2; + /* make sure that the input data is synced */ + CCTK_SyncGroup(GH, CCTK_GroupNameFromVarI(vi)); + /* z-direction: include lower and upper boundary */ for (k = 0; k < lnz; k++) |