NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
On Tue, 2009-07-14 at 13:25 +0200, Thomas Orgis wrote: > So... my question is: What should I do to use the Fortran 90 interface > of NetCDF? > Seems like the only safe way is to include a copy of the source of > that module from NetCDF sources and compile that together with my > other code. Is that The Right Way(tm)? > Or, should one rather have the OS distribution install the fortran > module source in /usr/include (or some other place where you can pull > in the source from)? > > What is the NetCDF folks' angle on this? Fortran libraries are a bit of a mess, especially f90 libraries since as you observed the module files are compiler vendor and version specific. There is also no standard place where fortran modules should get installed. I think the fedora people decided to install them into /usr/lib/modules or so. if you want to use the intel compilers than you will need to compile netcdf yourself (or get your sys-admin to do so). I'd suggest to install netcdf into the prefix /usr/local/intel_VERSION/. Then compile your code with ifort -I/usr/local/intel_VERSION/include -L/usr/local/intel_VERSION/lib ... alternative you can install netcdf in your home directory. BTW, I am assuming you are using Linux or some other Unix like OS. Cheers magnus -- Magnus Hagdorn Specialist Computing Officer School of GeoSciences The University of Edinburgh Grant Institute West Mains Road Edinburgh EH9 3JW Scotland PHONE: (+44) 131 650 5894 FAX: (+44) 131 668 3184 email: Magnus.Hagdorn@xxxxxxxx The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
netcdfgroup
archives: