flux_lax_friedrichs
should be specialized for equations with discontinuous parameter-as-variables
#1725
Labels
bug
Something isn't working
Right now, if you have a bottom topography or another spatially dependent parameter in your solution, you need to store it as an additional variable in the solution.
Note that
rhs!
should return zero for any variables which are parameters but not true variables. However, if this additional variable is discontinuous, and your surface flux isflux_lax_friedrichs
, the LxF penalization will be non-zero and enforce continuity during the ODE solve.I noticed this issue with the quasi-1D SWE equations, as well as an incoming PR for the quasi-1D Euler equations. I'm not sure if it as issue for SWE too.
The text was updated successfully, but these errors were encountered: