Skip to content
Snippets Groups Projects
Commit 8bf3d4ef authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'cleanup/unused-params' into 'master'

Cleanup/unused params

See merge request !2088

(cherry picked from commit 009bb5a9)

4aab0660 [box][fickslaw] Mark param with [[maybe_unused]]
c696b361 [fluxvarscachefiller] Mark params with [[maybe_unused]]
b95b830a [fluxvariables] Mark params with [[maybe_unused]]
parent 485d4720
No related branches found
No related tags found
2 merge requests!2152WIP add default fluxcache properties,!2091Merge branch 'cleanup/unused-params' into 'master'
...@@ -176,7 +176,7 @@ private: ...@@ -176,7 +176,7 @@ private:
} }
static std::pair<Scalar, Scalar> static std::pair<Scalar, Scalar>
diffusionCoefficientsAtInterface_(const int phaseIdx, const int compIdx, diffusionCoefficientsAtInterface_([[maybe_unused]] const int phaseIdx, const int compIdx,
const VolumeVariables& insideVV, const VolumeVariables& outsideVV) const VolumeVariables& insideVV, const VolumeVariables& outsideVV)
{ {
if constexpr (!FluidSystem::isTracerFluidSystem()) if constexpr (!FluidSystem::isTracerFluidSystem())
......
...@@ -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(),
......
...@@ -525,7 +525,7 @@ private: ...@@ -525,7 +525,7 @@ private:
//! Solves the local systems and stores the result in the handles //! Solves the local systems and stores the result in the handles
template< class InteractionVolume, class DataHandle> template< class InteractionVolume, class DataHandle>
void prepareDataHandle_(InteractionVolume& iv, DataHandle& handle, bool forceUpdate) void prepareDataHandle_([[maybe_unused]] InteractionVolume& iv, [[maybe_unused]] DataHandle& handle, [[maybe_unused]] bool forceUpdate)
{ {
// (maybe) solve system subject to intrinsic permeability // (maybe) solve system subject to intrinsic permeability
if constexpr (advectionEnabled) if constexpr (advectionEnabled)
......
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