Compiling netcdf with intel

From GHER

Jump to: navigation, search
  • download latest source from

http://www.unidata.ucar.edu/downloads/netcdf/index.jsp

  • extract the archive:
gzip -d netcdf.tar.gz 
tar -xvf netcdf.tar
  • export the compilers:
cd netcdf-3.6.2/
export F77=/u/software/intel/fce/9.1.040/bin/ifort
export CC=/u/software/intel/cce/9.1.045/bin/icc
  • some tips from

http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#linux_ifort

CPPFLAGS="-fPIC -DpgiFortran"
FFLAGS='-i-static'
LC_ALL=C
  • configure and install:
./configure --prefix=/u/ctroupin
make check           

(certains peuvent foirer)

make install
  • test the installation:
ncdump -h name_of_a_netcdf_file.nc
Personal tools