How do you correctly align array memory when using unsafe_store! to write a struct array to a c or fortran program?

I don’t know what the layout of the Fortran type would be, so that’s hard to answer. If you can explain what the Fortran type’s layout would be, then it becomes possible to help.