aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/InterpGridArrays.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/InterpGridArrays.c b/src/InterpGridArrays.c
index eb886d1..c11c52b 100644
--- a/src/InterpGridArrays.c
+++ b/src/InterpGridArrays.c
@@ -185,8 +185,8 @@ int PUGHInterp_InterpGridArrays (const cGH *GH,
const pGH *pughGH;
const pGExtras *extras;
cGroupDynamicData group_data;
- pughInterpGH *myGH;
#ifdef CCTK_MPI
+ pughInterpGH *myGH;
CCTK_REAL **interp_coords_local;
int N_points_local, N_types;
int j, point, proc, array, type, offset;
@@ -199,8 +199,6 @@ int PUGHInterp_InterpGridArrays (const cGH *GH,
#endif
- /* get GH extension handles for PUGHInterp and PUGH */
- myGH = CCTK_GHExtension (GH, "PUGHInterp");
pughGH = CCTK_GHExtension (GH, "PUGH");
/* check function arguments */
@@ -436,6 +434,8 @@ int PUGHInterp_InterpGridArrays (const cGH *GH,
return (UTIL_ERROR_BAD_INPUT);
}
+ myGH = CCTK_GHExtension (GH, "PUGHInterp");
+
/* map the requested points to interpolate at onto the processors
they belong to and gather the coordinates of all the points local to
this processor