From ae6caaac61fb3c541117d587fadc80b5d2a0b5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Fri, 19 Jun 2015 14:06:27 +0200 Subject: [PATCH] Move parallel overload into HAVE_MPI block. --- opm/autodiff/NewtonIterationBlackoilInterleaved.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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