From ac41c318da6068e7f5247f09b341d50dec642c52 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Wed, 8 Dec 2021 20:22:00 +0100 Subject: [PATCH] Fixes compilation of opencl CPR without MPI --- opm/simulators/linalg/bda/CPR.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opm/simulators/linalg/bda/CPR.cpp b/opm/simulators/linalg/bda/CPR.cpp index c8049fa09..2ec51bba4 100644 --- a/opm/simulators/linalg/bda/CPR.cpp +++ b/opm/simulators/linalg/bda/CPR.cpp @@ -238,7 +238,11 @@ void CPR::create_preconditioner_amg(BlockedMatrix *mat_) { } } +#if HAVE_MPI using Communication = Dune::OwnerOverlapCopyCommunication; +#else + using Communication = Dune::Amg::SequentialInformation; +#endif using OverlapFlags = Dune::NegateSet; if (recalculate_aggregates) { dune_coarse = std::make_unique(Nb, Nb, nnzb, DuneMat::row_wise);