سؤال

I'm trying to update/re-write a bunch of code that should be able to be compiled by all of the major fortran compilers. I have access to ifort, and gfortran and a relatively old (?) version of the pgi compiler (version 7.2.5). The code compiles fine with gfortran and ifort, but portland group's compiler complains at a line that looks like:

open(unit=82,file=fname,status=status,form='UNFORMATTED',access='STREAM')
write(82,POS=file_pos) iheader    !<= mpif90 complains here

I'm actually using mpif90 which is a wrapper around pgf90, but that shouldn't make a difference. (iheader is simply an integer array with 20 elements). Do more modern versions the portland group compiler support this?

هل كانت مفيدة؟

المحلول

Having a look at the PGI fortran reference, It looks like they still don't support stream IO (It's not listed in the allowable access strings, page 69). I guess I'll need to re-write that code ... If they don't support stream IO, then they probably don't support POS=... either.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top