Intel Fortran で netcdf をコンパイル
./configure 前に以下を設定
$ export FC=ifort $ export F90=ifort $ export CC=icc $ export CXX=icpc $ export CPPFLAGS="-DNDEBUG -DpgiFortran" $ export FFLAGS="-g -O -mp -recursive" $ export F90FLAGS="-g -O -mp -recursive"
…で通る, けど Warning が五月蝿いので, 邪道だが.
$ export CC="icc -w" $ export CXX="icpc -w" $ export FFLAGS="-w -g -O -mp -recursive" $ export F90FLAGS="-w -g -O -mp -recursive"
とした.
$ ./configure --prefix=/usr/local/stow/netcdf $ make $ make test
sudo の環境変数変更に嵌る.
$ sudo -s # source /opt/intel/fc/9.0/ifortvars.sh # source /opt/intel/cc/9.0/iccvars.sh # make install # cd /usr/local/stow/ # stow netcdf
で終了