mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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.
This commit is contained in:
parent
c01e6d14f7
commit
8e20e0957f
@ -58,6 +58,7 @@ namespace Amg
|
||||
*/
|
||||
struct PressureInverseOperator : public Dune::InverseOperator<X, X>
|
||||
{
|
||||
#if HAVE_MPI
|
||||
template <typename GlobalIndex, typename LocalIndex>
|
||||
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<Solver>(op, comm, prm, std::function<X()>());
|
||||
}
|
||||
#endif // HAVE_MPI
|
||||
|
||||
PressureInverseOperator(Operator& op,
|
||||
const boost::property_tree::ptree& prm,
|
||||
const SequentialInformation&)
|
||||
|
Loading…
Reference in New Issue
Block a user