From 2a2c0b5f1a10534891f75c9f54b49e0184727925 Mon Sep 17 00:00:00 2001 From: Martin Beck <martin.beck@iws.uni-stuttgart.de> Date: Thu, 21 Jan 2016 14:00:26 +0100 Subject: [PATCH] [amg] Fixed compiler error in case no MPI has been found Added #if HAVE_MPI before class instantiation of NonoverlappingSolverTraits and OverlappingSolverTraits. Reviewed by Bernd. --- dumux/linear/amgproperties.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dumux/linear/amgproperties.hh b/dumux/linear/amgproperties.hh index 5cbe12e65c..40151f87c0 100644 --- a/dumux/linear/amgproperties.hh +++ b/dumux/linear/amgproperties.hh @@ -62,6 +62,7 @@ public: typedef Dune::SeqSSOR<MType,VType, VType> Smoother; }; +#if HAVE_MPI template <class MType, class VType> class NonoverlappingSolverTraits<MType, VType, true> { @@ -71,6 +72,7 @@ public: typedef Dune::NonoverlappingSchwarzScalarProduct<VType,Comm> ScalarProduct; typedef Dune::NonoverlappingBlockPreconditioner<Comm,Dune::SeqSSOR<MType,VType, VType> > Smoother; }; +#endif //! Box: use the non-overlapping AMG SET_PROP(BoxModel, AmgTraits) @@ -104,6 +106,7 @@ public: typedef Dune::SeqSSOR<MType,VType, VType> Smoother; }; +#if HAVE_MPI template <class MType, class VType> class OverlappingSolverTraits<MType, VType, true> { @@ -113,6 +116,7 @@ public: typedef Dune::OverlappingSchwarzScalarProduct<VType,Comm> ScalarProduct; typedef Dune::BlockPreconditioner<VType,VType,Comm,Dune::SeqSSOR<MType,VType, VType> > Smoother; }; +#endif //! Cell-centered: use the overlapping AMG SET_PROP(CCModel, AmgTraits) -- GitLab