ryosuke-hirai / HORMONE

Repository for hydrodynamical code HORMONE
GNU General Public License v3.0
1 stars 1 forks source link

Reduce loss of precision #62

Closed dliptai closed 4 months ago

dliptai commented 4 months ago

The star setup involves operations that easily lose precision, which can lead to different numerical values on different machines. These small differences can grow into larger errors, which we found to be the case for the polytrope case.

Simply changing the order of operations in the star setup routine reduces the loss of precision significantly.

Other changes:

ryosuke-hirai commented 4 months ago

Thanks for catching this!