Alternative 'getUnits' to 'getDeckUnitSystem'

getDeckUnitSystem largely implies getting an *identifier* to the unit
system used in the deck, where the actual object returned has conversion
features to/from SI as well. Augment EclipseState's interface with the
simpler getUnits name.
This commit is contained in:
Jørgen Kvalsvik
2016-05-23 15:12:12 +02:00
parent 1c7e7e08c6
commit 5dde6323e8
2 changed files with 5 additions and 0 deletions

View File

@@ -106,6 +106,10 @@ namespace Opm {
return m_deckUnitSystem;
}
const UnitSystem& EclipseState::getUnits() const {
return m_deckUnitSystem;
}
EclipseGridConstPtr EclipseState::getInputGrid() const {
return m_inputGrid;
}

View File

@@ -104,6 +104,7 @@ namespace Opm {
// units because internally to opm-parser everything is represented by SI
// units...
const UnitSystem& getDeckUnitSystem() const;
const UnitSystem& getUnits() const;
/// [deprecated]
void applyModifierDeck(std::shared_ptr<const Deck>);