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:
parent
5309471632
commit
780a0cffbc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user