Fixes compilation of opencl CPR without MPI

This commit is contained in:
Markus Blatt committed 2021-12-08 20:24:14 +01:00
1 parent a61f69bb79
commit ac41c318da
1 file changed
+4
+4
View File
@@ -238,7 +238,11 @@ void CPR<block_size>::create_preconditioner_amg(BlockedMatrix *mat_) {
} }
} }
#if HAVE_MPI
using Communication = Dune::OwnerOverlapCopyCommunication<int, int>; using Communication = Dune::OwnerOverlapCopyCommunication<int, int>;
#else
using Communication = Dune::Amg::SequentialInformation;
#endif
using OverlapFlags = Dune::NegateSet<Communication::OwnerSet>; using OverlapFlags = Dune::NegateSet<Communication::OwnerSet>;
if (recalculate_aggregates) { if (recalculate_aggregates) {
dune_coarse = std::make_unique<DuneMat>(Nb, Nb, nnzb, DuneMat::row_wise); dune_coarse = std::make_unique<DuneMat>(Nb, Nb, nnzb, DuneMat::row_wise);