在Fortran中进行流式访问和直接访问 [英] Stream and direct access in Fortran

查看:102
本文介绍了在Fortran中进行流式访问和直接访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到,无需使用字符直接访问文件,就可以在编译器中模拟流访问.
我应该注意任何陷阱或可移植性问题吗?
我的程序似乎正常运行.

I realized that I can emulate stream access in a compiler without it using a direct access file of characters.
Are there any pitfalls or portability issues I should be aware of?
My program seems to work OK.

推荐答案

我发现有时确实将直接访问文件用于此目的.该示例是FLIBS中的库 binstreams .此方法附带的问题也在实施说明中进行了描述.这种方法很方便,因为有时每台HPC计算机上都没有最新的编译器.

I found that direct access files are indeed sometimes used for this purpose. The example is library binstreams in FLIBS. The issues that comes with this approach are described there as well under implementation notes. This approach can be handy, because there sometimes not the newest compilers available on every HPC computer.

这篇关于在Fortran中进行流式访问和直接访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆