[f2py] runtime error on PGI amd64

labrach at free.fr labrach at free.fr
Wed Oct 19 14:55:14 EEST 2005


My problem was previously submitted on oct 11, but I'm going to give a sample
for anyone who can test it on a linux cluster (amd64_x86) with pgi 6.0 fortran
compiler:

module1/module1.f
      subroutine module1sub()
      write(*,*) 'module1Sub done'
      end

module2/module2.f
      subroutine module2sub()
      write(*,*) 'module2Sub done'
      end


example.py
  import module1
  import module2
  module1.module1sub()
  module2.module2sub()


If I use the pgf77 compiler, then everything is ok :
%python example.py
 module1Sub done
 module2Sub done

If I use the pgf90 compiler, then I have the following runtime error when
executing the module2 subroutine:

 module1Sub done
PGFIO-F-202/list-directed write/unit=6/conflicting specifiers.
 File name = stdout     formatted, sequential access   record = 1
 In source file module2/module2.f, at line number 2

Note that the following script works correctly :
example.py
  import module2
  import module1
  module2.module2sub()
  module1.module1sub()
%example.py
 module2Sub done
PGFIO-F-202/list-directed write/unit=6/conflicting specifiers.
 File name = stdout     formatted, sequential access   record = 1
 In source file module1/module1.f, at line number 2



So, It seems that loading more than one module change some I/O definitions ...
I am not able to determine if it's a programing error, a compiler bug, a python
bug or a f2py bug

Unfortunately, I can't use pgf77 since I mix f77 and f90 progs

Any help would be of great help, snif ...

thanks a lot

laurent




More information about the f2py-users mailing list