我有一段代码可以在我的笔记本电脑上运行,但不适用于我们的Linux集群。这很直接。
open(11,file=trim(openfile),form='unformatted',access='STREAM')
抛出运行时错误:
Fortran runtime error: Bad ACCESS parameter in OPEN statement
发生了什么事?
gcc构建为:
gfortran -v Using built-in specs. Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --disable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)