You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a plt file written in FAB_NATIVE_32 format. How do I read this using pyAMRex? I am getting this error
amrex::Error::0::convert(Real*,Long,istream&,RealDescriptor&) failed !!!
The text was updated successfully, but these errors were encountered:
Thanks for the issue.
What does written in FAB_NATIVE_32 format mean? You wrote it from a single precision AMReX? If that is the case, you also need to compile pyAMReX in single precision (same options as for AMReX).
Can you please provide a minimal reproducer that write the file and read it back that we can run?
FAB_NATIVE_32 is a Fab I/O format. It means writing a fab (whether the original data is double or float) in single precision. One should be able to read a fab in FAB_NATIVE_32 format in either single or double precision amrex/pyamrex. The format string is embedded in the data. The fab read function knows how to handle it. I just did a test, it worked for me. Using amrex built in double precision, I was able to write a plotfile in single precision, and run fcompare built with double precision to compare the single precision plotfile with another plotfile in double precision.
Maybe you can try to use fcompare (in amrex/Tools/Plotfile) to compare your plotfile with itself to see if the issue exists without pyamrex.
I have a plt file written in FAB_NATIVE_32 format. How do I read this using pyAMRex? I am getting this error
amrex::Error::0::convert(Real*,Long,istream&,RealDescriptor&) failed !!!
The text was updated successfully, but these errors were encountered: