Make code compile without MPI.

This commit is contained in:
Markus Blatt committed 2019-10-14 14:32:22 +02:00
1 parent 7efbee9fb0
commit 5001645d6a
1 file changed
+4
+4
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_;
}