mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove debug code
Remove debug code that was introduced by mistake in the previous commit
This commit is contained in:
parent
ef62ea7a7d
commit
5dfbf50b7d
@ -51,8 +51,6 @@ namespace Opm::Parameters {
|
||||
// Do not merge parallel output files or warn about them
|
||||
struct EnableLoggingFalloutWarning { static constexpr bool value = false; };
|
||||
struct OutputInterval { static constexpr int value = 1; };
|
||||
struct Slave { static constexpr bool value = false; };
|
||||
|
||||
} // namespace Opm::Parameters
|
||||
|
||||
namespace Opm {
|
||||
|
@ -199,7 +199,7 @@ public:
|
||||
// NOTE: The argc and argv will be used when launching a slave process
|
||||
void init(SimulatorTimer &timer, int argc, char** argv)
|
||||
{
|
||||
auto slave_mode = Parameters::get<TypeTag, Properties::Slave>();
|
||||
auto slave_mode = Parameters::get<TypeTag, Parameters::Slave>();
|
||||
if (slave_mode) {
|
||||
this->reservoirCouplingSlave_ =
|
||||
std::make_unique<ReservoirCouplingSlave>(
|
||||
@ -212,16 +212,14 @@ public:
|
||||
// For now, we require that SLAVES and GRUPMAST are defined at the first
|
||||
// schedule step, so it is enough to check the first step. See the
|
||||
// keyword handlers in opm-common for more information.
|
||||
if (!this->schedule()[0].rescoup.empty()) {
|
||||
auto master_mode = this->schedule()[0].rescoup().masterMode();
|
||||
if (master_mode) {
|
||||
this->reservoirCouplingMaster_ =
|
||||
std::make_unique<ReservoirCouplingMaster>(
|
||||
FlowGenericVanguard::comm(),
|
||||
this->schedule()
|
||||
);
|
||||
this->reservoirCouplingMaster_->spawnSlaveProcesses(argc, argv);
|
||||
}
|
||||
auto master_mode = this->schedule()[0].rescoup().masterMode();
|
||||
if (master_mode) {
|
||||
this->reservoirCouplingMaster_ =
|
||||
std::make_unique<ReservoirCouplingMaster>(
|
||||
FlowGenericVanguard::comm(),
|
||||
this->schedule()
|
||||
);
|
||||
this->reservoirCouplingMaster_->spawnSlaveProcesses(argc, argv);
|
||||
}
|
||||
}
|
||||
simulator_.setEpisodeIndex(-1);
|
||||
|
Loading…
Reference in New Issue
Block a user