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.
------- Forwarded Message Date: Tue, 13 Apr 2004 08:30:54 +0200 From: Anlauf Harald <address@hidden> To: "'Russ Rew'" <address@hidden> cc: address@hidden, address@hidden Subject: RE: netCDF-3.5.1, CYGWIN and NAG f95 Hi Russ, thanks for your comments. Just for clarification to this patch: > > 2) The following patch should be applied to the source distribution > > > > --- ./nf_test/nf_test.F.orig 1997-06-11 > 18:20:48.000000000 +0200 > > +++ ./nf_test/nf_test.F. 2004-04-06 14:41:37.375000000 +0200 > > @@ -81,6 +81,9 @@ > > ! DIGITAL Visual Fortran needs DFPORT for iargc > > USE DFPORT > > implicit none > > +#elif defined(NAGf90Fortran) > > + USE F90_UNIX_ENV, only : iargc, getarg > > + implicit none > > #else > > implicit none > > integer iargc > > It's not clear to me whether this change is intended to be independent > of your first patch to cfortran.h. Should this change be made > independently of whether patch 1) is made, or only if patch 1) is also > made? This patch should be made anyway, since the NAG compiler provides access to iargc and getarg only via the above mentioned module. I do not know if there is even a way sanctioned by the (current) Fortran standard to access these, ignoring non-portable solutions. (If you browse through the above file, you find also a variant for Cray that uses the former POSIX.9 API for Fortran77, which is sort of obsoleted, although it is implemented on several platforms.) Since it is conceivable that others will follow the "NAG way", which looks quite clean to me, the above could then be easily extended to the followers. Regards, -Harald -- Harald Anlauf Deutscher Wetterdienst (DWD) | Phone: +49-(0)69/678667-41 FE1/AP03 - Assimilation & Modelle | Fax: +49-(0)69/678667-54 63067 Offenbach | e-Mail: address@hidden ------- End of Forwarded Message