I am having a problem with the Fortran90 interface to the NetCDF libraries (NetCDF version 3.6.1). The easiest way to put it is, they don’t work. The C, C++ and f77 interfaces work just fine. The f90 interfaces either always return an error or, when reading data arrays, all zeros.
I am using the 6.0 version of the PGI compilers (I am awaiting funds to renew my support and upgrade):
bash-2.05b$ pgf90 -V
pgf90 6.0-2 64-bit target on x86-64 Linux
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
And I compiled NetCDF using this from the PGI Website:
env CC=pgcc CFLAGS="-O2 -Msignextend -V" FC=pgf90 F90=pgf90 FFLAGS="-O2 -w -V" CXX=pgCC CPPFLAGS="-DNDEBUG -DpgiFortran" ./configure
There are no errors output during the configure nor during the make or make test commands. I have tested all the interfaces (C, C++, f77 and f90) and only the f90 fail. Please note, the PGI 5.x suites compile this library and all the interfaces just fine.
I have sent a note to Unidata but heard nothing back. I am hoping someone here can help.