2018-11-13 07:01:01 -06:00
|
|
|
/*
|
2022-12-08 10:16:34 -06:00
|
|
|
Copyright 2018, 2022 Equinor ASA.
|
2018-11-13 07:01:01 -06:00
|
|
|
Copyright 2018 SINTEF Digital, Mathematics and Cybernetics.
|
|
|
|
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
|
|
|
|
OPM is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
OPM is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <opm/simulators/timestepping/gatherConvergenceReport.hpp>
|
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
#include <algorithm>
|
|
|
|
#include <tuple>
|
2024-04-22 09:48:11 -05:00
|
|
|
#include <utility>
|
2024-05-07 08:49:12 -05:00
|
|
|
#include <vector>
|
2024-04-22 09:48:11 -05:00
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
#if HAVE_MPI
|
|
|
|
|
|
|
|
#include <mpi.h>
|
|
|
|
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
|
|
|
|
using Opm::ConvergenceReport;
|
|
|
|
|
|
|
|
void packReservoirFailure(const ConvergenceReport::ReservoirFailure& f,
|
2024-05-07 08:49:12 -05:00
|
|
|
std::vector<char>& buf, int& offset,
|
|
|
|
MPI_Comm mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
auto pack = [&buf, &offset, mpi_communicator]
|
|
|
|
(const auto* ptr, const int size, const auto type)
|
|
|
|
{
|
|
|
|
MPI_Pack(ptr, size, type,
|
|
|
|
buf.data(), buf.size(), &offset,
|
|
|
|
mpi_communicator);
|
|
|
|
};
|
|
|
|
|
|
|
|
const int type = static_cast<int>(f.type());
|
|
|
|
const int severity = static_cast<int>(f.severity());
|
|
|
|
const int phase = f.phase();
|
|
|
|
|
|
|
|
pack(&type, 1, MPI_INT);
|
|
|
|
pack(&severity, 1, MPI_INT);
|
|
|
|
pack(&phase, 1, MPI_INT);
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
|
|
|
|
2022-12-08 10:16:34 -06:00
|
|
|
void packReservoirConvergenceMetric(const ConvergenceReport::ReservoirConvergenceMetric& m,
|
2024-05-07 08:49:12 -05:00
|
|
|
std::vector<char>& buf, int& offset,
|
|
|
|
MPI_Comm mpi_communicator)
|
2022-12-08 10:16:34 -06:00
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
auto pack = [&buf, &offset, mpi_communicator]
|
|
|
|
(const auto* ptr, const int size, const auto type)
|
|
|
|
{
|
|
|
|
MPI_Pack(ptr, size, type,
|
|
|
|
buf.data(), buf.size(), &offset,
|
|
|
|
mpi_communicator);
|
|
|
|
};
|
|
|
|
|
|
|
|
const int type = static_cast<int>(m.type());
|
|
|
|
const int phase = m.phase();
|
|
|
|
const double value = m.value();
|
|
|
|
|
|
|
|
pack(&type, 1, MPI_INT);
|
|
|
|
pack(&phase, 1, MPI_INT);
|
|
|
|
pack(&value, 1, MPI_DOUBLE);
|
2022-12-08 10:16:34 -06:00
|
|
|
}
|
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
void packWellFailure(const ConvergenceReport::WellFailure& f,
|
2024-05-07 08:49:12 -05:00
|
|
|
std::vector<char>& buf, int& offset,
|
|
|
|
MPI_Comm mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
auto pack = [&buf, &offset, mpi_communicator]
|
|
|
|
(const auto* ptr, const int size, const auto type)
|
|
|
|
{
|
|
|
|
MPI_Pack(ptr, size, type,
|
|
|
|
buf.data(), buf.size(), &offset,
|
|
|
|
mpi_communicator);
|
|
|
|
};
|
|
|
|
|
|
|
|
const int type = static_cast<int>(f.type());
|
|
|
|
const int severity = static_cast<int>(f.severity());
|
|
|
|
const int phase = f.phase();
|
|
|
|
pack(&type, 1, MPI_INT);
|
|
|
|
pack(&severity, 1, MPI_INT);
|
|
|
|
pack(&phase, 1, MPI_INT);
|
|
|
|
|
|
|
|
// Add one for the null terminator.
|
|
|
|
const int name_length = f.wellName().size() + 1;
|
|
|
|
pack(&name_length, 1, MPI_INT);
|
|
|
|
pack(f.wellName().c_str(), name_length, MPI_CHAR);
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
void packConvergenceReport(const ConvergenceReport& local_report,
|
2024-05-07 08:49:12 -05:00
|
|
|
std::vector<char>& buf, int& offset,
|
|
|
|
MPI_Comm mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
auto pack = [&buf, &offset, mpi_communicator]
|
|
|
|
(const auto* ptr, const int size, const auto type)
|
|
|
|
{
|
|
|
|
MPI_Pack(ptr, size, type,
|
|
|
|
buf.data(), buf.size(), &offset,
|
|
|
|
mpi_communicator);
|
|
|
|
};
|
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
// Pack the data.
|
|
|
|
// Status will not be packed, it is possible to deduce from the other data.
|
2024-05-07 08:49:12 -05:00
|
|
|
const auto reportTime = local_report.reportTime();
|
|
|
|
pack(&reportTime, 1, MPI_DOUBLE);
|
2024-04-22 09:48:11 -05:00
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
// CNV pore-volume split
|
2024-04-22 09:48:11 -05:00
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
const auto& cnvPvSplit = local_report.cnvPvSplit();
|
|
|
|
const auto eligiblePoreVolume = local_report.eligiblePoreVolume();
|
|
|
|
const auto num_cnv_pv = static_cast<int>(cnvPvSplit.first.size());
|
|
|
|
|
|
|
|
pack(&eligiblePoreVolume , 1 , MPI_DOUBLE);
|
|
|
|
pack(&num_cnv_pv , 1 , MPI_INT);
|
|
|
|
pack(cnvPvSplit.first .data(), num_cnv_pv, MPI_DOUBLE);
|
|
|
|
pack(cnvPvSplit.second.data(), num_cnv_pv, MPI_INT);
|
2024-04-22 09:48:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reservoir failures.
|
2024-05-07 08:49:12 -05:00
|
|
|
{
|
|
|
|
const auto rf = local_report.reservoirFailures();
|
|
|
|
const int num_rf = rf.size();
|
|
|
|
|
|
|
|
pack(&num_rf, 1, MPI_INT);
|
|
|
|
|
|
|
|
for (const auto& f : rf) {
|
|
|
|
packReservoirFailure(f, buf, offset, mpi_communicator);
|
|
|
|
}
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
2024-04-22 09:48:11 -05:00
|
|
|
|
2022-12-08 10:16:34 -06:00
|
|
|
// Reservoir convergence metrics.
|
2024-05-07 08:49:12 -05:00
|
|
|
{
|
|
|
|
const auto rm = local_report.reservoirConvergence();
|
|
|
|
const int num_rm = rm.size();
|
|
|
|
|
|
|
|
pack(&num_rm, 1, MPI_INT);
|
|
|
|
|
|
|
|
for (const auto& m : rm) {
|
|
|
|
packReservoirConvergenceMetric(m, buf, offset, mpi_communicator);
|
|
|
|
}
|
2022-12-08 10:16:34 -06:00
|
|
|
}
|
2024-04-22 09:48:11 -05:00
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
// Well failures.
|
2024-05-07 08:49:12 -05:00
|
|
|
{
|
|
|
|
const auto wf = local_report.wellFailures();
|
|
|
|
const int num_wf = wf.size();
|
|
|
|
|
|
|
|
pack(&num_wf, 1, MPI_INT);
|
|
|
|
|
|
|
|
for (const auto& f : wf) {
|
|
|
|
packWellFailure(f, buf, offset, mpi_communicator);
|
|
|
|
}
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-25 05:57:11 -05:00
|
|
|
int messageSize(const ConvergenceReport& local_report, MPI_Comm mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
|
|
|
int int_pack_size = 0;
|
2021-05-25 05:57:11 -05:00
|
|
|
MPI_Pack_size(1, MPI_INT, mpi_communicator, &int_pack_size);
|
2024-05-07 08:49:12 -05:00
|
|
|
|
2022-12-08 10:16:34 -06:00
|
|
|
int double_pack_size = 0;
|
|
|
|
MPI_Pack_size(1, MPI_DOUBLE, mpi_communicator, &double_pack_size);
|
2024-05-07 08:49:12 -05:00
|
|
|
|
|
|
|
int char_pack_size = 0;
|
|
|
|
MPI_Pack_size(1, MPI_CHAR, mpi_communicator, &char_pack_size);
|
|
|
|
|
|
|
|
const int num_cnv_pv = local_report.cnvPvSplit().first.size();
|
2018-11-13 07:01:01 -06:00
|
|
|
const int num_rf = local_report.reservoirFailures().size();
|
2022-12-08 10:16:34 -06:00
|
|
|
const int num_rm = local_report.reservoirConvergence().size();
|
2018-11-13 07:01:01 -06:00
|
|
|
const int num_wf = local_report.wellFailures().size();
|
2024-05-07 08:49:12 -05:00
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
int wellnames_length = 0;
|
2020-09-01 06:25:26 -05:00
|
|
|
for (const auto& f : local_report.wellFailures()) {
|
2024-05-07 08:49:12 -05:00
|
|
|
// Add one for the null terminator.
|
|
|
|
wellnames_length += f.wellName().size() + 1;
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
2024-05-07 08:49:12 -05:00
|
|
|
|
|
|
|
return (3 + 1 + num_cnv_pv + 3*num_rf + 2*num_rm + 4*num_wf)*int_pack_size
|
|
|
|
+ (1 + 1 + num_cnv_pv + 1*num_rm)*double_pack_size
|
|
|
|
+ wellnames_length*char_pack_size;
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
ConvergenceReport::ReservoirFailure
|
|
|
|
unpackReservoirFailure(const std::vector<char>& recv_buffer, int& offset, MPI_Comm mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
auto unpackInt = [data = recv_buffer.data(),
|
|
|
|
size = static_cast<int>(recv_buffer.size()),
|
|
|
|
&offset, mpi_communicator]()
|
|
|
|
{
|
|
|
|
auto x = -1;
|
|
|
|
MPI_Unpack(data, size, &offset, &x, 1, MPI_INT, mpi_communicator);
|
|
|
|
|
|
|
|
return x;
|
|
|
|
};
|
|
|
|
|
|
|
|
const auto type = unpackInt();
|
|
|
|
const auto severity = unpackInt();
|
|
|
|
const auto phase = unpackInt();
|
|
|
|
|
|
|
|
return {
|
|
|
|
static_cast<ConvergenceReport::ReservoirFailure::Type>(type),
|
|
|
|
static_cast<ConvergenceReport::Severity>(severity),
|
|
|
|
phase
|
|
|
|
};
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
|
|
|
|
2022-12-08 10:16:34 -06:00
|
|
|
ConvergenceReport::ReservoirConvergenceMetric
|
|
|
|
unpackReservoirConvergenceMetric(const std::vector<char>& recv_buffer, int& offset, MPI_Comm mpi_communicator)
|
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
auto unpack = [data = recv_buffer.data(),
|
|
|
|
size = static_cast<int>(recv_buffer.size()),
|
|
|
|
&offset, mpi_communicator](const auto type, auto x)
|
|
|
|
{
|
|
|
|
MPI_Unpack(data, size, &offset, &x, 1, type, mpi_communicator);
|
|
|
|
|
|
|
|
return x;
|
|
|
|
};
|
|
|
|
|
|
|
|
const auto type = unpack(MPI_INT, -1);
|
|
|
|
const auto phase = unpack(MPI_INT, -1);
|
|
|
|
const auto value = unpack(MPI_DOUBLE, -1.0);
|
|
|
|
|
2022-12-08 10:16:34 -06:00
|
|
|
return { static_cast<ConvergenceReport::ReservoirFailure::Type>(type), phase, value };
|
|
|
|
}
|
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
ConvergenceReport::WellFailure
|
|
|
|
unpackWellFailure(const std::vector<char>& recv_buffer, int& offset, MPI_Comm mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
auto unpackInt = [data = recv_buffer.data(),
|
|
|
|
size = static_cast<int>(recv_buffer.size()),
|
|
|
|
&offset, mpi_communicator]()
|
|
|
|
{
|
|
|
|
auto x = -1;
|
|
|
|
MPI_Unpack(data, size, &offset, &x, 1, MPI_INT, mpi_communicator);
|
|
|
|
|
|
|
|
return x;
|
|
|
|
};
|
|
|
|
|
|
|
|
const auto type = unpackInt();
|
|
|
|
const auto severity = unpackInt();
|
|
|
|
const auto phase = unpackInt();
|
|
|
|
|
|
|
|
const auto name_length = unpackInt();
|
2018-11-13 07:01:01 -06:00
|
|
|
std::vector<char> namechars(name_length);
|
2024-05-07 08:49:12 -05:00
|
|
|
MPI_Unpack(recv_buffer.data(), recv_buffer.size(), &offset,
|
|
|
|
namechars.data(), name_length,
|
|
|
|
MPI_CHAR, mpi_communicator);
|
|
|
|
|
|
|
|
return {
|
|
|
|
static_cast<ConvergenceReport::WellFailure::Type>(type),
|
|
|
|
static_cast<ConvergenceReport::Severity>(severity),
|
|
|
|
phase,
|
|
|
|
const_cast<const std::vector<char>&>(namechars).data()
|
|
|
|
};
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
ConvergenceReport
|
|
|
|
unpackSingleConvergenceReport(const std::vector<char>& recv_buffer, int& offset, MPI_Comm mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
2024-05-07 08:49:12 -05:00
|
|
|
auto unpack = [data = recv_buffer.data(),
|
|
|
|
size = static_cast<int>(recv_buffer.size()),
|
|
|
|
&offset, mpi_communicator](const auto type, auto x)
|
|
|
|
{
|
|
|
|
MPI_Unpack(data, size, &offset, &x, 1, type, mpi_communicator);
|
|
|
|
|
|
|
|
return x;
|
|
|
|
};
|
|
|
|
|
|
|
|
auto cr = ConvergenceReport { unpack(MPI_DOUBLE, 0.0) };
|
2024-04-22 09:48:11 -05:00
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
{
|
|
|
|
const auto eligiblePoreVolume = unpack(MPI_DOUBLE, 0.0);
|
|
|
|
const auto num_cnv_pv = unpack(MPI_INT, -1);
|
|
|
|
|
|
|
|
auto cnvPvSplit = ConvergenceReport::CnvPvSplit {
|
|
|
|
std::piecewise_construct,
|
|
|
|
std::forward_as_tuple(num_cnv_pv),
|
|
|
|
std::forward_as_tuple(num_cnv_pv)
|
|
|
|
};
|
|
|
|
|
|
|
|
const auto* data = recv_buffer.data();
|
|
|
|
|
|
|
|
MPI_Unpack(data, recv_buffer.size(), &offset,
|
|
|
|
cnvPvSplit.first.data(), num_cnv_pv,
|
|
|
|
MPI_DOUBLE, mpi_communicator);
|
2024-04-22 09:48:11 -05:00
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
MPI_Unpack(data, recv_buffer.size(), &offset,
|
|
|
|
cnvPvSplit.second.data(), num_cnv_pv,
|
|
|
|
MPI_DOUBLE, mpi_communicator);
|
2024-04-22 09:48:11 -05:00
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
cr.setCnvPoreVolSplit(cnvPvSplit, eligiblePoreVolume);
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
const auto num_rf = unpack(MPI_INT, -1);
|
2024-04-22 09:48:11 -05:00
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
for (int rf = 0; rf < num_rf; ++rf) {
|
|
|
|
cr.setReservoirFailed(unpackReservoirFailure(recv_buffer, offset, mpi_communicator));
|
|
|
|
}
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
2024-05-07 08:49:12 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
const auto num_rm = unpack(MPI_INT, -1);
|
|
|
|
|
|
|
|
for (int rm = 0; rm < num_rm; ++rm) {
|
|
|
|
cr.setReservoirConvergenceMetric(unpackReservoirConvergenceMetric(recv_buffer, offset, mpi_communicator));
|
|
|
|
}
|
2022-12-08 10:16:34 -06:00
|
|
|
}
|
2024-05-07 08:49:12 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
const auto num_wf = unpack(MPI_INT, -1);
|
|
|
|
|
|
|
|
for (int wf = 0; wf < num_wf; ++wf) {
|
|
|
|
cr.setWellFailed(unpackWellFailure(recv_buffer, offset, mpi_communicator));
|
|
|
|
}
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
2024-05-07 08:49:12 -05:00
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
return cr;
|
|
|
|
}
|
|
|
|
|
2024-05-07 08:49:12 -05:00
|
|
|
ConvergenceReport
|
|
|
|
unpackConvergenceReports(const std::vector<char>& recv_buffer,
|
|
|
|
const std::vector<int>& displ,
|
|
|
|
MPI_Comm mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
|
|
|
ConvergenceReport cr;
|
2024-05-07 08:49:12 -05:00
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
const int num_processes = displ.size() - 1;
|
|
|
|
for (int process = 0; process < num_processes; ++process) {
|
|
|
|
int offset = displ[process];
|
2021-05-25 05:57:11 -05:00
|
|
|
cr += unpackSingleConvergenceReport(recv_buffer, offset, mpi_communicator);
|
2018-11-13 07:01:01 -06:00
|
|
|
assert(offset == displ[process + 1]);
|
|
|
|
}
|
2024-05-07 08:49:12 -05:00
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
return cr;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // anonymous namespace
|
|
|
|
|
|
|
|
|
|
|
|
namespace Opm
|
|
|
|
{
|
|
|
|
|
|
|
|
/// Create a global convergence report combining local
|
|
|
|
/// (per-process) reports.
|
2024-05-07 08:49:12 -05:00
|
|
|
ConvergenceReport gatherConvergenceReport(const ConvergenceReport& local_report,
|
|
|
|
Parallel::Communication mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
|
|
|
// Pack local report.
|
2024-05-07 08:49:12 -05:00
|
|
|
const int message_size = messageSize(local_report, mpi_communicator);
|
2018-11-13 07:01:01 -06:00
|
|
|
std::vector<char> buffer(message_size);
|
2024-05-07 08:49:12 -05:00
|
|
|
{
|
|
|
|
int offset = 0;
|
|
|
|
packConvergenceReport(local_report, buffer, offset, mpi_communicator);
|
|
|
|
assert(offset == message_size);
|
|
|
|
}
|
2018-11-13 07:01:01 -06:00
|
|
|
|
|
|
|
// Get message sizes and create offset/displacement array for gathering.
|
|
|
|
int num_processes = -1;
|
2021-05-25 05:57:11 -05:00
|
|
|
MPI_Comm_size(mpi_communicator, &num_processes);
|
2024-05-07 08:49:12 -05:00
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
std::vector<int> message_sizes(num_processes);
|
2021-05-25 05:57:11 -05:00
|
|
|
MPI_Allgather(&message_size, 1, MPI_INT, message_sizes.data(), 1, MPI_INT, mpi_communicator);
|
2024-05-07 08:49:12 -05:00
|
|
|
|
2018-11-13 07:01:01 -06:00
|
|
|
std::vector<int> displ(num_processes + 1, 0);
|
|
|
|
std::partial_sum(message_sizes.begin(), message_sizes.end(), displ.begin() + 1);
|
|
|
|
|
|
|
|
// Gather.
|
|
|
|
std::vector<char> recv_buffer(displ.back());
|
|
|
|
MPI_Allgatherv(buffer.data(), buffer.size(), MPI_PACKED,
|
2024-05-07 08:49:12 -05:00
|
|
|
recv_buffer.data(), message_sizes.data(),
|
2018-11-15 03:30:51 -06:00
|
|
|
displ.data(), MPI_PACKED,
|
2021-05-25 05:57:11 -05:00
|
|
|
mpi_communicator);
|
2018-11-13 07:01:01 -06:00
|
|
|
|
|
|
|
// Unpack.
|
2024-05-07 08:49:12 -05:00
|
|
|
return unpackConvergenceReports(recv_buffer, displ, mpi_communicator);
|
2018-11-13 07:01:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Opm
|
|
|
|
|
|
|
|
#else // HAVE_MPI
|
|
|
|
|
|
|
|
namespace Opm
|
|
|
|
{
|
2021-10-06 01:52:06 -05:00
|
|
|
ConvergenceReport gatherConvergenceReport(const ConvergenceReport& local_report,
|
2024-05-07 08:49:12 -05:00
|
|
|
[[maybe_unused]] Parallel::Communication mpi_communicator)
|
2018-11-13 07:01:01 -06:00
|
|
|
{
|
|
|
|
return local_report;
|
|
|
|
}
|
|
|
|
} // namespace Opm
|
|
|
|
|
|
|
|
#endif // HAVE_MPI
|