Support connection D factor

If positive the D factor is threated a well D factor
If negative it is threated as a connction D factor (no scaling)
This commit is contained in:
Tor Harald Sandve 2023-11-14 14:07:30 +01:00
parent 5309471632
commit 780a0cffbc

View File

@ -73,10 +73,12 @@ namespace Opm {
const auto non_trivial_dfactor =
std::any_of(connections.begin(), connections.end(),
[](const auto& conn) { return conn.dFactor() > 0.0; });
[](const auto& conn) { return conn.dFactor() != 0.0; });
if (non_trivial_dfactor)
// non-trivial dfactors detected use connection D factors
if (non_trivial_dfactor) {
m_type = WDFACTYPE::CON_DFACTOR;
}
}