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

Merge branch 'cleanup/silence-warning-new-mat-law' into 'master'

[deprecated] Silence compiler warning about unused variable

See merge request !2342

(cherry picked from commit ea3619bc)

bfd9aca0 [deprecated] Silence compiler warning about unused variable
parent 11f83527
No related branches found
No related tags found
3 merge requests!2449WIP: python script to extract modules,!2366remove spurious semicolon in cornerpoint parameter file,!2343Merge branch 'cleanup/silence-warning-new-mat-law' into 'master'
...@@ -237,7 +237,7 @@ auto makePcKrSw(const Scalar& scalar, ...@@ -237,7 +237,7 @@ auto makePcKrSw(const Scalar& scalar,
{ {
using GlobalPosition = typename Element::Geometry::GlobalCoordinate; using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
constexpr bool hasNew = decltype(isValid(HasNewFIAIF<Element, Scv, ElemSol>()).template check<SpatialParams>())::value; constexpr bool hasNew = decltype(isValid(HasNewFIAIF<Element, Scv, ElemSol>()).template check<SpatialParams>())::value;
constexpr bool hasNewAtPos = decltype(isValid(HasNewFIAIFAtPos<GlobalPosition>()).template check<SpatialParams>())::value; [[maybe_unused]] constexpr bool hasNewAtPos = decltype(isValid(HasNewFIAIFAtPos<GlobalPosition>()).template check<SpatialParams>())::value;
if constexpr (hasNew) if constexpr (hasNew)
return sp.fluidMatrixInteraction(element, scv, elemSol); return sp.fluidMatrixInteraction(element, scv, elemSol);
else if constexpr (hasNewAtPos) else if constexpr (hasNewAtPos)
......
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