Merge pull request #2591 from goncalvesmachadoc/VAPWAT
Add enable WATVAP
This commit is contained in:
commit
fc378d510e
@ -47,6 +47,7 @@ namespace Opm {
|
||||
bool useCPR() const;
|
||||
bool hasDISGAS() const;
|
||||
bool hasVAPOIL() const;
|
||||
bool hasVAPWAT() const;
|
||||
bool isThermal() const;
|
||||
bool isDiffusive() const;
|
||||
|
||||
@ -62,6 +63,7 @@ namespace Opm {
|
||||
serializer(m_useCPR);
|
||||
serializer(m_DISGAS);
|
||||
serializer(m_VAPOIL);
|
||||
serializer(m_VAPWAT);
|
||||
serializer(m_isThermal);
|
||||
serializer(m_diffuse);
|
||||
}
|
||||
@ -73,6 +75,7 @@ namespace Opm {
|
||||
bool m_useCPR;
|
||||
bool m_DISGAS;
|
||||
bool m_VAPOIL;
|
||||
bool m_VAPWAT;
|
||||
bool m_isThermal;
|
||||
bool m_diffuse;
|
||||
};
|
||||
|
@ -35,6 +35,7 @@ void python::common::export_EclipseConfig(py::module& module)
|
||||
.def("hasThresholdPressure", &SimulationConfig::useThresholdPressure )
|
||||
.def("useCPR", &SimulationConfig::useCPR )
|
||||
.def("hasDISGAS", &SimulationConfig::hasDISGAS )
|
||||
.def("hasVAPOIL", &SimulationConfig::hasVAPOIL );
|
||||
.def("hasVAPOIL", &SimulationConfig::hasVAPOIL )
|
||||
.def("hasVAPWAT", &SimulationConfig::hasVAPWAT );
|
||||
}
|
||||
|
||||
|
@ -51,6 +51,7 @@ namespace Opm {
|
||||
m_useCPR(false),
|
||||
m_DISGAS(false),
|
||||
m_VAPOIL(false),
|
||||
m_VAPWAT(false),
|
||||
m_isThermal(false),
|
||||
m_diffuse(false)
|
||||
{
|
||||
@ -65,6 +66,7 @@ namespace Opm {
|
||||
m_useCPR(false),
|
||||
m_DISGAS(false),
|
||||
m_VAPOIL(false),
|
||||
m_VAPWAT(false),
|
||||
m_isThermal(false),
|
||||
m_diffuse(false)
|
||||
{
|
||||
@ -83,6 +85,9 @@ namespace Opm {
|
||||
if (runspec.hasKeyword<ParserKeywords::VAPOIL>()) {
|
||||
m_VAPOIL = true;
|
||||
}
|
||||
if (runspec.hasKeyword<ParserKeywords::VAPWAT>()) {
|
||||
m_VAPWAT = true;
|
||||
}
|
||||
if (runspec.hasKeyword<ParserKeywords::DIFFUSE>()) {
|
||||
m_diffuse = true;
|
||||
}
|
||||
@ -100,6 +105,7 @@ namespace Opm {
|
||||
result.m_useCPR = false;
|
||||
result.m_DISGAS = true;
|
||||
result.m_VAPOIL = false;
|
||||
result.m_VAPWAT = false;
|
||||
result.m_isThermal = true;
|
||||
result.m_diffuse = true;
|
||||
|
||||
@ -134,6 +140,10 @@ namespace Opm {
|
||||
return m_VAPOIL;
|
||||
}
|
||||
|
||||
bool SimulationConfig::hasVAPWAT() const {
|
||||
return m_VAPWAT;
|
||||
}
|
||||
|
||||
bool SimulationConfig::isThermal() const {
|
||||
return this->m_isThermal;
|
||||
}
|
||||
@ -149,6 +159,7 @@ namespace Opm {
|
||||
this->useCPR() == data.useCPR() &&
|
||||
this->hasDISGAS() == data.hasDISGAS() &&
|
||||
this->hasVAPOIL() == data.hasVAPOIL() &&
|
||||
this->hasVAPWAT() == data.hasVAPWAT() &&
|
||||
this->isThermal() == data.isThermal() &&
|
||||
this->isDiffusive() == data.isDiffusive();
|
||||
}
|
||||
@ -160,6 +171,7 @@ namespace Opm {
|
||||
full_config.useCPR() == rst_config.useCPR() &&
|
||||
full_config.hasDISGAS() == rst_config.hasDISGAS() &&
|
||||
full_config.hasVAPOIL() == rst_config.hasVAPOIL() &&
|
||||
full_config.hasVAPWAT() == rst_config.hasVAPWAT() &&
|
||||
full_config.isThermal() == rst_config.isThermal() &&
|
||||
full_config.isDiffusive() == rst_config.isDiffusive();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user