Remove debug code

Remove debug code that was introduced by mistake in the previous commit
This commit is contained in:
Håkon Hægland 2024-08-06 21:49:07 +02:00
parent ef62ea7a7d
commit 5dfbf50b7d
2 changed files with 9 additions and 13 deletions

View File

@ -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 {

View File

@ -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);