Commit 66cb297b authored by Martin Utz's avatar Martin Utz
Browse files

[swe][fricitonlaws] Add scv as argument to frictionLaw

parent 19a7afd0
......@@ -243,7 +243,7 @@ public:
NumEqVector bottomFrictionSource(0.0);
const auto& volVars = elemVolVars[scv];
Dune::FieldVector<Scalar, 2> bottomShearStress = this->spatialParams().frictionLaw(element).shearStress(volVars);
Dune::FieldVector<Scalar, 2> bottomShearStress = this->spatialParams().frictionLaw(element, scv).shearStress(volVars);
bottomFrictionSource[0] = 0.0;
bottomFrictionSource[1] =bottomShearStress[0];
......
......@@ -106,7 +106,8 @@ public:
* \return frictionLaw
*/
const FrictionLaw<VolumeVariables>& frictionLaw(const Element element) const
const FrictionLaw<VolumeVariables>& frictionLaw(const Element& element,
const SubControlVolume& scv) const
{
return *frictionLaw_;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment