Skip to content

Introduce sub-sampling for particles in snapshots

Matthieu Schaller requested to merge subsample_io into master

Changes:

  • Add the option to randomly subsample the particles in the snapshots. Done on a type-by-type basis.
  • The option is specified globally in the Snapshots section of the param file.
  • This can additionally be tuned in the output selection.
  • The cell information meta-data as well as the header counters take the sub-sampling into account.
  • /Header/Snapshot date renamed to /Header/SnapshotDate

Example:

Snapshots:
     subsample:           [0, 1, 0, 0, 0, 0, 1]   # Sub-sample the DM and neutrinos
     subsample_fraction:  [0, 0.01, 0, 0, 0, 0, 0.1]  # Write 1% of the DM parts and 10% of the neutrinos
Edited by Matthieu Schaller

Merge request reports