mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
Updated so that VOIL/VGAS/VWAT are supported keywords
This commit is contained in:
parent
cac6a33a51
commit
3e44bb1e4e
@ -621,25 +621,31 @@ namespace Opm
|
||||
/**
|
||||
* Viscosities for water, oil gas
|
||||
*/
|
||||
if (rstKeywords["VISC"] > 0) {
|
||||
{
|
||||
const bool has_vwat = (rstKeywords["VISC"] > 0) || (rstKeywords["VWAT"] > 0);
|
||||
const bool has_voil = (rstKeywords["VISC"] > 0) || (rstKeywords["VOIL"] > 0);
|
||||
const bool has_vgas = (rstKeywords["VISC"] > 0) || (rstKeywords["VGAS"] > 0);
|
||||
rstKeywords["VISC"] = 0;
|
||||
if (aqua_active) {
|
||||
output.insert("WAT_VISC",
|
||||
Opm::UnitSystem::measure::viscosity,
|
||||
std::move( sd.getCellData("WAT_VISC") ),
|
||||
data::TargetType::RESTART_AUXILIARY);
|
||||
rstKeywords["VWAT"] = 0;
|
||||
}
|
||||
if (liquid_active) {
|
||||
output.insert("OIL_VISC",
|
||||
Opm::UnitSystem::measure::viscosity,
|
||||
std::move( sd.getCellData("OIL_VISC") ),
|
||||
data::TargetType::RESTART_AUXILIARY);
|
||||
rstKeywords["VOIL"] = 0;
|
||||
}
|
||||
if (vapour_active) {
|
||||
output.insert("GAS_VISC",
|
||||
Opm::UnitSystem::measure::viscosity,
|
||||
std::move( sd.getCellData("GAS_VISC") ),
|
||||
data::TargetType::RESTART_AUXILIARY);
|
||||
rstKeywords["VGAS"] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user