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

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. // Write sizes of linear systems on all ranks to debug log.
{ {
#if HAVE_MPI
auto basic_comm = comm.communicator(); auto basic_comm = comm.communicator();
#else
auto basic_comm = Dune::Communication<Dune::No_Comm>{};
#endif // HAVE_MPI
std::ostringstream os; std::ostringstream os;
os << "Linear system "; os << "Linear system ";
if (basic_comm.size() > 1) { if (basic_comm.size() > 1) {