FortranFile.write_record(self, *items)[source]

Write a record (including sizes) to the file.


The data arrays to write.


Writes data items to a file:

write_record(a.T, b.T, c.T, ...)

write(1) a, b, c, ...

Note that data in multidimensional arrays is written in row-major order — to make them read correctly by Fortran programs, you need to transpose the arrays yourself when writing them.

Previous topic

Next topic