From ff4408a5d5f3a5c2508601bde8f4d503980db70e Mon Sep 17 00:00:00 2001 From: pollney Date: Thu, 9 May 2002 11:29:54 +0000 Subject: Added required syncronisation before cartoon interpolation routine to prevent a processor boundary problem. This also fixes the NaNs that were showing up in the ahf.gauss output of the test-suites, however it is not clear that the gaussian curvature calculation in the AHFinder is properly cartoonised anyways. This fix required modifications to the test-suites. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@35 eec4d7dc-71c2-46d6-addf-10296150bf52 --- src/Cartoon2DBC.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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++) -- cgit v1.2.3