Do not instantiate things requiring MPI when HAVE_MPI is false.

This commit is contained in:
Atgeirr Flø Rasmussen
2020-06-19 10:01:16 +02:00
parent dcd5d21415
commit faddef0321
4 changed files with 8 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ template class Dune::FlexibleSolver<BM<1>, BV<1>>;
// Variants using Opm::MatrixBlock blocks.
template class Dune::FlexibleSolver<OBM<1>, BV<1>>;
#if HAVE_MPI
using Comm = Dune::OwnerOverlapCopyCommunication<int, int>;
@@ -52,3 +53,4 @@ template Dune::FlexibleSolver<OBM<1>, BV<1>>::FlexibleSolver(const MatrixType& m
const boost::property_tree::ptree& prm,
const std::function<BV<1>()>& weightsCalculator);
#endif // HAVE_MPI