Add optional RstState * argument to Schedule constructors
This commit is contained in:
@@ -112,7 +112,8 @@ namespace {
|
||||
const FieldPropsManager& fp,
|
||||
const Runspec &runspec,
|
||||
const ParseContext& parseContext,
|
||||
ErrorGuard& errors) :
|
||||
ErrorGuard& errors,
|
||||
const RestartIO::RstState * rst) :
|
||||
m_timeMap( deck ),
|
||||
m_oilvaporizationproperties( this->m_timeMap, OilVaporizationProperties(runspec.tabdims().getNumPVTTables()) ),
|
||||
m_events( this->m_timeMap ),
|
||||
@@ -159,43 +160,47 @@ namespace {
|
||||
const FieldPropsManager& fp,
|
||||
const Runspec &runspec,
|
||||
const ParseContext& parseContext,
|
||||
T&& errors) :
|
||||
Schedule(deck, grid, fp, runspec, parseContext, errors)
|
||||
T&& errors,
|
||||
const RestartIO::RstState * rst) :
|
||||
Schedule(deck, grid, fp, runspec, parseContext, errors, rst)
|
||||
{}
|
||||
|
||||
|
||||
Schedule::Schedule( const Deck& deck,
|
||||
const EclipseGrid& grid,
|
||||
const FieldPropsManager& fp,
|
||||
const Runspec &runspec) :
|
||||
Schedule(deck, grid, fp, runspec, ParseContext(), ErrorGuard())
|
||||
const Runspec &runspec,
|
||||
const RestartIO::RstState * rst) :
|
||||
Schedule(deck, grid, fp, runspec, ParseContext(), ErrorGuard(), rst)
|
||||
{}
|
||||
|
||||
|
||||
Schedule::Schedule(const Deck& deck, const EclipseState& es, const ParseContext& parse_context, ErrorGuard& errors) :
|
||||
Schedule::Schedule(const Deck& deck, const EclipseState& es, const ParseContext& parse_context, ErrorGuard& errors, const RestartIO::RstState * rst) :
|
||||
Schedule(deck,
|
||||
es.getInputGrid(),
|
||||
es.fieldProps(),
|
||||
es.runspec(),
|
||||
parse_context,
|
||||
errors)
|
||||
errors,
|
||||
rst)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
template <typename T>
|
||||
Schedule::Schedule(const Deck& deck, const EclipseState& es, const ParseContext& parse_context, T&& errors) :
|
||||
Schedule::Schedule(const Deck& deck, const EclipseState& es, const ParseContext& parse_context, T&& errors, const RestartIO::RstState * rst) :
|
||||
Schedule(deck,
|
||||
es.getInputGrid(),
|
||||
es.fieldProps(),
|
||||
es.runspec(),
|
||||
parse_context,
|
||||
errors)
|
||||
errors,
|
||||
rst)
|
||||
{}
|
||||
|
||||
|
||||
Schedule::Schedule(const Deck& deck, const EclipseState& es) :
|
||||
Schedule(deck, es, ParseContext(), ErrorGuard())
|
||||
Schedule::Schedule(const Deck& deck, const EclipseState& es, const RestartIO::RstState * rst) :
|
||||
Schedule(deck, es, ParseContext(), ErrorGuard(), rst)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user