mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-19 16:22:57 -06:00
Make code compile without MPI.
This commit is contained in:
parent
7efbee9fb0
commit
5001645d6a
@ -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_;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user