Make code compile without MPI.

This commit is contained in:
Markus Blatt 2019-09-30 17:21:46 +02:00
parent 7efbee9fb0
commit 5001645d6a

View File

@ -120,9 +120,11 @@ public:
*/
const EquilGrid& equilGrid() const
{
#if HAVE_MPI
int mpiRank;
MPI_Comm_rank(MPI_COMM_WORLD, &mpiRank);
assert(mpiRank == 0);
#endif
return *equilGrid_;
}
@ -238,9 +240,11 @@ public:
*/
const CartesianIndexMapper& equilCartesianIndexMapper() const
{
#if HAVE_MPI
int mpiRank;
MPI_Comm_rank(MPI_COMM_WORLD, &mpiRank);
assert(mpiRank == 0);
#endif
return *equilCartesianIndexMapper_;
}