WRFDA安装

WRFDA Installation

1、Installing WRFPLUS for 4DVAR Run

If you intend to run WRFDA 4DVAR, it is necessary to have WRFPLUS installed. 

(Note: if you intend to run both 3DVAR and 4DVAR experiments, it is not necessary to compile the code twice. The da_wrfvar.exe executable compiled for 4DVAR can be used for both 3DVAR and 4DVAR assimilation.)

Get the WRFPLUS zipped tar file from ( http://www2.mmm.ucar.edu/wrf/users/wrfda/download/wrfplus.html)

> tar -zvxf WRFPLUSV3.9.tar

> cd WRFPLUSV3

> ./configure wrfplus

slection: 18. (dmpar) GNU (gfortran/gcc)

10. (dmpar) INTEL (ifort/icc): Xeon (SNB with AVX mods)

Note: Be sure to select the same option for WRFPLUS as you will use for WRFDA.

> ./compile wrf >& compile.log

> ls -ls main/*.exe

If compilation was successful, you should see the WRFPLUS executable (named wrf.exe):

57032 -rwxrwxrwx 1 gyy gyy 52858400 May 26 23:16 main/wrf.exe

Finally, set the environment variable WRFPLUS_DIR to the appropriate directory:

~/.bashrc

export WRFPLUS_DIR =${your_source_code_dir}/WRFPLUSV3

2、Installing WRFDA for 4DVAR Run

Users can download the WRFDA source code from http://www2.mmm.ucar.edu/wrf/users/wrfda/download/get_source.html.

>tar -zvxf WRFDA_V3.9.1.tar

> cd WRFDA

(NETCDF/HDF5/WRFPLUS_DIR的环境变量要设置)

> ./configure 4dvar

slection: 18. (dmpar) GNU (gfortran/gcc)

modify DM_FC= mpif90 and DM_CC= mpicc in configure.wrf

10. (dmpar) INTEL (ifort/icc): Xeon (SNB with AVX mods)

>./compile all_wrfvar >& compile.log

Successful compilation will produce 44 executables: 43 of which are in the var/build directory and linked in the var/da directory, with the 44th, obsproc.exe, found in the var/obsproc/src directory. 

>ls -ls var/build/*.exe var/obsproc/*.exe

The main executable for running WRFDA is da_wrfvar.exe. Make sure it has been

created after the compilation: it is fairly common that all the executables will be successfully

compiled except this main executable. If this occurs, please check the compilation

log file carefully for any errors.

 3、Clean old compilation

To remove all object files and executables, type:

./clean

To remove all build files, including configure.wrf, type:

./clean -a

The clean –a command is recommended if your compilation fails, or if the configuration file has been changed and you wish to restore the default settings.

./compile all_wrfvar出现错误

CRTM_MW_Water_SfcOptics.f90(87): error #6401: The attributes of this name conflict with those made accessible by a USE statement.

暂时认为是intel版本的问题,intel15.0.0版本官网说明的是编译失败

http://www2.mmm.ucar.edu/wrf/users/wrfda/yellowstone.html

欢迎扫描下方二维码关注气海同途公众号,获取更多大气和海洋科学数值预报领域的内容。

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值