mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4515 from akva2/fix_ndebug_warning
GasLiftSingleWell: avoid unused variable warning with NDEBUG
This commit is contained in:
commit
76204b99ce
@ -160,7 +160,9 @@ GasLiftSingleWell<TypeTag>::
|
||||
setupPhaseVariables_()
|
||||
{
|
||||
const auto& pu = this->phase_usage_;
|
||||
#ifndef NDEBUG
|
||||
bool num_phases_ok = (pu.num_phases == 3);
|
||||
#endif
|
||||
if (pu.num_phases == 2) {
|
||||
// NOTE: We support two-phase oil-water flow, by setting the gas flow rate
|
||||
// to zero. This is done by initializing the potential vector to zero:
|
||||
@ -176,7 +178,9 @@ setupPhaseVariables_()
|
||||
&& pu.phase_used[BlackoilPhases::Liquid] == 1
|
||||
&& pu.phase_used[BlackoilPhases::Vapour] == 0)
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
num_phases_ok = true; // two-phase oil-water is also supported
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
throw std::logic_error("Two-phase gas lift optimization only supported"
|
||||
|
Loading…
Reference in New Issue
Block a user