Skip to content

Commit ad6bc9a

Browse files
author
Tor Harald Sandve
committed
Revert change where only alq_is_limited is true when increase is true
1 parent 39db862 commit ad6bc9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

opm/simulators/wells/GasLiftSingleWellGeneric.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,7 @@ addOrSubtractAlqIncrement_(Scalar alq, bool increase) const
303303
if (limited && checkALQequal_(orig_alq, alq))
304304
alq_opt = std::nullopt;
305305

306-
// alq_is_limited is used to check if we can increase the alq or not
307-
// i.e. only return alq_is_limited = true if both limited and increase are true
308-
return {alq_opt, limited && increase };
306+
return {alq_opt, limited};
309307
}
310308

311309
template<typename Scalar, typename IndexTraits>

0 commit comments

Comments
 (0)