Merge pull request #878 from bska/maybe-unused-parameters

Tag Certain Parameters As Maybe-Unused
This commit is contained in:
Arne Morten Kvarving 2024-03-01 15:01:45 +01:00 committed by GitHub
commit 866a1f43b6
2 changed files with 6 additions and 3 deletions

View File

@ -617,7 +617,7 @@ public:
RateVector& bdyFlux,
const BoundaryConditionData& bdyInfo,
const IntensiveQuantities& insideIntQuants,
unsigned globalSpaceIdx)
[[maybe_unused]] unsigned globalSpaceIdx)
{
OPM_TIMEBLOCK_LOCAL(computeBoundaryThermal);
// only heat is allowed to flow through this boundary

View File

@ -557,7 +557,10 @@ public:
*
* \return true Iff the interpretation of one of the switching variables was changed
*/
bool adaptPrimaryVariables(const Problem& problem, unsigned globalDofIdx, Scalar swMaximum, Scalar thresholdWaterFilledCell, Scalar eps = 0.0)
bool adaptPrimaryVariables(const Problem& problem,
unsigned globalDofIdx,
[[maybe_unused]] Scalar swMaximum,
Scalar thresholdWaterFilledCell, Scalar eps = 0.0)
{
// this function accesses quite a few black-oil specific low-level functions
// directly for better performance (instead of going the canonical way through
@ -1054,7 +1057,7 @@ private:
return 0.0;
}
Scalar temperature_(const Problem& problem, unsigned globalDofIdx) const
Scalar temperature_(const Problem& problem, [[maybe_unused]] unsigned globalDofIdx) const
{
if constexpr (enableEnergy)
return (*this)[Indices::temperatureIdx];