diff --git a/src/STUBS/mpi.cpp b/src/STUBS/mpi.cpp index 43e0a7f02d..cf8b3e2b28 100644 --- a/src/STUBS/mpi.cpp +++ b/src/STUBS/mpi.cpp @@ -142,6 +142,11 @@ void MPI_Cart_shift(MPI_Comm comm, int direction, int displ, *source = *dest = 0; } +void MPI_Cart_rank(MPI_Comm comm, int *coords, int *rank) +{ + *rank = 0; +} + void MPI_Barrier(MPI_Comm comm) {} void MPI_Bcast(void *buf, int count, MPI_Datatype datatype, diff --git a/src/STUBS/mpi.h b/src/STUBS/mpi.h index 654c9d5a95..06015e824a 100644 --- a/src/STUBS/mpi.h +++ b/src/STUBS/mpi.h @@ -78,6 +78,7 @@ void MPI_Cart_get(MPI_Comm comm, int maxdims, int *dims, int *periods, int *coords); void MPI_Cart_shift(MPI_Comm comm, int direction, int displ, int *source, int *dest); +void MPI_Cart_rank(MPI_Comm comm, int *coords, int *rank); void MPI_Barrier(MPI_Comm comm); void MPI_Bcast(void *buf, int count, MPI_Datatype datatype,