mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4727 from atgeirr/silence-unused-capture-warning
Silence unused capture warning.
This commit is contained in:
commit
c199d3d7a7
@ -127,7 +127,7 @@ double WellBhpThpCalculator::calculateThpFromBhp(const std::vector<double>& rate
|
||||
const double vfp_ref_depth = well_.vfpProperties()->getInj()->getTable(table_id).getDatumDepth();
|
||||
const double dp = wellhelpers::computeHydrostaticCorrection(well_.refDepth(), vfp_ref_depth, rho, well_.gravity());
|
||||
auto thp_func =
|
||||
[this, table_id, vfp_ref_depth, aqua, liquid, vapour, dp](
|
||||
[this, table_id, aqua, liquid, vapour, dp](
|
||||
const double bhp_value, const double pressure_loss) {
|
||||
return this->well_.vfpProperties()->getInj()->thp(
|
||||
table_id, aqua, liquid, vapour, bhp_value + dp - pressure_loss);
|
||||
@ -138,7 +138,7 @@ double WellBhpThpCalculator::calculateThpFromBhp(const std::vector<double>& rate
|
||||
const double vfp_ref_depth = well_.vfpProperties()->getProd()->getTable(table_id).getDatumDepth();
|
||||
const double dp = wellhelpers::computeHydrostaticCorrection(well_.refDepth(), vfp_ref_depth, rho, well_.gravity());
|
||||
auto thp_func =
|
||||
[this, table_id, vfp_ref_depth, aqua, liquid, vapour, dp, &alq]
|
||||
[this, table_id, aqua, liquid, vapour, dp, &alq]
|
||||
(const double bhp_value, const double pressure_loss) {
|
||||
return this->well_.vfpProperties()->getProd()->thp(
|
||||
table_id, aqua, liquid, vapour, bhp_value + dp - pressure_loss, alq.value());
|
||||
|
Loading…
Reference in New Issue
Block a user