This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
George, > To: address@hidden > cc: address@hidden > From: George Lai <address@hidden> > Subject: pgf77 support for cfortran.h 4.1 > Organization: NASA/GSFC > Keywords: 199806011614.KAA21199 In the above message, you wrote: > In an effort to compile netCDF (which uses cfortran.h for the > C/C++, fortran interfacing) with Portland Group's f77 compiler > on Linux, I added the 'pgiFortran' macro into cfortran.h (version > 4.1) and netCDF (version 3.4) seems to work fine. I have been > testing it with our model for about one month now. I'll include > my modified version below. I am wondering if you can include the > support of pgf77 into you package (after you double check my > modifications) so that I don't need to port again for future > version? > > I should also mention that in the official netCDF 3.4, it uses > cfortran.h 3.9. I upgraded it to cfortran.h 4.1 first (I was > hoping that the pgf77 support was already there), and modified > on 4.1. > > Information about pgf77 can be found at http://www.pgroup.com. > I knew quite a few users of pgf77 in scientific computing who > also need netCDF library. Your help is greatly appreciated. > > -George Thanks. I updated our CFORTRAN to 4.1 and added your modifications. They'll be in the next netCDF release. -------- Steve Emmerson <http://www.unidata.ucar.edu>