mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4829 from atgeirr/fix-serial-nldd-communicate
Fix serial compile
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -178,6 +178,9 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
|||||||
/// \param[in] simulator The opm-models simulator object
|
/// \param[in] simulator The opm-models simulator object
|
||||||
/// \param[in] parameters Explicit parameters for solver setup, do not
|
/// \param[in] parameters Explicit parameters for solver setup, do not
|
||||||
/// read them from command line parameters.
|
/// read them from command line parameters.
|
||||||
|
/// \param[in] forceSerial If true, will set up a serial linear solver only,
|
||||||
|
/// local to the current rank, instead of creating a
|
||||||
|
/// parallel (MPI distributed) linear solver.
|
||||||
ISTLSolverEbos(const Simulator& simulator, const FlowLinearSolverParameters& parameters, bool forceSerial = false)
|
ISTLSolverEbos(const Simulator& simulator, const FlowLinearSolverParameters& parameters, bool forceSerial = false)
|
||||||
: simulator_(simulator),
|
: simulator_(simulator),
|
||||||
iterations_( 0 ),
|
iterations_( 0 ),
|
||||||
|
|||||||
Reference in New Issue
Block a user