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.
>To: address@hidden >From: Bill Gustafson <address@hidden> >Subject: Getting attributes with the netCDF F90 interface >Organization: . >Keywords: 200003202010.NAA26542 ------- Forwarded Message Date: Tue, 21 Mar 2000 18:38:02 -0600 From: Robert Pincus <address@hidden> To: Bill Gustafson <address@hidden>, Russ Rew <address@hidden> Subject: Re: 20000320: Getting attributes with the netCDF F90 interface Bill - I can see why you would want to compile the netCDF library using -r8 if you expect your Fortran 77 codes to be compiled with the same flag. If you use the Fortran 90 interface, though, I think the overloading should take care of your worries automatically. What I'd suggest as a work-around, then, is for you to re-compile the netCDF libraries and Fortran 90 module using the standard compilation environment (i.e. -r4 -i4 -64, though that should be the default). You can compile your own code any way you like. These flags should be irrelevant to the linker. I'll be curious to know if the attributes are written and read correctly in that case. As I told Russ, my abilty to support the Fortran 90 interface as a volunteer is pretty limited these days. I hope it won't slow you down if I'm not able to be completely responsive. - --- Robert Pincus CIMSS/SSEC University of Wisconsin - Madison 1225 W. Dayton St. Madison WI 53706 Phone: (608) 262-1956 Fax: (608) 262-0166 ------- End of Forwarded Message