aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpollney <pollney@eec4d7dc-71c2-46d6-addf-10296150bf52>2002-05-09 11:29:54 +0000
committerpollney <pollney@eec4d7dc-71c2-46d6-addf-10296150bf52>2002-05-09 11:29:54 +0000
commitff4408a5d5f3a5c2508601bde8f4d503980db70e (patch)
tree2a3c99f5e18541f9ad4f2f63bd1abc37eec97a66 /src
parent5c0c9a3617a974309bb316459e340930c34ccf94 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Cartoon2DBC.c5
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++)