Merge pull request #3773 from totto82/fixWDFAC
Fix for connection D factors
This commit is contained in:
commit
c9cecb9036
@ -73,11 +73,13 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
double WDFAC::getDFactor(double rho, double mu, double k, double phi, double rw, double h) const {
|
||||
|
Loading…
Reference in New Issue
Block a user