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

Merge branch 'fix/missing-cast-to-numeqvector' into 'master'

[velocityoutput] fix missing cast to NumEqVector

Closes #616

See merge request !1348
parents 7d4d488f aca9cfd5
No related branches found
No related tags found
1 merge request!1348[velocityoutput] fix missing cast to NumEqVector
......@@ -305,7 +305,8 @@ public:
{
// check if we have Neumann no flow, we can just use 0
const auto neumannFlux = problem_.neumann(element, fvGeometry, elemVolVars, scvf);
if (Dune::FloatCmp::eq<std::decay_t<decltype(neumannFlux)>, Dune::FloatCmp::CmpStyle::absolute>(neumannFlux, 0.0, 1e-30))
using NumEqVector = std::decay_t<decltype(neumannFlux)>;
if (Dune::FloatCmp::eq<NumEqVector>, Dune::FloatCmp::CmpStyle::absolute>(neumannFlux, NumEqVector(0.0), 1e-30))
scvfFluxes[scvfIndexInInside[localScvfIdx]] = 0;
// cubes
else if (dim == 1 || geomType.isCube())
......
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