mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add comment on limiting the other rate
This commit is contained in:
@@ -666,10 +666,11 @@ getRateWithLimit_(Rate rate_type, const BasicRates& rates) const
|
|||||||
// for why the rate was limited.
|
// for why the rate was limited.
|
||||||
std::optional<Rate> target_type;
|
std::optional<Rate> target_type;
|
||||||
|
|
||||||
Scalar rate2;
|
// we also need to limit the other rate (currently only for water and oil and not gas)
|
||||||
|
Scalar rate2 = 0.0;
|
||||||
if (rate_type == Rate::oil) {
|
if (rate_type == Rate::oil) {
|
||||||
rate2 = getRate_(Rate::water, rates);
|
rate2 = getRate_(Rate::water, rates);
|
||||||
} else {
|
} else if (rate_type == Rate::water) {
|
||||||
rate2 = getRate_(Rate::oil, rates);
|
rate2 = getRate_(Rate::oil, rates);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user