From 8e20e0957f752f4243bf39e44c58d0c663137401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Wed, 1 Jul 2020 21:52:57 +0200 Subject: [PATCH] Don't Name Type that does not Exist in Sequential Configurations This commit makes the constructor PressureInverseOperator that accepts a Dune::OwnerOverlapCopyCommunication<> object contingent on having MPI. The type does not exist otherwise. --- opm/simulators/linalg/PressureSolverPolicy.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opm/simulators/linalg/PressureSolverPolicy.hpp b/opm/simulators/linalg/PressureSolverPolicy.hpp index 699ac1611..d37e82601 100644 --- a/opm/simulators/linalg/PressureSolverPolicy.hpp +++ b/opm/simulators/linalg/PressureSolverPolicy.hpp @@ -58,6 +58,7 @@ namespace Amg */ struct PressureInverseOperator : public Dune::InverseOperator { +#if HAVE_MPI template PressureInverseOperator(Operator& op, const boost::property_tree::ptree& prm, @@ -67,6 +68,8 @@ namespace Amg assert(op.category() == Dune::SolverCategory::overlapping); linsolver_ = std::make_unique(op, comm, prm, std::function()); } +#endif // HAVE_MPI + PressureInverseOperator(Operator& op, const boost::property_tree::ptree& prm, const SequentialInformation&)