mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Do not instantiate things requiring MPI when HAVE_MPI is false.
This commit is contained in:
parent
dcd5d21415
commit
faddef0321
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user