dougshidong / PHiLiP

Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
Other
45 stars 36 forks source link

Add non-physical value handling to all physics #226

Open cpethrick opened 1 year ago

cpethrick commented 1 year ago

PR #214 implemented a structure where physics_base handles nan or other non-physical values, such as negative density. Other physics classes should also call handle_non_physical_result() when a nan or other non-physical value is detected.