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.
Hi Jean, The file "netcdf.mod" is created by the Fortran-90 compiler when netCDF is built from source, just as the primary netCDF library is created by the C compiler at the time netCDF is built and installed. That means you have to use the same Fortran-90 compiler for building netCDF as you will use for applications later on, when you make use of the installed libraries andd files. Make sure when you built the netCDF library that you also built the Fortran-90 interface. With the new netCDF 3.6.2 version, you can even build multiple versions of the Fortran-90 interface for different Fortran-90 compilers. If the Fortran-90 netCDF interface was built successfully, you will see lines like this in the output from "make check": *** Testing netCDF-3 Fortran 90 API. *** SUCCESS! Also note that different Fortran-90 compilers may have different convnetions for ".mod" module files, with some using ".MOD" instead of ".mod". --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: PNY-110761 Department: Support netCDF Priority: Normal Status: Closed