Skip to content
Snippets Groups Projects
Commit b95b830a authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[fluxvariables] Mark params with [[maybe_unused]]

parent c696b361
No related branches found
No related tags found
1 merge request!2088Cleanup/unused params
...@@ -90,7 +90,7 @@ public: ...@@ -90,7 +90,7 @@ public:
* \brief Returns the advective flux computed by the respective law. * \brief Returns the advective flux computed by the respective law.
*/ */
template<typename FunctionType> template<typename FunctionType>
Scalar advectiveFlux(const int phaseIdx, const FunctionType& upwindTerm) const Scalar advectiveFlux([[maybe_unused]] const int phaseIdx, [[maybe_unused]] const FunctionType& upwindTerm) const
{ {
if constexpr (enableAdvection) if constexpr (enableAdvection)
{ {
...@@ -117,7 +117,7 @@ public: ...@@ -117,7 +117,7 @@ public:
/*! /*!
* \brief Returns the diffusive fluxes computed by the respective law. * \brief Returns the diffusive fluxes computed by the respective law.
*/ */
Dune::FieldVector<Scalar, numComponents> molecularDiffusionFlux(const int phaseIdx) const Dune::FieldVector<Scalar, numComponents> molecularDiffusionFlux([[maybe_unused]] const int phaseIdx) const
{ {
if constexpr (enableMolecularDiffusion) if constexpr (enableMolecularDiffusion)
return MolecularDiffusionType::flux(this->problem(), return MolecularDiffusionType::flux(this->problem(),
...@@ -153,7 +153,7 @@ public: ...@@ -153,7 +153,7 @@ public:
* \brief Returns the conductive flux computed by the respective law. * \brief Returns the conductive flux computed by the respective law.
* \note This overload is used in models considering local thermal nonequilibrium * \note This overload is used in models considering local thermal nonequilibrium
*/ */
Scalar heatConductionFlux(int phaseIdx) const Scalar heatConductionFlux([[maybe_unused]] const int phaseIdx) const
{ {
if constexpr (enableEnergyBalance) if constexpr (enableEnergyBalance)
return HeatConductionType::flux(this->problem(), return HeatConductionType::flux(this->problem(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment