mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
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:
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>
|
||||
|
||||
Reference in new issue
Block a user