Skip to content

Experiment with single precision #1

@maximumcats

Description

@maximumcats

We should compile StarLord in single precision and compare results to double precision (looking at both performance and relative accuracy). Main difficulties are:

  • We sometimes use large numbers in the code like 1.d200, which could be replaced with HUGE()
  • In astro we usually represent physics with numbers that are larger than the single precision floating point range, for example white dwarf systems where the total energy is O(1e50). A solution here is to use scaled numbers in the actual simulation (say, scaled by the maximum value on the domain in the initial conditions) and undo the scaling only for I/O when we need the absolute numbers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions