This is a memorandum building netcdf-3.6.3 with Intel compilers on Supercomputer ITO Subsystem-A at Kyushu University. The build of netcdf-4.1.2 does not work as found here.

Obtaining source of netcdf-3.6.3

The source of netcdf-3.6.3 can be downloaded from this site. Extract it in a directory:

$ tar xf netcdf-3.6.3.tar.gz

Set environmental variables

Environmental variables requires to be set for using Intel compilers. You may temporarily set them in .bashrc and invoke $ . .bashrc.

$ export CC=icc
$ export CXX=icpc
$ export CFLAGS=-O3
$ export CXXFLAGS=-O3
$ export F77=ifort
$ export FC=ifort
$ export F90=ifort
$ export FFLAGS=-O3
$ export CPP='icc -E'
$ export CXXCPP='icpc -E'

Building netcdf-3.6.3

Now you can build netcdf-3.6.3 specifying the directory to be installed as ~/local/netcdf-3.6.3-intel. However, its full path needs to be given in the prefix as follows:

$ cd netcdf-3.6.3
$ ./configure --prefix=/home/usr1/account/local/netcdf-3.6.3-intel
$ make
$ make check
$ make install

Now completed and you can use this netcdf library for FVCOM by specifying in make.inc of FVCOM as follows:

IOLIBS       =  -L/home/usr1/account/local/netcdf-3.6.3-intel/lib -lnetcdf
IOINCS       =  -I/home/usr1/account/local/netcdf-3.6.3-intel/include