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

View File

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

View File

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

View File

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