mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-13 09:51:57 -06:00
Tag Certain Parameters As Maybe-Unused
These parameters get referenced only in certain configurations.
This commit is contained in:
parent
cdc86b46df
commit
2b0d9a7d55
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user