To run the executable, the DLL files listed above must be in the same folder. Ifort my_main.obj my_subs.obj netcdf.lib otherlibs.lib Status = NF_INQ(ncid, nDims, nVars, nGlobalAtts, unlimdimid) Status = NF_OPEN(inpfname,0, ncid) ! open NetCDF fileġ000 FORMAT('0***ERROR: Error opening file: ',a) INTEGER ndims,nvars,nGlobalAtts,unlimdimid,len INCLUDE 'argo2ios.inc' ! which includes 'netcdf.inc' Im using a debian (lenny) on a vmware machine (Vmware workstation 7). Hello: Im trying to install netcdf 4.1.1 with intel compilers. Netcdf 4.1.1 with Intel compiler Netcdf 4.1.1 with Intel compiler. ! checks to see if input file is a multiple profile file. Home Forums Intel® Software Development Products Intel® Fortran Compiler. ! Opens the NetCDF File for readind, initializes some dimension variables and I did the latter, because I use other libraries which are NOT compiled with /iface:cvf. You must add a "!DIR$ATTRIBUTES CVF" statement in each of your netCDF-calling Fortran subroutines or functions, naming every netcdf function you call in that routine. Your Fortran must either be compiled with the /iface:cvf option OR The Ncview visual browser is installed as part of the netcdf installations, and the ncview executable is available when one of the netcdf module files are loaded. Compile and link examples: icc testnetcdf.c -lnetcdf C code ifort testnetcdf.f90 -lnetcdff Fortran code Ncview.
I did this in Windows 7 with Intel Visual Fortran 16, working at the command line.įrom the src zip file you may need file netcdf.inc module load intelcomp/13.0.1 mpt/2.06 netcdf/4.3.0.
This is just a description of how to port a CVF NetCDF-using Fortran program to IVF, so that someone can do it in less time than it took me!