Skip to content
Snippets Groups Projects
Commit 2a2c0b5f authored by Martin Beck's avatar Martin Beck
Browse files

[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.
parent e525f546
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ public: ...@@ -62,6 +62,7 @@ public:
typedef Dune::SeqSSOR<MType,VType, VType> Smoother; typedef Dune::SeqSSOR<MType,VType, VType> Smoother;
}; };
#if HAVE_MPI
template <class MType, class VType> template <class MType, class VType>
class NonoverlappingSolverTraits<MType, VType, true> class NonoverlappingSolverTraits<MType, VType, true>
{ {
...@@ -71,6 +72,7 @@ public: ...@@ -71,6 +72,7 @@ public:
typedef Dune::NonoverlappingSchwarzScalarProduct<VType,Comm> ScalarProduct; typedef Dune::NonoverlappingSchwarzScalarProduct<VType,Comm> ScalarProduct;
typedef Dune::NonoverlappingBlockPreconditioner<Comm,Dune::SeqSSOR<MType,VType, VType> > Smoother; typedef Dune::NonoverlappingBlockPreconditioner<Comm,Dune::SeqSSOR<MType,VType, VType> > Smoother;
}; };
#endif
//! Box: use the non-overlapping AMG //! Box: use the non-overlapping AMG
SET_PROP(BoxModel, AmgTraits) SET_PROP(BoxModel, AmgTraits)
...@@ -104,6 +106,7 @@ public: ...@@ -104,6 +106,7 @@ public:
typedef Dune::SeqSSOR<MType,VType, VType> Smoother; typedef Dune::SeqSSOR<MType,VType, VType> Smoother;
}; };
#if HAVE_MPI
template <class MType, class VType> template <class MType, class VType>
class OverlappingSolverTraits<MType, VType, true> class OverlappingSolverTraits<MType, VType, true>
{ {
...@@ -113,6 +116,7 @@ public: ...@@ -113,6 +116,7 @@ public:
typedef Dune::OverlappingSchwarzScalarProduct<VType,Comm> ScalarProduct; typedef Dune::OverlappingSchwarzScalarProduct<VType,Comm> ScalarProduct;
typedef Dune::BlockPreconditioner<VType,VType,Comm,Dune::SeqSSOR<MType,VType, VType> > Smoother; typedef Dune::BlockPreconditioner<VType,VType,Comm,Dune::SeqSSOR<MType,VType, VType> > Smoother;
}; };
#endif
//! Cell-centered: use the overlapping AMG //! Cell-centered: use the overlapping AMG
SET_PROP(CCModel, AmgTraits) SET_PROP(CCModel, AmgTraits)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment