Tag Certain Parameters As Maybe-Unused

These parameters get referenced only in certain configurations.
This commit is contained in:
Bård Skaflestad 2024-03-01 12:03:11 +01:00
parent cdc86b46df
commit 2b0d9a7d55
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];