版本简介
- VMware使用Pro17
- Ubuntu使用20.04.6
- WRFV4.5
- WPSV4.5
依赖库安装
参考帖子
https://zhuanlan.zhihu.com/p/637375392?utm_id=0
http://t.csdn.cn/y10dY
基础软件安装,WPS需要的zlib、libpng、jasper,mpich
参考第2个帖子
- 出现问题1
解决方法1
http://t.csdn.cn/Hg39q
- 出现问题2
解决方法2
http://t.csdn.cn/dfuRZ
HDF5安装
按照第2个帖子配置环境变量
按照第1个帖子下载hdf5的安装包
参考第2个帖子编译hdf5
NETCDF安装
按照第1个帖子下载hdf5以及netcdf-c和netcdf-fortran的包
1. netcdf-c
./configure --prefix=$NETCDF --disable-dap CPPFLAGS=-I$HDF5/include LDFLAGS=-L$HDF5/lib
make -j 4
make install
2. netcdf-fortran
./configure --prefix=$NETCDF CFLAGS="-I$HDF5/include -I$NETCDF/include" CPPFLAGS="-I$HDF5/include -I$NETCDF/include" LDFLAGS="-L$HDF5/lib -L$NETCDF/lib"
make
make install
WRF编译
参考第1个帖子
tar -xvzf v4.5.tar.gz
cp -r WRFV4.5 WRFPLUSV4.5
cp -r WRFV4.5 WRFDAV4.5
./configure #这里我选的34
./compile -j $(nproc) em_real 2>&1 | tee log.compile
WRFDA编译
参考第一篇帖子
WRFPLUS安装
./configure wrfplus #我选了18
./compile -j 4 2>&1 wrfplus | tee log.compile
ls -ls main/*.exe # 应该有 wrfplus.exe
export WRFPLUS_DIR=/home/swx/build_wrf/WRFPLUSV4.5
WRFDA安装
./configure 4dvar # 选择了18
./compile -j 4 all_wrfvar 2>&1 | tee log.compile
./compile -j 4 all_wrfvar 2>&1 | tee log.1.compile
ls -ls var/build/*.exe var/obsproc/*.exe | wc -l #应该是44
WPS安装
参考第2篇贴子
cd WPS/
./configure #选择了3
./compile>& log.wps