mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 21:39:09 -06:00
Merge pull request #3731 from blattms/fix-opencl-cpr-serial
Fixes compilation of opencl CPR without MPI
This commit is contained in:
commit
77e03660d9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user