aboutsummaryrefslogtreecommitdiff
path: root/src/slab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/slab.cc')
-rw-r--r--src/slab.cc18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/slab.cc b/src/slab.cc
index 17ddb0c..3af399a 100644
--- a/src/slab.cc
+++ b/src/slab.cc
@@ -220,6 +220,16 @@ MPI_Barrier (MPI_Comm comm)
}
static int
+MPI_Bcast (void * buffer, int count,
+ MPI_Datatype datatype, int root, MPI_Comm comm)
+{
+ assert (buffer);
+ assert (count >= 0);
+ assert (root == 0);
+ return 0;
+}
+
+static int
MPI_Comm_size (MPI_Comm comm, int * size)
{
*size = 1;
@@ -381,16 +391,16 @@ Slab_InitMPIDatatypes ()
#ifndef CCTK_MPI
switch (sizeof(int)) {
#ifdef HAVE_CCTK_INT1
- case sizeof(CCTK_INT1): MPI_INT = CCTK_VARIABLE_INT1; break;
+ case sizeof(CCTK_INT1): MPI_INT = CACTUS_MPI_INT1; break;
#endif
#ifdef HAVE_CCTK_INT2
- case sizeof(CCTK_INT2): MPI_INT = CCTK_VARIABLE_INT2; break;
+ case sizeof(CCTK_INT2): MPI_INT = CACTUS_MPI_INT2; break;
#endif
#ifdef HAVE_CCTK_INT4
- case sizeof(CCTK_INT4): MPI_INT = CCTK_VARIABLE_INT4; break;
+ case sizeof(CCTK_INT4): MPI_INT = CACTUS_MPI_INT4; break;
#endif
#ifdef HAVE_CCTK_INT8
- case sizeof(CCTK_INT8): MPI_INT = CCTK_VARIABLE_INT8; break;
+ case sizeof(CCTK_INT8): MPI_INT = CACTUS_MPI_INT8; break;
#endif
default: assert(0);
}