Merge pull request #4754 from atgeirr/fix-comm-related-regression

Add code path for the no-MPI case.
This commit is contained in:
Atgeirr Flø Rasmussen 2023-07-25 13:49:30 +02:00 committed by GitHub
commit d4774cc36e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,11 @@ void FlexibleSolverInfo<Matrix,Vector,Comm>::create(const Matrix& matrix,
{
// Write sizes of linear systems on all ranks to debug log.
{
#if HAVE_MPI
auto basic_comm = comm.communicator();
#else
auto basic_comm = Dune::Communication<Dune::No_Comm>{};
#endif // HAVE_MPI
std::ostringstream os;
os << "Linear system ";
if (basic_comm.size() > 1) {