请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 271|回复: 1

[其他] WRF 4DVAR编译失败

[复制链接]

新浪微博达人勋

发表于 2020-9-11 14:30:46 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
最近安装WRF 4DVAR.库的安装和环境变量配置按照WRF官网安装教程来的。WRF、3DVAR、WRFPLUS都编译成功,但4DVAR失败。装了一周多了,还没装上,不知道有没有好心人看看是哪里有问题。
环境变量配置:
export DIR=/home/lq/Build_WRF/LIBRARIES
export CC=gcc
export CXX=g++
export FC=gfortran
export FCFLAGS=-m64
export F77=gfortran
export FFLAGS=-m64
export JASPERLIB=$DIR/grib2
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export LDFLAGS=-L$DIR/grib2/lib
export CPPFLAGS=-I$DIR/grib2/include

export NETCDF=$DIR/netcdf
export PATH=$PATH:$NETCDF/bin:$mpich/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$NETCDF/lib:$mpich/lib
export CPPFLAGS=-I$NETCDF/include
export LDFLAGS=-L$NETCDF/lib
export WRFPLUS_DIR=/home/lq/Build_WRF/WRFPLUS
export CRTM=0


[size=13.3333px]>./compile all_wrfvar >& compile.out后的compile.out文件截取部分如下:
[size=13.3333px]None of WRF_EM_CORE, WRF_NMM_CORE,
        specified in shell environment....
copying Registry/Registry.wrfvar to Registry/Registry

Compiling WRFDA without CRTM library


==============================================================================================

V4.2.1

Compiling: WRF_DA_CORE WRF_EM_CORE  

Linux DESKTOP-3O6J62M 4.4.0-18362-Microsoft #1049-Microsoft Thu Aug 14 12:01:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux

GNU Fortran (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
==============================================================================================

setting parallel make -j 2
make -i -r MODULE_DIRS=" -I/home/lq/Build_WRF/WRFPLUS/external/esmf_time_f90  -I/home/lq/Build_WRF/WRFPLUS/main -I/home/lq/Build_WRF/WRFPLUS/external/io_netcdf -I/home/lq/Build_WRF/WRFPLUS/external/io_int -I/home/lq/Build_WRF/WRFPLUS/frame -I/home/lq/Build_WRF/WRFPLUS/share -I/home/lq/Build_WRF/WRFPLUS/phys -I/home/lq/Build_WRF/WRFPLUS/wrftladj -I/home/lq/Build_WRF/WRFPLUS/chem -I/home/lq/Build_WRF/WRFPLUS/inc -I/home/lq/Build_WRF/LIBRARIES/netcdf/include " ext
make[1]: Entering directory '/home/lq/Build_WRF/WRFPLUS'
--------------------------------------
if [ 0 -eq 0 ] ; then \
  ( cd frame ; make -i -r externals ) ; \
else \
  ( cd frame ; make -i -r PLUSFLAG="-DWRFPLUS=1" externals ) ; \
fi
make[2]: Entering directory '/home/lq/Build_WRF/WRFPLUS/frame'
( cd /home/lq/Build_WRF/WRFPLUS/external/esmf_time_f90 ; \
          make -j 2 FC="gfortran -fdefault-real-8  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " RANLIB="ranlib" \
          CPP="/lib/cpp -P -nostdinc -I/home/lq/Build_WRF/WRFPLUS/inc -I. -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=1 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DRPC_TYPES=1 -DBUFR   -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DVAR4D -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=0 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -traditional-cpp" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory '/home/lq/Build_WRF/WRFPLUS/external/esmf_time_f90'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/home/lq/Build_WRF/WRFPLUS/external/esmf_time_f90'
( cd /home/lq/Build_WRF/WRFPLUS/external/io_netcdf ; \
          make -j 2 NETCDFPATH="/home/lq/Build_WRF/LIBRARIES/netcdf" RANLIB="ranlib" CPP="/lib/cpp -P -nostdinc" \
          CC="gcc" CFLAGS="-w -O3 -c   -DDM_PARALLEL -DLANDREAD_STUB=1 -DMAX_HISTORY=25 -DNMM_CORE=0" \
          FC="gfortran -fdefault-real-8  -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " TRADFLAG="-traditional-cpp" AR="ar" ARFLAGS="ru" )

[size=13.3333px]

[size=13.3333px]

[size=13.3333px]
    8 |   USE da_module_configure, ONLY : model_config_rec
      |      1
Fatal Error: Cannot open module file ‘da_module_configure.mod’ for reading at (1): No such file or directory
compilation terminated.
Command exited with non-zero status 1
0.00user 0.25system 0:00.29elapsed 85%CPU (0avgtext+0avgdata 8624maxresident)k
0inputs+0outputs (0major+3124minor)pagefaults 0swaps
make[1]: [da.make:560: nl_set_7_routines.o] Error 1 (ignored)
rm -f xx7.f90
rm -f gen_be_stage0_wrf.o
/home/lq/Build_WRF/WRFPLUS/tools/standard.exe gen_be_stage0_wrf.f90 > gen_be_stage0_wrf.b
rm -f da_update_bc_ad.b
/lib/cpp -P -nostdinc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=1 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DRPC_TYPES=1 -DBUFR   -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DVAR4D -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=0 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0  -I. -traditional-cpp   -I/home/lq/Build_WRF/WRFPLUS/inc gen_be_stage0_wrf.b  > gen_be_stage0_wrf.f
gfortran -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fdefault-real-8 -I/home/lq/Build_WRF/LIBRARIES/netcdf/include da_update_bc_ad.f
rm -f gen_be_stage0_wrf.b
COMPILING gen_be_stage0_wrf.f90 for 4DVAR
if fgrep -iq '!$OMP' gen_be_stage0_wrf.f ; then \
          if [ -n "" ] ; then echo COMPILING gen_be_stage0_wrf.f90 WITH OMP ; fi ; \
  time mpif90  -o gen_be_stage0_wrf.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   -fdefault-real-8 gen_be_stage0_wrf.f ; \
        else \
          if [ -n "" ] ; then echo COMPILING gen_be_stage0_wrf.f90 WITHOUT OMP ; fi ; \
  time mpif90  -o gen_be_stage0_wrf.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fdefault-real-8 gen_be_stage0_wrf.f ; \
        fi
gen_be_stage0_wrf.f:17:7:

   17 |    use da_control, only : num_fft_factors, pi, stdout, stderr, &
      |       1
Fatal Error: Cannot open module file ‘da_control.mod’ for reading at (1): No such file or directory
compilation terminated.
Command exited with non-zero status 1
0.00user 0.28system 0:00.28elapsed 97%CPU (0avgtext+0avgdata 8440maxresident)k
0inputs+0outputs (0major+3044minor)pagefaults 0swaps
make[1]: [makefile:63: gen_be_stage0_wrf.o] Error 1 (ignored)
rm -f da_etkf.o
/home/lq/Build_WRF/WRFPLUS/tools/standard.exe da_etkf.f90 > da_etkf.b
rm -f da_be_spectral.o
/lib/cpp -P -nostdinc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=1 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DRPC_TYPES=1 -DBUFR   -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DVAR4D -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=0 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0  -I. -traditional-cpp   -I/home/lq/Build_WRF/WRFPLUS/inc da_etkf.b  > da_etkf.f
/home/lq/Build_WRF/WRFPLUS/tools/standard.exe da_be_spectral.f90 > da_be_spectral.b
/lib/cpp -P -nostdinc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=1 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DRPC_TYPES=1 -DBUFR   -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DVAR4D -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=0 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0  -I. -traditional-cpp   -I/home/lq/Build_WRF/WRFPLUS/inc da_be_spectral.b  > da_be_spectral.f
rm -f da_etkf.b
rm -f da_be_spectral.b
time mpif90  -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fdefault-real-8 -I../../external/fftpack/fftpack5  da_be_spectral.f
COMPILING da_etkf.f90 for 4DVAR
da_be_spectral.f:3:7:

    3 |    use da_control, only : da_zero_complex,ierr, trace_use, &
      |       1
Fatal Error: Cannot open module file ‘da_control.mod’ for reading at (1): No such file or directory
compilation terminated.
Command exited with non-zero status 1
0.01user 0.26system 0:01.28elapsed 21%CPU (0avgtext+0avgdata 8428maxresident)k
0inputs+0outputs (0major+3040minor)pagefaults 0swaps
make[1]: [da.make:472: da_be_spectral.o] Error 1 (ignored)
rm -f gen_be_stage0_gsi.o
/home/lq/Build_WRF/WRFPLUS/tools/standard.exe gen_be_stage0_gsi.f90 > gen_be_stage0_gsi.b
/lib/cpp -P -nostdinc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=1 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DRPC_TYPES=1 -DBUFR   -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DVAR4D -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=0 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0  -I. -traditional-cpp   -I/home/lq/Build_WRF/WRFPLUS/inc gen_be_stage0_gsi.b  > gen_be_stage0_gsi.f
rm -f gen_be_stage0_gsi.b
COMPILING gen_be_stage0_gsi.f90 for 4DVAR
time mpif90  -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fdefault-real-8 da_etkf.f
da_etkf.f:9:7:

    9 |    use da_control, only : stdout, trace_use
      |       1
Fatal Error: Cannot open module file ‘da_control.mod’ for reading at (1): No such file or directory
compilation terminated.
Command exited with non-zero status 1
0.01user 0.26system 0:00.28elapsed 98%CPU (0avgtext+0avgdata 8544maxresident)k
0inputs+0outputs (0major+3070minor)pagefaults 0swaps
make[1]: [da.make:339: da_etkf.o] Error 1 (ignored)
rm -f gen_be_ep1.o
/home/lq/Build_WRF/WRFPLUS/tools/standard.exe gen_be_ep1.f90 > gen_be_ep1.b
/lib/cpp -P -nostdinc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=1 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DRPC_TYPES=1 -DBUFR   -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DVAR4D -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=0 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0  -I. -traditional-cpp   -I/home/lq/Build_WRF/WRFPLUS/inc

module_func.o module_inside.o module_obs_merge.o module_per_type.o module_duplicate.o module_sort.o module_write.o module_complete.o module_recoverp.o module_diagnostics.o module_recoverh.o module_icao.o module_qc.o module_err_afwa.o module_err_ncep.o module_thin_ob.o \
                module_decoded.o module_stntbl.o \
                error_handler.o fm_decoder.o sort_platform.o qc_reduction.o check_obs.o setup.o \
                obsproc.o  -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4     ; \
                fi
make[2]: Leaving directory '/home/lq/Build_WRF/WRFPLUS/var/obsproc/src'
( /bin/rm -f obsproc.exe ;   ln -s src/obsproc.exe . )
make[1]: Leaving directory '/home/lq/Build_WRF/WRFPLUS/var/obsproc'
build started:   Fri Sep 11 11:14:10 CST 2020
build completed: Fri Sep 11 11:20:26 CST 2020







密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2020-9-11 15:07:00 | 显示全部楼层
想哭
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表