Skip to content Skip to sidebar Skip to footer

Fortran Binary Output Bigger Than Expected

I am writing output Fortran data in binary format of an NxMxL matrix as follows open(94, file = 'mean_flow_sp.dat', status = 'replace', action = 'write', form = 'unformatted') do

Solution 1:

Ok, so I just realized that, as posted here, "Fortran compilers typically write the length of the record at the beginning and end of the record.", so then the size of the output file checks out.


Post a Comment for "Fortran Binary Output Bigger Than Expected"