dcpam を宇宙研のスパコン(フロントエンド: maja)で動かす
必要なファイル
http://www.gfd-dennou.org/library/dcpam/dcpam5/dcpam5-20140204-5.tgz ver. 20140204-5
ビルドは, maja の /home/t/t583/work/dcpam 以下で行う.
> gzip -cd dcpam5-20140204-5.tgz | tar -xvf - > cd dcpam5-20140204-5 > export FC=f90jxflat > export FFLAGS='-Am -DSLTTFULLMONOTONIC -Umpi -Uomp' > ./configure --with-ispack=/home/t/t583/local/ispack-1.0.2/lib/libisp.a \ --with-netcdf=/home/t/t583/local/netcdf-3.6.3/lib/libnetcdf.a \ --with-gtool5=/home/t/t583/local/gtool5-20101228-1/lib/libgtool5.a \ --with-spml=/home/t/t583/local/spml-0.8.0/lib/libspml-omp.a \ --enable-mpi
Modify rules.make
"@test" -> "$(TEST)$ "rm -fv" -> "rm -f"
Modify Config.mk
Delete "-Y..." in SYSFFLAGS "SYSLDLIBS=-lspml-omp -lgtool5 -lnetcdf -lisp -lU77" -> "SYSLDLIBS=-lspml-omp -lgtool5 -lnetcdf -lisp" "MODPATHFLAG=-p" -> "MODPATHFLAG=-I" "INSTALL = install -m 644" -> "INSTALL = /opt/sfw/bin/install -m 644" "INSTALLBIN = install -m 755" -> "INSTALLBIN = /opt/sfw/bin/install -m 755" "INSTALLDIR = install -d -m 755" -> "INSTALLDIR = /opt/sfw/bin/install -d -m 755" "RM = rm -fv" -> "RM = /opt/sfw/bin/rm -fv"
make after modification (ただし, 下の「注意」にあるようにソースを変更すること)
> make
> sh sample.sh
以下の部分はコンパイル時になぜかエラーになるのでコメントアウト (自分は使わないから).
l.410
use saturate, only: xyz_CalcQVapSat -> !use saturate, only: xyz_CalcQVapSat
l.510
xyz_QVapSat = xyz_CalcQVapSat( xyz_Temp, xyz_Press ) -> xyz_QVapSat = 0.0_DP