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 Michelle, Do you know if the module file (probably /usr/local/include/netcdf.mod) was built with the same g95 compiler you are trying to use for example.f90? If not, that would explain the problem. You must use the same Fortran compiler as was used in building and installing the netCDF Fortran libraries, because Fortran .mod files may not portable between different Fortran compilers. Also, if you just copied the netcdf.mod file from a different computing platform rather than building it from source or installing it from a binary distribution for your platform, that could also be the problem. If you still have the netCDF source, try running "make check" in the f90 directory and see if it works. If it does, you could copy the netcdf.mod file (and typesizes.mod file) from that directory to /usr/local/include and try again. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: ZRZ-463007 Department: Support netCDF Priority: Normal Status: Closed