mark variables [[maybe_unused]]

This commit is contained in:
Arne Morten Kvarving 2021-08-03 13:16:59 +02:00
parent 1cbc096d20
commit 8d40860b0b

View File

@ -716,14 +716,14 @@ template<class FluidSystem, class Indices, class Scalar>
void void
StandardWellEval<FluidSystem,Indices,Scalar>:: StandardWellEval<FluidSystem,Indices,Scalar>::
updatePrimaryVariablesNewton(const BVectorWell& dwells, updatePrimaryVariablesNewton(const BVectorWell& dwells,
const double dFLimit, [[maybe_unused]] const double dFLimit,
const double dBHPLimit) const const double dBHPLimit) const
{ {
const std::vector<double> old_primary_variables = primary_variables_; const std::vector<double> old_primary_variables = primary_variables_;
// for injectors, very typical one of the fractions will be one, and it is easy to get zero value // for injectors, very typical one of the fractions will be one, and it is easy to get zero value
// fractions. not sure what is the best way to handle it yet, so we just use 1.0 here // fractions. not sure what is the best way to handle it yet, so we just use 1.0 here
const double relaxation_factor_fractions = [[maybe_unused]] const double relaxation_factor_fractions =
(baseif_.isProducer()) ? relaxationFactorFractionsProducer(old_primary_variables, dwells) (baseif_.isProducer()) ? relaxationFactorFractionsProducer(old_primary_variables, dwells)
: 1.0; : 1.0;