Skip to content

Conversation

@ia267
Copy link
Collaborator

@ia267 ia267 commented Jul 17, 2025

The user can now set snapshots to be written in single precision, which will halve the snapshot file sizes. For a simulation running with single precision the snapshots will be written in single precision, but for a simulation with double precision, the user can set snapshot_single_precision = .true. to write in single precision.

SINGLE_PREC runs would not have worked with the previous code as it was always writing with double precision (adios_type_dp) - modified it now to write with single precision (adios_type_real) if it's a single precision run.

Added is_single_prec parameter to avoid writing compilation directives in various parts of the code - if this is OK might need to refactor the code to use this parameter in other parts of the code.

Closes #212

@ia267 ia267 requested a review from pbartholomew08 July 17, 2025 07:44
@ia267 ia267 self-assigned this Jul 17, 2025
@ia267 ia267 added the infrastructure Software infrastructure label Jul 17, 2025
@ia267 ia267 added this to the Implement ADIOS2-based IO milestone Jul 17, 2025
@ia267 ia267 marked this pull request as draft September 19, 2025 18:52
@ia267 ia267 force-pushed the feature/single_precision_adios2 branch from e25a8c9 to 6f78a46 Compare September 19, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Software infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow single-precision output for ADIOS2

1 participant