mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use make_unique to create unique_ptrs with exception safety.
This commit is contained in:
parent
75104fd310
commit
1300139eea
@ -351,8 +351,8 @@ public:
|
||||
}
|
||||
else
|
||||
eclSchedule_ = externalEclSchedule_.get();
|
||||
this->summaryState_.reset( new Opm::SummaryState( std::chrono::system_clock::from_time_t(this->eclSchedule_->getStartTime() )));
|
||||
this->actionState_.reset( new Opm::Action::State() );
|
||||
this->summaryState_ = std::make_unique<Opm::SummaryState>( std::chrono::system_clock::from_time_t(this->eclSchedule_->getStartTime() ));
|
||||
this->actionState_ = std::make_unique<Opm::Action::State>() ;
|
||||
|
||||
if (!externalEclSummaryConfig_) {
|
||||
// create the schedule object. Note that if eclState is supposed to represent
|
||||
|
Loading…
Reference in New Issue
Block a user