EclipseState: provide an accessor method for the unit system used by the deck

this is required to convert calculated quantities to the same units as
the ones used in the input deck.
This commit is contained in:
Andreas Lauser
2014-09-09 12:16:13 +02:00
parent 66139d9f07
commit 76b8cc6e4f
2 changed files with 13 additions and 5 deletions

View File

@@ -62,6 +62,12 @@ namespace Opm {
std::shared_ptr<const FaultCollection> getFaults() const;
std::shared_ptr<const TransMult> getTransMult() const;
// the unit system used by the deck. note that it is rarely needed to convert
// units because internally to opm-parser everything is represented by SI
// units...
std::shared_ptr<const UnitSystem> getDeckUnitSystem() const;
private:
void initSchedule(DeckConstPtr deck);
void initEclipseGrid(DeckConstPtr deck);
@@ -92,7 +98,7 @@ namespace Opm {
ScheduleConstPtr schedule;
std::set<enum Phase::PhaseEnum> phases;
std::string m_title;
std::shared_ptr<UnitSystem> m_unitSystem;
std::shared_ptr<const UnitSystem> m_deckUnitSystem;
std::shared_ptr<GridProperties<int> > m_intGridProperties;
std::shared_ptr<GridProperties<double> > m_doubleGridProperties;
std::shared_ptr<TransMult> m_transMult;