diff --git a/opm/autodiff/NewtonIterationBlackoilInterleaved.hpp b/opm/autodiff/NewtonIterationBlackoilInterleaved.hpp index a0471836e..37b021983 100644 --- a/opm/autodiff/NewtonIterationBlackoilInterleaved.hpp +++ b/opm/autodiff/NewtonIterationBlackoilInterleaved.hpp @@ -111,9 +111,6 @@ namespace Opm typedef Dune::SeqILU0 SeqPreconditioner; - typedef Dune::OwnerOverlapCopyCommunication Comm; - typedef Dune::BlockPreconditioner ParPreconditioner; - template SeqPreconditioner constructPrecond(Operator& opA, const Dune::Amg::SequentialInformation&) const @@ -123,6 +120,9 @@ namespace Opm return precond; } +#if HAVE_MPI + typedef Dune::OwnerOverlapCopyCommunication Comm; + typedef Dune::BlockPreconditioner ParPreconditioner; template ParPreconditioner constructPrecond(Operator& opA, const Comm& comm) const @@ -132,7 +132,7 @@ namespace Opm ParPreconditioner precond(seq_precond, comm); return precond; } - +#endif /// \brief Solve the system using the given preconditioner and scalar product. template