mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4754 from atgeirr/fix-comm-related-regression
Add code path for the no-MPI case.
This commit is contained in:
commit
d4774cc36e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user