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

[staggeredupwindfluxvars] Fix compiler warnings

parent fc42f5de
No related branches found
No related tags found
2 merge requests!2134WIP Feature/timestepper test,!2133Fix/staggered upwindfluxvars
...@@ -208,7 +208,7 @@ private: ...@@ -208,7 +208,7 @@ private:
const MomentaArray& momenta, const MomentaArray& momenta,
[[maybe_unused]] const Scalar transportingVelocity, [[maybe_unused]] const Scalar transportingVelocity,
const GridFluxVariablesCache& gridFluxVarsCache, const GridFluxVariablesCache& gridFluxVarsCache,
const bool canHigherOrder) [[maybe_unused]] const bool canHigherOrder)
{ {
const auto& upwindScheme = gridFluxVarsCache.staggeredUpwindMethods(); const auto& upwindScheme = gridFluxVarsCache.staggeredUpwindMethods();
if constexpr (useHigherOrder) if constexpr (useHigherOrder)
...@@ -268,8 +268,8 @@ private: ...@@ -268,8 +268,8 @@ private:
* \param localSubFaceIdx The local subface index * \param localSubFaceIdx The local subface index
*/ */
static bool canLateralSecondOrder_(const SubControlVolumeFace& ownScvf, static bool canLateralSecondOrder_(const SubControlVolumeFace& ownScvf,
const bool selfIsUpstream, [[maybe_unused]] const bool selfIsUpstream,
const int localSubFaceIdx) [[maybe_unused]] const int localSubFaceIdx)
{ {
if constexpr (useHigherOrder) if constexpr (useHigherOrder)
{ {
...@@ -438,10 +438,10 @@ private: ...@@ -438,10 +438,10 @@ private:
static Scalar doLateralMomentumUpwinding_([[maybe_unused]] const FVElementGeometry& fvGeometry, static Scalar doLateralMomentumUpwinding_([[maybe_unused]] const FVElementGeometry& fvGeometry,
const SubControlVolumeFace& scvf, const SubControlVolumeFace& scvf,
const MomentaArray& momenta, const MomentaArray& momenta,
const Scalar transportingVelocity, [[maybe_unused]] const Scalar transportingVelocity,
[[maybe_unused]] const int localSubFaceIdx, [[maybe_unused]] const int localSubFaceIdx,
const GridFluxVariablesCache& gridFluxVarsCache, const GridFluxVariablesCache& gridFluxVarsCache,
const bool canHigherOrder) [[maybe_unused]] const bool canHigherOrder)
{ {
const auto& upwindScheme = gridFluxVarsCache.staggeredUpwindMethods(); const auto& upwindScheme = gridFluxVarsCache.staggeredUpwindMethods();
if constexpr (useHigherOrder) if constexpr (useHigherOrder)
......
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