コード例 #1
0
ファイル: RestartConfig.cpp プロジェクト: magnesj/ResInsight
    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( );
    }
コード例 #2
0
ファイル: RestartConfig.cpp プロジェクト: rolk/opm-cmake
    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( );
    }