Merge pull request #3731 from blattms/fix-opencl-cpr-serial

Fixes compilation of opencl CPR without MPI
This commit is contained in:
Markus Blatt 2021-12-08 20:55:35 +01:00 committed by GitHub
commit 77e03660d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,11 @@ void CPR<block_size>::create_preconditioner_amg(BlockedMatrix *mat_) {
}
}
#if HAVE_MPI
using Communication = Dune::OwnerOverlapCopyCommunication<int, int>;
#else
using Communication = Dune::Amg::SequentialInformation;
#endif
using OverlapFlags = Dune::NegateSet<Communication::OwnerSet>;
if (recalculate_aggregates) {
dune_coarse = std::make_unique<DuneMat>(Nb, Nb, nnzb, DuneMat::row_wise);