Reading fortran direct access data and writing formatted data - faster with python than with fortran?

前端 未结 2 1736
陌清茗
陌清茗 2021-01-26 08:15

Good evening,

I have a simulation written in Fortran that produces large files of unformatted (direct access) data. From some of these files I want to produce ascii huma

2条回答
  •  轮回少年
    2021-01-26 08:43

    Try using StreamIO see http://www.star.le.ac.uk/~cgp/streamIO.html That should allow random access without fixed record size and will probably result in using the same underlying O.S. system calls, thereby hopefully getting the same performance.

提交回复
热议问题