RestartConfig::RestartConfig( const SCHEDULESection& schedule, const SOLUTIONSection& solution, std::shared_ptr< const TimeMap > timemap) : m_timemap( timemap ), m_first_restart_step( -1 ), restart_schedule( timemap, { 0, 0, 1 } ), restart_keywords( timemap, {} ) { handleSolutionSection( solution ); handleScheduleSection( schedule ); initFirstOutput( ); }
RestartConfig::RestartConfig( const SCHEDULESection& schedule, const SOLUTIONSection& solution, TimeMap timemap) : m_timemap( std::move( timemap ) ), m_first_restart_step( -1 ), restart_schedule( m_timemap, { 0, 0, 1 } ), restart_keywords( m_timemap, {} ), save_keywords( m_timemap.size(), false ) { handleSolutionSection( solution ); handleScheduleSection( schedule ); initFirstOutput( ); }