Merge pull request #6072 from hakonhagland/fix_warn_report_step

Fix unused private variable warning
This commit is contained in:
Bård Skaflestad authored and GitHub committed 2025-03-12 16:28:44 +01:00
commit c13241db8e
3 files changed
+3 -7

No files matched your search

@@ -68,7 +68,7 @@ maybeSpawnSlaveProcesses(int report_step)
auto slave_count = rescoup.slaveCount();
auto master_group_count = rescoup.masterGroupCount();
if (slave_count > 0 && master_group_count > 0) {
ReservoirCouplingSpawnSlaves spawn_slaves{*this, rescoup, report_step};
ReservoirCouplingSpawnSlaves spawn_slaves{*this, rescoup};
spawn_slaves.spawn();
}
}
@@ -46,12 +46,10 @@ namespace Opm {
ReservoirCouplingSpawnSlaves::
ReservoirCouplingSpawnSlaves(
ReservoirCouplingMaster &master,
const ReservoirCoupling::CouplingInfo &rescoup,
const int report_step
const ReservoirCoupling::CouplingInfo &rescoup
) :
master_{master},
rescoup_{rescoup},
report_step_{report_step},
comm_{master.getComm()}
{
}
@@ -41,8 +41,7 @@ public:
ReservoirCouplingSpawnSlaves(
ReservoirCouplingMaster &master,
const ReservoirCoupling::CouplingInfo &rescoup,
const int report_step
const ReservoirCoupling::CouplingInfo &rescoup
);
void spawn();
@@ -64,7 +63,6 @@ private:
ReservoirCouplingMaster &master_;
const ReservoirCoupling::CouplingInfo &rescoup_;
const int report_step_;
const Parallel::Communication &comm_;
};