/*! * \brief Initialize the parameters for water using an ECL deck. * * This method assumes that the deck features valid DENSITY and PVDG keywords. */ void initFromDeck(DeckConstPtr deck, EclipseStateConstPtr eclState) { if (enableThermal && (deck->hasKeyword("WATDENT") || deck->hasKeyword("VISCREF"))) setApproach(ThermalWaterPvt); else if (deck->hasKeyword("PVTW")) setApproach(ConstantCompressibilityWaterPvt); OPM_WATER_PVT_MULTIPLEXER_CALL(pvtImpl.initFromDeck(deck, eclState)); }
/*! * \brief Initialize the parameters for water using an ECL deck. * * This method assumes that the deck features valid DENSITY and PVDG keywords. */ void initFromDeck(const Deck& deck, const EclipseState& eclState) { bool enableWater = deck.hasKeyword("WATER"); if (!enableWater) return; if (enableThermal && (deck.hasKeyword("WATDENT") || deck.hasKeyword("VISCREF"))) setApproach(ThermalWaterPvt); else if (deck.hasKeyword("PVTW")) setApproach(ConstantCompressibilityWaterPvt); OPM_WATER_PVT_MULTIPLEXER_CALL(pvtImpl.initFromDeck(deck, eclState)); }
void initEnd() { OPM_WATER_PVT_MULTIPLEXER_CALL(pvtImpl.initEnd()); }