Rename Top-Level Loop Function

Suggested by [at]joakim-hove
This commit is contained in:
Bård Skaflestad 2020-10-04 16:09:56 +02:00
parent 4956e880a4
commit d65b83c28b

View File

@ -73,11 +73,11 @@ namespace {
} }
template <class ConnOp> template <class ConnOp>
void connectionLoop(const Opm::Schedule& sched, void wellConnectionLoop(const Opm::Schedule& sched,
const std::size_t sim_step, const std::size_t sim_step,
const Opm::EclipseGrid& grid, const Opm::EclipseGrid& grid,
const Opm::data::WellRates& xw, const Opm::data::WellRates& xw,
ConnOp&& connOp) ConnOp&& connOp)
{ {
std::size_t wellID = 0; std::size_t wellID = 0;
for (const auto& wname : sched.wellNames(sim_step)) { for (const auto& wname : sched.wellNames(sim_step)) {
@ -302,7 +302,7 @@ captureDeclaredConnData(const Schedule& sched,
const data::WellRates& xw, const data::WellRates& xw,
const std::size_t sim_step) const std::size_t sim_step)
{ {
connectionLoop(sched, sim_step, grid, xw, [&units, this] wellConnectionLoop(sched, sim_step, grid, xw, [&units, this]
(const std::size_t wellID, (const std::size_t wellID,
const Connection& conn, const Connection& conn,
const std::size_t connID, const std::size_t connID,