mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-28 16:14:25 -06:00
Merge pull request #4501 from hnil/fixes_ebosinterface
- small change to corret ebos use of the original interfaces
This commit is contained in:
commit
468494e801
@ -223,6 +223,19 @@ void EclGenericVanguard::init()
|
||||
std::transform(caseName_.begin(), caseName_.end(), caseName_.begin(), ::toupper);
|
||||
}
|
||||
|
||||
// set communicator if not set as in opm flow
|
||||
if(!comm_){
|
||||
EclGenericVanguard::setCommunication(std::make_unique<Parallel::Communication>());
|
||||
}
|
||||
|
||||
// set eclState if not already set as in opm flow
|
||||
// it means that setParams is called
|
||||
if(!eclState_){
|
||||
this->readDeck(fileName_);
|
||||
this->defineSimulationModel(std::move(this->modelParams_));
|
||||
}
|
||||
|
||||
|
||||
if (!this->summaryState_)
|
||||
this->summaryState_ = std::make_unique<SummaryState>( TimeService::from_time_t(this->eclSchedule_->getStartTime() ));
|
||||
|
||||
|
@ -917,7 +917,7 @@ public:
|
||||
// to the first "real" episode/report step
|
||||
// for restart the episode index and start is already set
|
||||
if (!initconfig.restartRequested()) {
|
||||
simulator.startNextEpisode(schedule.seconds(0));
|
||||
simulator.startNextEpisode(schedule.seconds(1));
|
||||
simulator.setEpisodeIndex(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user