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