安装步骤 **************************** 公用环境变量 ---------------------------------- .. note:: .. code-block:: bash setenv BASE ${ROOT_DIR}/nwprod/rap.v4.0.12/sorc 编译 :code:`rap_wrfarw_serial` ---------------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_wrfarw.fd/WRFV3.8.1 ./clean -aa ./clean -a ./clean cd external/io_int/ rm -f *.f *.o *.obj *.i *.mod *.a diffwrf io_int_idx_tags.h cd - cp configure.wrf.serial configure.wrf ./compile em_real |& tee make.log 编译 :code:`rap_wrfpost` ---------------------------------- .. note:: 我们使用 *community* 版本的 `UPP下载 `_ : .. code-block:: bash cd ${BASE} # 解压缩在该目录下 cd UPPV4.0.1 ./clean -a ./configure mkdir -p include lib bin ./compile |& tee make.log cp bin/unipost.exe ../../exec/rap_wrfpost 编译 :code:`rap_update_bc` ---------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_update_bc.fd make clean make 编译 :code:`rap_wps` ---------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_wps.fd/WPSV3.9.0.1 ./clean -aa ./clean -a ./clean cp configure.wps.optim configure.wps ./compile |& tee make.log cp ungrib/src/ungrib.exe ${BASE}/../exec/rap_wps_ungrib cp metgrid/src/metgrid.exe ${BASE}/../exec/rap_wps_metgrid .. note:: :code:`${BASE}/../parm/rap_Vtable.gfs` 必须替换成为 :code:`WRF-WPS` 提供的给**community**用户使用的 :code:`Vtable` 编译 :code:`rap_wrfarw` ---------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_wrfarw.fd/WRFV3.8.1 ./clean -aa ./clean -a ./clean cd external/io_int/ rm -f *.f *.o *.obj *.i *.mod *.a diffwrf io_int_idx_tags.h cd - cp configure.wrf.optim configure.wrf ./compile em_real |& tee make.log cp main/real.exe ${BASE}/../exec/rap_wrfarw_real cp main/wrf.exe ${BASE}/../exec/rap_wrfarw_fcst 编译 :code:`rap_gsi` --------------------------------------------- 编译步骤: .. code-block:: bash setenv NETCDF_INCLUDE "-I${NETCDF}/include" setenv NETCDF_LDFLAGS_F "-L${NETCDF}/lib -lnetcdff -lnetcdf" cd ${BASE}/rap_gsi.fd cp Makefile.conf.wcoss Makefile.conf make clean cd gsdcloud cp Makefile.conf.wcoss Makefile.conf make clean make cd .. make make install make library 编译 :code:`rap_process_enkf` --------------------------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_process_enkf.fd cp Makefile.conf_intel Makefile.conf make clean make # it will fail, you have to manually build two files mpif90 -FI -D_REAL8_ -DWRF -DRR_CLOUDANALYSIS -I./ -I/glade/work/xinzhang/repository/nwprod/rap.v4.0.12/sorc/rap_gsi.fd -I/glade/work/xinzhang/repository/nwprod/lib/crtm/v2.2.3/intel/include/crtm_v2.2.3/ -I/glade/work/xinzhang/repository/nwprod/lib/sfcio/v1.0.0/intel/include/sfcio_v1.0.0_4 -I/glade/work/xinzhang/repository/nwprod/lib/sigio/v2.0.1/src/sigio_v2.0.1/include -I/glade/work/xinzhang/repository/nwprod/lib/nemsio/incmod/nemsio -I/glade/u/home/xinzhang/spack/opt/spack/linux-sles12-broadwell/intel-19.0.5.281/netcdf-fortran-4.5.2-iiqxmna2ejlv4c6g5oot4t4l5wicuau2/include -I/glade/work/xinzhang/repository/nwprod/lib/w3emc/v2.2.0/src/intel/w3emc_v2.2.0_d -O3 -traceback -convert big_endian -assume byterecl -g -fp-model source -qopenmp -c dlarnv.f90 mpif90 -FI -D_REAL8_ -DWRF -DRR_CLOUDANALYSIS -I./ -I/glade/work/xinzhang/repository/nwprod/rap.v4.0.12/sorc/rap_gsi.fd -I/glade/work/xinzhang/repository/nwprod/lib/crtm/v2.2.3/intel/include/crtm_v2.2.3/ -I/glade/work/xinzhang/repository/nwprod/lib/sfcio/v1.0.0/intel/include/sfcio_v1.0.0_4 -I/glade/work/xinzhang/repository/nwprod/lib/sigio/v2.0.1/src/sigio_v2.0.1/include -I/glade/work/xinzhang/repository/nwprod/lib/nemsio/incmod/nemsio -I/glade/u/home/xinzhang/spack/opt/spack/linux-sles12-broadwell/intel-19.0.5.281/netcdf-fortran-4.5.2-iiqxmna2ejlv4c6g5oot4t4l5wicuau2/include -I/glade/work/xinzhang/repository/nwprod/lib/w3emc/v2.2.0/src/intel/w3emc_v2.2.0_d -O3 -traceback -convert big_endian -assume byterecl -g -fp-model source -qopenmp -c dlaruv.f90 make make install 编译 :code:`rap_full_cycle_surface` --------------------------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_full_cycle_surface.fd make clean make 编译 :code:`rap_process_cloud` --------------------------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_process_cloud.fd make clean make 编译 :code:`rap_update_fields` --------------------------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_update_fields.fd make clean make 编译 :code:`rap_process_sst` --------------------------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_process_sst.fd make clean make 编译 :code:`rap_update_gvf` --------------------------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_update_gvf.fd make clean make 编译 :code:`rap_process_imssnow.fd` --------------------------------------------- 编译步骤: .. code-block:: bash cd ${BASE}/rap_process_imssnow.fd make clean make