Skip to content

How to set single precision for writing plotfile, while keeping double precision for checkpoint file? #2625

Answered by cgilet
smahesh14 asked this question in Q&A
Discussion options

You must be logged in to vote

AmrCore doesn't provide a specific function for writing checkpoint files; it must exist in your application code. However, you can take a look at the function Amr::checkPoint found in amrex/Src/Amr/AMReX_Amr.cpp, (which always writes checkpoint files in the "NATIVE" format, which would be double precision for a code compiled with PRECISION = DOUBLE) to see how you might edit the application code to set the checkpoint file precision separately. ... Either that or open an issue on the github page of the application code.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@smahesh14
Comment options

Answer selected by smahesh14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants