aboutsummaryrefslogtreecommitdiff
path: root/src/RestoreFile.c
diff options
context:
space:
mode:
authorallen <allen@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2000-04-04 09:58:45 +0000
committerallen <allen@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2000-04-04 09:58:45 +0000
commit0bf6523b784d4d55c3336c99128ae5b7348438aa (patch)
tree5f0376104f12163e2e92a5e5f28e9de8128020c7 /src/RestoreFile.c
parent52c82a9aefc0c96ba9d8bde98e159fc4707ed055 (diff)
Changing MPI to CCTK_MPI
This means you have to reconfigure before you next compile git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@100 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/RestoreFile.c')
-rw-r--r--src/RestoreFile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/RestoreFile.c b/src/RestoreFile.c
index 823bdd9..619a6dd 100644
--- a/src/RestoreFile.c
+++ b/src/RestoreFile.c
@@ -35,7 +35,7 @@ static char *rcsid = "$Id$";
/* local function prototypes */
static int GetCommonAttributes (cGH *GH, IOFile ifp, int unchunked, int *index,
int *grouptype, int *timelevel);
-#ifdef MPI
+#ifdef CCTK_MPI
static int GetChunkAttributes (cGH *GH, IOFile ifp, int index);
#endif
@@ -97,7 +97,7 @@ int IOFlexIO_RestoreIEEEIOfile (cGH *GH, IOFile ifp, int file_ioproc,
int timelevel; /* current timelevel to be restored */
pGH *pughGH; /* PUGH extension handle */
pGExtras *extras;
-#ifdef MPI
+#ifdef CCTK_MPI
int i, proc;
CCTK_INT info [3]; /* communication buffer for MPI */
#endif
@@ -169,7 +169,7 @@ int IOFlexIO_RestoreIEEEIOfile (cGH *GH, IOFile ifp, int file_ioproc,
if (file_ioproc_every == 1)
CACTUS_IEEEIO_ERROR (
IOread (ifp, CCTK_VarDataPtrI (GH, timelevel, index)));
-#ifdef MPI
+#ifdef CCTK_MPI
else {
int dim, npoints;
void *buffer;
@@ -286,7 +286,7 @@ int IOFlexIO_RestoreIEEEIOfile (cGH *GH, IOFile ifp, int file_ioproc,
} /* end of loop over all datasets */
-#ifdef MPI
+#ifdef CCTK_MPI
/* Finally an invalid variable index is communicated
to indicate completion to the non-IO processors. */
info [0] = -1;
@@ -298,7 +298,7 @@ int IOFlexIO_RestoreIEEEIOfile (cGH *GH, IOFile ifp, int file_ioproc,
} else {
/* And here the code for non-IO processors: */
-#ifdef MPI
+#ifdef CCTK_MPI
int npoints;
MPI_Datatype mpi_type;
MPI_Status ms;
@@ -524,7 +524,7 @@ static int GetCommonAttributes (cGH *GH, IOFile ifp, int unchunked, int *index,
It verifies via the name attribute that this chunk belongs to the
current variable given by its index. */
-#ifdef MPI
+#ifdef CCTK_MPI
static int GetChunkAttributes (cGH *GH, IOFile ifp, int index)
{
int i;