diff --git a/opm/autodiff/MultisegmentWells.cpp b/opm/autodiff/MultisegmentWells.cpp index 5c4ed9f43..7cb88b49b 100644 --- a/opm/autodiff/MultisegmentWells.cpp +++ b/opm/autodiff/MultisegmentWells.cpp @@ -142,7 +142,7 @@ namespace Opm { MultisegmentWells:: MultisegmentWells(const Wells* wells_arg, const std::vector< const Well* >& wells_ecl, - const int time_step, const Communication& comm) + const int time_step) : wells_multisegment_( createMSWellVector(wells_arg, wells_ecl, time_step) ) , wops_ms_(wells_multisegment_) , num_phases_(wells_arg ? wells_arg->number_of_phases : 0) @@ -158,7 +158,6 @@ namespace Opm { , segment_comp_surf_volume_current_(num_phases_, ADB::null()) , segment_mass_flow_rates_(ADB::null()) , segment_viscosities_(ADB::null()) - , comm_(comm) { const int nw = wells_multisegment_.size(); int nperf_total = 0; diff --git a/opm/autodiff/MultisegmentWells.hpp b/opm/autodiff/MultisegmentWells.hpp index bd606a777..144428962 100644 --- a/opm/autodiff/MultisegmentWells.hpp +++ b/opm/autodiff/MultisegmentWells.hpp @@ -90,8 +90,7 @@ namespace Opm { // TODO: it should use const Wells or something else later. MultisegmentWells(const Wells* wells_arg, const std::vector< const Well* >& wells_ecl, - const int time_step, - const Communication& comm=Communication()); + const int time_step); std::vector createMSWellVector(const Wells* wells_arg, const std::vector< const Well* >& wells_ecl, @@ -312,7 +311,6 @@ namespace Opm { Vector well_perforation_densities_; Vector well_perforation_pressure_diffs_; - Communication comm_; }; } // namespace Opm diff --git a/opm/autodiff/MultisegmentWells_impl.hpp b/opm/autodiff/MultisegmentWells_impl.hpp index 6f5278539..35366b0ff 100644 --- a/opm/autodiff/MultisegmentWells_impl.hpp +++ b/opm/autodiff/MultisegmentWells_impl.hpp @@ -824,7 +824,7 @@ namespace Opm MultisegmentWells:: updateWellControls(WellState& xw) const { - wellhelpers::WellSwitchingLogger logger(comm_); + wellhelpers::WellSwitchingLogger logger; if( msWells().empty() ) return ; diff --git a/opm/autodiff/StandardWells.hpp b/opm/autodiff/StandardWells.hpp index ccf77db55..6896471bb 100644 --- a/opm/autodiff/StandardWells.hpp +++ b/opm/autodiff/StandardWells.hpp @@ -70,8 +70,7 @@ namespace Opm { Eigen::Dynamic, Eigen::RowMajor>; // --------- Public methods --------- - explicit StandardWells(const Wells* wells_arg, - const Communication& comm=Communication()); + explicit StandardWells(const Wells* wells_arg); void init(const BlackoilPropsAdInterface* fluid_arg, const std::vector* active_arg, @@ -211,8 +210,6 @@ namespace Opm { bool store_well_perforation_fluxes_; Vector well_perforation_fluxes_; - Communication comm_; - // protected methods template void computePropertiesForWellConnectionPressures(const SolutionState& state, diff --git a/opm/autodiff/StandardWells_impl.hpp b/opm/autodiff/StandardWells_impl.hpp index dac2770f7..a8825f6df 100644 --- a/opm/autodiff/StandardWells_impl.hpp +++ b/opm/autodiff/StandardWells_impl.hpp @@ -71,8 +71,7 @@ namespace Opm -StandardWells::StandardWells(const Wells* wells_arg, - const Communication& comm) +StandardWells::StandardWells(const Wells* wells_arg) : wells_active_(wells_arg!=nullptr) , wells_(wells_arg) , wops_(wells_arg) @@ -83,7 +82,6 @@ StandardWells::StandardWells(const Wells* wells_arg, , well_perforation_densities_(Vector()) , well_perforation_pressure_diffs_(Vector()) , store_well_perforation_fluxes_(false) - , comm_(comm) { } @@ -708,7 +706,7 @@ StandardWells::StandardWells(const Wells* wells_arg, StandardWells:: updateWellControls(WellState& xw) const { - wellhelpers::WellSwitchingLogger logger(comm_); + wellhelpers::WellSwitchingLogger logger; if( !localWellsActive() ) return ;