-
I am using PRECISION = DOUBLE while compiling. I want to write the plotfiles in single precision for which in the input file I set : fab.format = NATIVE_32 But this writes the checkpoint file in single precision which is not desired. How can I write checkpoint file in double precision and the plotfile in single precision? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
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 functionAmr::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.