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:
Set environmental variables
Environmental variables requires to be set for using Intel compilers. You may temporarily set them in
.bashrc and invoke
$ . .bashrc.
$ 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'
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:
$ ./configure --prefix=/home/usr1/account/local/netcdf-3.6.3-intel
$ make check
$ make install
Now completed and you can use this
netcdf library for
FVCOM by specifying in
FVCOM as follows:
IOINCS = -I/home/usr1/account/local/netcdf-3.6.3-intel/include