Mark wells with negative and trivial potentials as not operable

The simulator will try to compute potentials at every iterations to
try to reopen the well.
This commit is contained in:
Tor Harald Sandve committed 2021-11-22 08:44:17 +00:00
1 parent d163bebcdc
commit b5cdb1048a
8 files changed
+124 -8

No files matched your search

@@ -112,6 +112,11 @@ computeWellRates_(
-potentials[this->water_pos_]);
displayDebugMessage_(msg);
}
for (size_t phase = 0; phase < potentials.size(); ++phase){
// make sure the potentials are negative
potentials[phase] = std::min(0.0, potentials[phase]);
}
}
template<typename TypeTag>