Commit 1cef2e1a authored by Martin Utz's avatar Martin Utz
Browse files

Remove check of number of equations.

Since the shallowwater viscous momentum flux is only implemented for 2D
depth averaged models, the ShallowwaterViscousFlux checks if the number
of equations is euqal to three. Unfortunatly, this prevents the use of
the viscous flux for models which couple shallowwater flow and sediment
transport, which have more equations.
parent ffe87d2f
Pipeline #8456 waiting for manual action with stages
......@@ -55,10 +55,9 @@ static constexpr bool implementsFrictionLaw()
* \ingroup Flux
* \brief Computes the shallow water viscous momentum flux due to (turbulent) viscosity
* by adding all surrounding shear stresses.
* For now implemented strictly for 2D depth-averaged models (i.e. 3 equations)
* For now implemented strictly for 2D depth-averaged models
*/
template<class PrimaryVariables, class NumEqVector,
typename std::enable_if_t<NumEqVector::size() == 3, int> = 0>
template<class PrimaryVariables, class NumEqVector>
class ShallowWaterViscousFlux
{
......
Markdown is supported
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