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

Merge branch 'feature/FS300-fix-AMGBackend' into 'master'

[AMGBackend] fix AMGBackend for sequential grids and HAVE_MPI == 1

So far, the AMGBackend only worked for sequential grids if HAVE_MPI
was 0. This was due to the fact that AmgTraits distinguished between
parallel and sequential by evaluating HAVE_MPI. If HAVE_MPI was 1
but the Grid was sequential, this lead to compiler errors for the
constructor calls of the Communicator, LinearOperator and
ScalarProduct.

Do this properly now by using Dune::Capabilities for distinction
between the sequential and parallel case. For Dune 2.4, the
capability isParallel has to be used, while for Dune 3.0, it is
canCommunicate. The correct AmgTraits and constructor calls are
chosen by template specialization.

This solves FS#300.

See merge request !16
parents b9e5d439 21c2b3d8
No related branches found
No related tags found
1 merge request!31Feature/colebrookwhiteboundarylayer
Loading
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