爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 7404|回复: 5

WRFDA编译过程出现错误

[复制链接]

新浪微博达人勋

发表于 2019-9-3 16:55:50 | 显示全部楼层 |阅读模式

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

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

x
./configure wrfda 后成功:
checking for perl5... no
checking for perl... found /usr/bin/perl (perl)
Will use NETCDF in dir: /public/home/czhang/app/WRF/4.0/Build_WRF/LIBRARIES/1/netcdf
Will use HDF5 in dir: /public/software/apps/hdf5/1.10.1/gnu
PHDF5 not set in environment. Will configure WRF for use without.
RTTOV not set in environment. Will configure WRFDA for use without.
Will use 'time' to report timing information
$JASPERLIB or $JASPERINC not found in environment, configuring to build without grib2 I/O...

Enter selection [1-75] : 34

Configuration successful!

************************** W A R N I N G ************************************

There are some Fortran 2003 features in WRF that your compiler does not recognize
The IEEE signaling call has been removed.  That may not be enough.

*****************************************************************************
*****************************************************************************
This build of WRF will use classic (non-compressed) NETCDF format
*****************************************************************************

./compile all_wrfvar >& compile.out 后出现问题
ls -l var/build/*exe var/obsproc/src/obsproc.exe
-rwxr-xr-x 1 czhang users   24930 Sep  3 15:01 var/build/da_advance_time.exe
-rwxr-xr-x 1 czhang users  103992 Sep  3 15:07 var/build/da_bias_airmass.exe
-rwxr-xr-x 1 czhang users   65932 Sep  3 15:01 var/build/da_bias_scan.exe
-rwxr-xr-x 1 czhang users   40008 Sep  3 15:01 var/build/da_bias_sele.exe
-rwxr-xr-x 1 czhang users   50086 Sep  3 15:01 var/build/da_bias_verif.exe
-rwxr-xr-x 1 czhang users  126936 Sep  3 15:01 var/build/da_tune_obs_desroziers.exe
-rwxr-xr-x 1 czhang users  266547 Sep  3 15:07 var/build/da_tune_obs_hollingsworth1.exe
-rwxr-xr-x 1 czhang users  176060 Sep  3 15:07 var/build/da_tune_obs_hollingsworth2.exe
-rwxr-xr-x 1 czhang users 1528705 Sep  3 15:07 var/build/gen_be_stage2_gsi.exe
-rwxr-xr-x 1 czhang users 1017658 Sep  3 15:09 var/obsproc/src/obsproc.exe
只出现了以上几个exe
查看compile.out 出现了大批错误:

CRTM_RTSolution_Define.f90:627.31:

              STAT = alloc_stat, ERRMSG = alloc_msg )
                               1
Error: Syntax error in ALLOCATE statement at (1)
make[2]: [CRTM_RTSolution_Define.o] Error 1 (ignored)
gfortran -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   CRTM_AtmOptics_Define.f90
gfortran -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   CRTM_Geometry_Define.f90
CRTM_Geometry_Define.f90:1169.56:

    ALLOCATE(Geometry(n_input_profiles), STAT=alloc_stat, ERRMSG=alloc_msg)
                                                        1
Error: Syntax error in ALLOCATE statement at (1)
CRTM_Geometry_Define.f90:1216.44:

        DEALLOCATE(Geometry, STAT=alloc_stat, ERRMSG=alloc_msg)
                                            1
Error: Syntax error in DEALLOCATE statement at (1)
make[2]: [CRTM_Geometry_Define.o] Error 1 (ignored)
gfortran -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   CRTM_Aerosol_Define.f90
CRTM_Aerosol_Define.f90:199.65:

    ALLOCATE( list(0:N_VALID_AEROSOL_CATEGORIES), STAT=alloc_stat, ERRMSG=alloc
                                                                 1
Error: Syntax error in ALLOCATE statement at (1)
make[2]: [CRTM_Aerosol_Define.o] Error 1 (ignored)
gfortran -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   CRTM_Cloud_Define.f90
CRTM_Cloud_Define.f90:193.63:

    ALLOCATE( list(0:N_VALID_CLOUD_CATEGORIES), STAT=alloc_stat, ERRMSG=alloc_m
                                                               1
Error: Syntax error in ALLOCATE statement at (1)
CRTM_Cloud_Define.f90:1021.39:

    ALLOCATE(Cloud(nc), STAT=alloc_stat, ERRMSG=alloc_msg)
                                       1
Error: Syntax error in ALLOCATE statement at (1)
CRTM_Cloud_Define.f90:1067.41:

        DEALLOCATE(Cloud, STAT=alloc_stat, ERRMSG=alloc_msg)
                                         1
Error: Syntax error in DEALLOCATE statement at (1)

...
Fatal Error: Can't open module file 'crtm_geometry_define.mod' for reading at (1): No such file or directory


请问这是什么原因呢?查阅了很多论坛没有找到相同的问题...卡在这里几天了...
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-11-21 12:18:32 | 显示全部楼层
楼主解决了吗?我也出现了类似的问题,只生成9个exe文件
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-2-22 16:23:11 | 显示全部楼层
求问楼主是否解决
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-4-8 11:39:38 | 显示全部楼层
楼主一直也没有解决
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-3-17 16:25:26 | 显示全部楼层
您好,请问您是怎么解决这个问题的?能解答一下吗?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2024-4-7 15:05:13 | 显示全部楼层
$JASPERLIB or $JASPERINC not found in environment,错误提示很明显,你的$JASPERLIB 和 $JASPERINC 没有在环境中配置,最好在环境中加入export JASPERLIB $DIR/grib2/lib
export JASPERINC $DIR/grib2/include
export LDFLAGS -L$DIR/grib2/lib
export CPPFLAGS -I$DIR/grib2/include
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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