Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
SWIFTsim
SWIFTsim
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 69
    • Issues 69
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • SWIFT
  • SWIFTsimSWIFTsim
  • Merge Requests
  • !1128

Merged
Opened Jul 28, 2020 by Matthieu Schaller@matthieu
  • Report abuse
Report abuse

Compression tests

  • Overview 13
  • Commits 24
  • Changes 15

This is the first set of lossy compression filters. They are activated by using the output options and instead of setting "on" or "off", the user sets the name of the filter they want. No check is done to verify that the filter makes sense. (See http://swift.dur.ac.uk/docs/ParameterFiles/output_selection.html#output-selection)

Implements #679 (closed).

The filters currently available are:

  • "DScale6" --> Scale the values by 10^6 and round to integer (perfect for positions in simulations with Mpc units).
  • "DScale3" --> Scale the values by 10^3 and round to integer (perfect for positions in simulations with kpc units).
  • "DScale1" --> Scale the values by 10^1 and round to integer (perfect for velocities in simulations with km/s units).
  • "FMantissa9" --> Writes a float by rounding to 3 decimal digits (perfect for rho, T, P, u, Z,...).
  • "FMantissa13" --> Writes a float by rounding to 4 decimal digits (more precise for rho, T, P, u, Z,...).
  • "HalfFloat" --> Writes as half-float (3.3 decimal digits, reduced range)
  • "BFloat16" --> Writes as BFloat16 (2.4 decimal digits, same range as float)
Edited Aug 05, 2020 by Matthieu Schaller
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
1
Labels
enhancement
Assign labels
  • View project labels
Reference: swift/swiftsim!1128

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.