WRF和WRFDA在VMware的Ubuntu系统上编译

版本简介

  • 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

在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值