mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: build with dune 2.6 without MPI
This commit is contained in:
parent
e114d4a46d
commit
181d3cea6b
@ -74,7 +74,6 @@ public:
|
||||
|
||||
explicit ISTLSolverEbosFlexible(const Simulator& simulator)
|
||||
: simulator_(simulator)
|
||||
, comm_(nullptr)
|
||||
{
|
||||
parameters_.template init<TypeTag>();
|
||||
prm_ = setupPropertyTree(parameters_);
|
||||
@ -133,7 +132,9 @@ public:
|
||||
|
||||
if (recreate_solver || !solver_) {
|
||||
if (isParallel()) {
|
||||
#if HAVE_MPI
|
||||
solver_.reset(new SolverType(prm_, mat.istlMatrix(), *comm_));
|
||||
#endif
|
||||
} else {
|
||||
solver_.reset(new SolverType(prm_, mat.istlMatrix()));
|
||||
}
|
||||
@ -209,7 +210,9 @@ protected:
|
||||
VectorType rhs_;
|
||||
Dune::InverseOperatorResult res_;
|
||||
boost::any parallelInformation_;
|
||||
#if HAVE_MPI
|
||||
std::unique_ptr<Communication> comm_;
|
||||
#endif
|
||||
std::vector<std::pair<int, std::vector<int>>> overlapRowAndColumns_;
|
||||
}; // end ISTLSolverEbosFlexible
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user