diff --git a/opm/simulators/flow/ReservoirCouplingMaster.cpp b/opm/simulators/flow/ReservoirCouplingMaster.cpp index c0e82fe327..f8b13af42a 100644 --- a/opm/simulators/flow/ReservoirCouplingMaster.cpp +++ b/opm/simulators/flow/ReservoirCouplingMaster.cpp @@ -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(); } } diff --git a/opm/simulators/flow/ReservoirCouplingSpawnSlaves.cpp b/opm/simulators/flow/ReservoirCouplingSpawnSlaves.cpp index 741bbb224a..93d4f14717 100644 --- a/opm/simulators/flow/ReservoirCouplingSpawnSlaves.cpp +++ b/opm/simulators/flow/ReservoirCouplingSpawnSlaves.cpp @@ -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()} { } diff --git a/opm/simulators/flow/ReservoirCouplingSpawnSlaves.hpp b/opm/simulators/flow/ReservoirCouplingSpawnSlaves.hpp index 054f9939b2..bbccbff22e 100644 --- a/opm/simulators/flow/ReservoirCouplingSpawnSlaves.hpp +++ b/opm/simulators/flow/ReservoirCouplingSpawnSlaves.hpp @@ -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_; };