Commit 2627a955 authored by Timo Koch's avatar Timo Koch
Browse files

[linear][amg] Use isParallel from AMGTraits

parent 9bd35010
...@@ -134,7 +134,7 @@ public: ...@@ -134,7 +134,7 @@ public:
std::shared_ptr<LinearOperator> fop; std::shared_ptr<LinearOperator> fop;
std::shared_ptr<ScalarProduct> sp; std::shared_ptr<ScalarProduct> sp;
static const int dofCodim = AmgTraits::dofCodim; static const int dofCodim = AmgTraits::dofCodim;
static const bool isParallel = Dune::Capabilities::canCommunicate<Grid, dofCodim>::v; static const bool isParallel = AmgTraits::isParallel;
prepareLinearAlgebra_<Matrix, Vector, isParallel>(A, b, rank, comm, fop, sp); prepareLinearAlgebra_<Matrix, Vector, isParallel>(A, b, rank, comm, fop, sp);
using SmootherArgs = typename Dune::Amg::SmootherTraits<Smoother>::Arguments; using SmootherArgs = typename Dune::Amg::SmootherTraits<Smoother>::Arguments;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment