piernik-dev / piernik

Piernik MHD Code
GNU General Public License v3.0
15 stars 15 forks source link

Tiny and huge domains #509

Closed gawrysz closed 2 years ago

gawrysz commented 2 years ago

Remove computational faults when the cell sizes are extremely small or extremely big (like when one sets up a galaxy measured in centimeters).

These faults usually result from use of small and big values from constants module. In principle small and big should prevent division by zero or numerical overflows in single-precision data output but in many places we may safelyuse full range of double precision and avoid biased calculations.