piernik-dev / piernik

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

Huge domain #510

Closed gawrysz closed 2 years ago

gawrysz commented 2 years ago

Remove computational faults when the cell sizes are big or extreme (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 safely use full range of double precision and avoid biased calculations.