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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user