2013年5月31日金曜日
hdf5とnetcdfを自前でコンパイルした時にWPSのconfigure.wpsを書き換えた箇所
WRF_LIB に以下を追加。
-L/WRF/HDF5/lib -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -lz -ldl
また、以下の項目を追加。
NETCDF = /WRF/NETCDF-4
HDF5とNETCDF-4.3 (and 4.2 for fortran and c++)をコンパイルした時のconfigure
===HDF5===
CC=/GNU/GCC/4.7.3/bin/gcc \
CFLAGS="-march=corei7" \
CXX=/GNU/GCC/4.7.3/bin/g++ \
CXXFLAGS="-march=corei7" \
FC=/GNU/GCC/4.7.3/bin/gfortran \
FCFLAGS="-march=corei7" \
./configure \
--prefix=/WRF/HDF5 \
--disable-shared --enable-fortran --enable-fortran2003 --enable-cxx \
--enable-production
CC=/GNU/GCC/4.7.3/bin/gcc \
CFLAGS="-march=corei7" \
CXX=/GNU/GCC/4.7.3/bin/g++ \
CXXFLAGS="-march=corei7" \
FC=/GNU/GCC/4.7.3/bin/gfortran \
FCFLAGS="-march=corei7" \
./configure \
--prefix=/WRF/HDF5 \
--disable-shared --enable-fortran --enable-fortran2003 --enable-cxx \
--enable-production
=== End HDF5 ===
===NETCDF 4.3===
CC=mpicc CFLAGS="-march=corei7" \
CPPFLAGS=-I/WRF/HDF5/include \
LDFLAGS=-L/WRF/HDF5/lib \
./configure \
--prefix=/WRF/NETCDF-4 \
--disable-shared --disable-dap
===End NETCDF 4.3===
===NETCDF 4.2 for fortran===
CC=mpicc CFLAGS="-march=corei7" \
FC=mpif90 FCLAGS="-march=corei7" \
F77=mpif90 FFLAGS="-march=corei7 -std=legacy -ffixed-form" \
CPPFLAGS="-I/WRF/HDF5/include -I/WRF/NETCDF-4/include -DgFortran" \
LDFLAGS="-L/WRF/HDF5/lib -L/WRF/NETCDF-4 -lnetcdf" \
./configure \
--prefix=/WRF/NETCDF-4 \
--disable-shared
===End NETCDF 4.2 for fortran===
===NETCDF 4.2 for C++===
CC=mpicc CFLAGS="-march=corei7" \
CXX=mpiCC CXXFLAGS="-march=corei7" \
FC=mpif90 FCLAGS="-march=corei7" \
F77=mpif90 FFLAGS="-march=corei7 -std=legacy -ffixed-form" \
CPPFLAGS="-I/WRF/HDF5/include -IWRF/NETCDF-4/include -DgFortran" \
LDFLAGS="-L/WRF/HDF5/lib -L/WRF/NETCDF-4 -lnetcdf" \
./configure \
--prefix=/WRF/NETCDF-4 \
--disable-shared
===End NETCDF 4.2 for C++===
登録:
投稿 (Atom)