aboutsummaryrefslogtreecommitdiff
path: root/src/SetupPGV.c
diff options
context:
space:
mode:
authorallen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-04-04 10:11:51 +0000
committerallen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-04-04 10:11:51 +0000
commit55c55f16056ebf9b8ff1e2eae79d419e8ea1139d (patch)
treecff9e06bf27f24581bb8a1da589a2684b4dd8109 /src/SetupPGV.c
parent8d85ae75ab727fe81fb14e49bddfe6542a5f5092 (diff)
#define MPI
to #define CCTK_MPI need a reconfigure before next build git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@197 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/SetupPGV.c')
-rw-r--r--src/SetupPGV.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/SetupPGV.c b/src/SetupPGV.c
index 79fb081..d099421 100644
--- a/src/SetupPGV.c
+++ b/src/SetupPGV.c
@@ -859,12 +859,12 @@ int pugh_SetupPGExtrasSizes(int dim,
if (sh[dir] < 0 && nprocs[dir] > 1)
{
this->nsize[dir] = (nprocs[dir]-2) *
- (-sh[dir] - 2*nghosts[dir]) +
- 2 * (-sh[dir] - nghosts[dir]);
-
+ (-sh[dir] - 2*nghosts[dir]) +
+ 2 * (-sh[dir] - nghosts[dir]);
+
if (stagger == PUGH_STAGGER)
{
- this->nsize[dir] -= nprocs[dir]-1;
+ this->nsize[dir] -= nprocs[dir]-1;
}
}
else
@@ -1303,7 +1303,7 @@ pGA *SetupPGA(void *parent,
this->padddata = (void *) calloc(1, varsize);
this->data = this->padddata;
-#ifdef MPI
+#ifdef CCTK_MPI
this->sreq = (MPI_Request *)malloc(2*extras->dim*sizeof(MPI_Request));
this->rreq = (MPI_Request *)malloc(2*extras->dim*sizeof(MPI_Request));
#endif
@@ -1313,7 +1313,7 @@ pGA *SetupPGA(void *parent,
this->send_buffer &&
this->recv_buffer &&
this->docomm &&
-#ifdef MPI
+#ifdef CCTK_MPI
this->sreq &&
this->rreq &&
#endif
@@ -1327,7 +1327,7 @@ pGA *SetupPGA(void *parent,
this->send_buffer[i] = NULL;
this->recv_buffer[i] = NULL;
this->docomm[i] = 0;
-#ifdef MPI
+#ifdef CCTK_MPI
/* Null my send and receive requests */
this->sreq[i] = MPI_REQUEST_NULL;
this->rreq[i] = MPI_REQUEST_NULL;
@@ -1343,7 +1343,7 @@ pGA *SetupPGA(void *parent,
free(this->docomm);
free(this->padddata);
-#ifdef MPI
+#ifdef CCTK_MPI
free(this->sreq);
free(this->rreq);
#endif
@@ -1384,7 +1384,7 @@ void DestroyPGA(pGA **GA)
free((*GA)->docomm);
free((*GA)->padddata);
-#ifdef MPI
+#ifdef CCTK_MPI
free((*GA)->sreq);
free((*GA)->rreq);
#endif
@@ -1565,7 +1565,7 @@ int pugh_DisableGADataStorage(pGA *GA)
{
if (GA->send_buffer[i])
{
-#ifdef MPI
+#ifdef CCTK_MPI
if(GA->sreq[i] != MPI_REQUEST_NULL)
{
CACTUS_MPI_ERROR(MPI_Request_free(&(GA->sreq[i])));