mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fixes compilation of opencl CPR without MPI
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user