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:
Bård Skaflestad 2020-07-01 21:52:57 +02:00
parent c01e6d14f7
commit 8e20e0957f

View File

@ -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&)