mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Silence unused variable warning (release mode only).
This commit is contained in:
parent
3c1c3a30ab
commit
36ccfca172
@ -75,12 +75,11 @@ VFPInjProperties::ADB VFPInjProperties::bhp(const std::vector<int>& table_id,
|
|||||||
const Wells& wells,
|
const Wells& wells,
|
||||||
const ADB& qs,
|
const ADB& qs,
|
||||||
const ADB& thp) const {
|
const ADB& thp) const {
|
||||||
const int np = wells.number_of_phases;
|
|
||||||
const int nw = wells.number_of_wells;
|
const int nw = wells.number_of_wells;
|
||||||
|
|
||||||
//Short-hands for water / oil / gas phases
|
//Short-hands for water / oil / gas phases
|
||||||
//TODO enable support for two-phase.
|
//TODO enable support for two-phase.
|
||||||
assert(np == 3);
|
assert(wells.number_of_phases == 3);
|
||||||
const ADB& w = subset(qs, Span(nw, 1, BlackoilPhases::Aqua*nw));
|
const ADB& w = subset(qs, Span(nw, 1, BlackoilPhases::Aqua*nw));
|
||||||
const ADB& o = subset(qs, Span(nw, 1, BlackoilPhases::Liquid*nw));
|
const ADB& o = subset(qs, Span(nw, 1, BlackoilPhases::Liquid*nw));
|
||||||
const ADB& g = subset(qs, Span(nw, 1, BlackoilPhases::Vapour*nw));
|
const ADB& g = subset(qs, Span(nw, 1, BlackoilPhases::Vapour*nw));
|
||||||
|
@ -61,12 +61,11 @@ VFPProdProperties::ADB VFPProdProperties::bhp(const std::vector<int>& table_id,
|
|||||||
const ADB& qs,
|
const ADB& qs,
|
||||||
const ADB& thp,
|
const ADB& thp,
|
||||||
const ADB& alq) const {
|
const ADB& alq) const {
|
||||||
const int np = wells.number_of_phases;
|
|
||||||
const int nw = wells.number_of_wells;
|
const int nw = wells.number_of_wells;
|
||||||
|
|
||||||
//Short-hands for water / oil / gas phases
|
//Short-hands for water / oil / gas phases
|
||||||
//TODO enable support for two-phase.
|
//TODO enable support for two-phase.
|
||||||
assert(np == 3);
|
assert(wells.number_of_phases == 3);
|
||||||
const ADB& w = subset(qs, Span(nw, 1, BlackoilPhases::Aqua*nw));
|
const ADB& w = subset(qs, Span(nw, 1, BlackoilPhases::Aqua*nw));
|
||||||
const ADB& o = subset(qs, Span(nw, 1, BlackoilPhases::Liquid*nw));
|
const ADB& o = subset(qs, Span(nw, 1, BlackoilPhases::Liquid*nw));
|
||||||
const ADB& g = subset(qs, Span(nw, 1, BlackoilPhases::Vapour*nw));
|
const ADB& g = subset(qs, Span(nw, 1, BlackoilPhases::Vapour*nw));
|
||||||
|
Loading…
Reference in New Issue
Block a user