From 181d3cea6b718538e8ff333c39dbf24fbe6ed0da Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 18 Jun 2019 13:37:29 +0200 Subject: [PATCH] fixed: build with dune 2.6 without MPI --- opm/simulators/linalg/ISTLSolverEbosFlexible.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opm/simulators/linalg/ISTLSolverEbosFlexible.hpp b/opm/simulators/linalg/ISTLSolverEbosFlexible.hpp index 0c5b079b1..48a39716e 100644 --- a/opm/simulators/linalg/ISTLSolverEbosFlexible.hpp +++ b/opm/simulators/linalg/ISTLSolverEbosFlexible.hpp @@ -74,7 +74,6 @@ public: explicit ISTLSolverEbosFlexible(const Simulator& simulator) : simulator_(simulator) - , comm_(nullptr) { parameters_.template init(); 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 comm_; +#endif std::vector>> overlapRowAndColumns_; }; // end ISTLSolverEbosFlexible