mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 09:22:05 -05:00
Guards communication parts inside HAVE_MPI.
This commit is contained in:
1 parent
c6e30fbf3c
commit
583fb902d2
1 file changed
+2
@@ -257,6 +257,7 @@ public:
|
|||||||
model_.ebosSimulator().model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
|
model_.ebosSimulator().model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAVE_MPI
|
||||||
// Communicate solutions:
|
// Communicate solutions:
|
||||||
// With multiple processes, this process' overlap (i.e. not
|
// With multiple processes, this process' overlap (i.e. not
|
||||||
// owned) cells' solution values have been modified by local
|
// owned) cells' solution values have been modified by local
|
||||||
@@ -285,6 +286,7 @@ public:
|
|||||||
// Update intensive quantities for our overlap values.
|
// Update intensive quantities for our overlap values.
|
||||||
model_.ebosSimulator().model().invalidateAndUpdateIntensiveQuantitiesOverlap(/*timeIdx=*/0);
|
model_.ebosSimulator().model().invalidateAndUpdateIntensiveQuantitiesOverlap(/*timeIdx=*/0);
|
||||||
}
|
}
|
||||||
|
#endif // HAVE_MPI
|
||||||
|
|
||||||
// Finish with a Newton step.
|
// Finish with a Newton step.
|
||||||
// Note that the "iteration + 100" is a simple way to avoid entering
|
// Note that the "iteration + 100" is a simple way to avoid entering
|
||||||
|
|||||||
Reference in new issue
Block a user