loganoz / horses3d

HORSES3D: A high-order discontinuous Galerkin solver for flow simulations and multi-physics applications
https://loganoz.github.io/horses3d/
MIT License
106 stars 23 forks source link

Fix bugs: div by zero in limiter and undefined behavior in artificial viscosity #176

Closed Andres-MG closed 10 months ago

Andres-MG commented 10 months ago

The corner case when the solution to be limited is constant was not properly handled. Now, the solution is only rescaled when the average and minimum values are different, avoiding div-by-zero errors and saving some computations.