Files
opm-common/sunbeam/sunbeam_state.cpp

38 lines
1.1 KiB
C++

#include "sunbeam_state.hpp"
SunbeamState::SunbeamState(bool file_input, const std::string& deck_input, const Opm::ParseContext& context, const Opm::Parser& parser)
: deck(file_input ? parser.parseFile(deck_input, context) : parser.parseString(deck_input, context)),
ecl_state(deck, context),
schedule(deck, ecl_state, context),
summary_config(deck, schedule, ecl_state.getTableManager(), context)
{
}
SunbeamState::SunbeamState(bool file_input, const std::string& deck_input) :
SunbeamState(file_input, deck_input, Opm::ParseContext(), Opm::Parser())
{}
SunbeamState::SunbeamState(bool file_input, const std::string& deck_input, const Opm::ParseContext& context) :
SunbeamState(file_input, deck_input, context, Opm::Parser())
{}
const Opm::EclipseState& SunbeamState::getEclipseState() const {
return this->ecl_state;
}
const Opm::Deck& SunbeamState::getDeck() const {
return this->deck;
}
const Opm::Schedule SunbeamState::getSchedule() const {
return this->schedule;
}
const Opm::SummaryConfig SunbeamState::getSummmaryConfig() const {
return this->summary_config;
}