cholla-hydro / cholla

A GPU-based hydro code
https://github.com/cholla-hydro/cholla/wiki
MIT License
60 stars 32 forks source link

Reconstruction bug fixes #361

Closed bcaddy closed 5 months ago

bcaddy commented 5 months ago

PLMC

The monotonization after the calculation of the interfaces was missing so I added it.

Utility Function

A couple of utility functions had * when they should be + in the calculation of vector magnitude squared. Added a function for computing that so the mistake won't happen again. This should fix some of the other weird issues that we've been running into.

evaneschneider commented 5 months ago

This looks good to me.