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

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 31116|回复: 23

在运行wrf.exe出现 traj_opt is zero, but num_traj is not zero错误.

[复制链接]

新浪微博达人勋

发表于 2014-9-17 10:20:34 | 显示全部楼层 |阅读模式

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

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

x
小弟在运行wrf.exe是出现错误, 如下:

yangjian@yangjian-To-be-filled-by-O-E-M:~/Build_WRF/WRFV3/test/em_real$ ./wrf.exe
--- WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
--- NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
--- NOTE: grid_fdda is 0 for domain      1, setting gfdda interval and ending time to 0 for that domain.
--- NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain      1, setting sgfdda interval and ending time to 0 for that domain.
--- NOTE: obs_nudge_opt is 0 for domain      1, setting obs nudging interval and ending time to 0 for that domain.
bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
--- NOTE: num_soil_layers has been set to      4
WRF V3.6.1 MODEL
*************************************
Parent domain
ids,ide,jds,jde            1          74           1          61
ims,ime,jms,jme           -4          79          -4          66
ips,ipe,jps,jpe            1          74           1          61
*************************************
DYNAMICS OPTION: Eulerian Mass Coordinate
   alloc_space_field: domain            1 ,             133721260  bytes allocated
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:      70
program wrf: error opening wrfinput_d01 for reading ierr=       -1021
-------------------------------------------
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:      70
program wrf: error opening wrfinput_d01 for reading ierr=       -1021
-------------------------------------------

因为刚刚才接触WRF看不懂到底该怎么改. 个人感觉是namelist.input的错误,所以就把namelist.input粘上来了:

&time_control
run_days                            = 0,
run_hours                           = 12,
run_minutes                         = 0,
run_seconds                         = 0,
start_year                          = 2000, 2000, 2000,
start_month                         = 01,   01,   01,
start_day                           = 24,   24,   24,
start_hour                          = 12,   12,   12,
start_minute                        = 00,   00,   00,
start_second                        = 00,   00,   00,
end_year                            = 2000, 2000, 2000,
end_month                           = 01,   01,   01,
end_day                             = 25,   25,   25,
end_hour                            = 00,   00,   00,
end_minute                          = 00,   00,   00,
end_second                          = 00,   00,   00,
interval_seconds                    = 21600
input_from_file                     = .true.,.true.,.true.,
history_interval                    = 180,  60,   60,
frames_per_outfile                  = 1000, 1000, 1000,
restart                             = .false.,
restart_interval                    = 5000,
io_form_history                     = 2
io_form_restart                     = 2
io_form_input                       = 2
io_form_boundary                    = 2
debug_level                         = 0
/

&domains
time_step                           = 180,
time_step_fract_num                 = 0,
time_step_fract_den                 = 1,
max_dom                             = 1,
e_we                                = 74,    112,   94,
e_sn                                = 61,    97,    91,
e_vert                              = 30,    30,    30,
p_top_requested                     = 5000,
num_metgrid_levels                  = 27,
num_metgrid_soil_levels             = 4,
dx                                  = 30000, 10000,  3333.33,
dy                                  = 30000, 10000,  3333.33,
grid_id                             = 1,     2,     3,
parent_id                           = 0,     1,     2,
i_parent_start                      = 1,     31,    30,
j_parent_start                      = 1,     17,    30,
parent_grid_ratio                   = 1,     3,     3,
parent_time_step_ratio              = 1,     3,     3,
feedback                            = 1,
smooth_option                       = 0
/

&physics
mp_physics                          = 3,     3,     3,
ra_lw_physics                       = 1,     1,     1,
ra_sw_physics                       = 1,     1,     1,
radt                                = 30,    30,    30,
sf_sfclay_physics                   = 1,     1,     1,
sf_surface_physics                  = 2,     2,     2,
bl_pbl_physics                      = 1,     1,     1,
bldt                                = 0,     0,     0,
cu_physics                          = 1,     1,     0,
cudt                                = 5,     5,     5,
isfflx                              = 1,
ifsnow                              = 1,
icloud                              = 1,
surface_input_source                = 1,
num_soil_layers                     = 4,
sf_urban_physics                    = 0,     0,     0,
/

&fdda
/

&dynamics
w_damping                           = 0,
diff_opt                            = 1,      1,      1,
km_opt                              = 4,      4,      4,
diff_6th_opt                        = 0,      0,      0,
diff_6th_factor                     = 0.12,   0.12,   0.12,
base_temp                           = 290.
damp_opt                            = 0,
zdamp                               = 5000.,  5000.,  5000.,
dampcoef                            = 0.2,    0.2,    0.2
khdif                               = 0,      0,      0,
kvdif                               = 0,      0,      0,
non_hydrostatic                     = .true., .true., .true.,
moist_adv_opt                       = 1,      1,      1,     
scalar_adv_opt                      = 1,      1,      1,     
/

&bdy_control
spec_bdy_width                      = 5,
spec_zone                           = 1,
relax_zone                          = 4,
specified                           = .true., .false.,.false.,
nested                              = .false., .true., .true.,
/

&grib2
/

&namelist_quilt
nio_tasks_per_group = 0,
nio_groups = 1,
/
求牛人帮忙看看这到底该怎么改

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

新浪微博达人勋

 楼主| 发表于 2014-9-17 10:52:31 | 显示全部楼层
坐等回复{:soso_e147:}{:soso_e147:}{:soso_e147:}{:soso_e147:}
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-9-17 13:07:01 | 显示全部楼层
real.exe是否成功?有没有出现wrfinput_d01?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-9-17 13:56:21 | 显示全部楼层
longlivehj 发表于 2014-9-17 13:07
real.exe是否成功?有没有出现wrfinput_d01?

大神,你终于来了
real.exe 没有成功. 下面是报错的情况:
yangjian@yangjian-To-be-filled-by-O-E-M:~/Build_WRF/WRFV3/test/em_real$ ./real.exe
--- WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
--- NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
--- NOTE: grid_fdda is 0 for domain      1, setting gfdda interval and ending time to 0 for that domain.
--- NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain      1, setting sgfdda interval and ending time to 0 for that domain.
--- NOTE: obs_nudge_opt is 0 for domain      1, setting obs nudging interval and ending time to 0 for that domain.
bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
--- NOTE: num_soil_layers has been set to      4
REAL_EM V3.6.1 PREPROCESSOR
*************************************
Parent domain
ids,ide,jds,jde            1         290           1         190
ims,ime,jms,jme           -4         295          -4         195
ips,ipe,jps,jpe            1         290           1         190
*************************************
DYNAMICS OPTION: Eulerian Mass Coordinate
   alloc_space_field: domain            1 ,            2045239588  bytes allocated
Time period #   1 to process = 2000-01-24_12:00:00.
Time period #   2 to process = 2000-01-24_18:00:00.
Time period #   3 to process = 2000-01-25_00:00:00.
Total analysis times to input =    3.
  
-----------------------------------------------------------------------------
  
Domain  1: Current date being processed: 2000-01-24_12:00:00.0000, which is loop #   1 out of    3
configflags%julyr, %julday, %gmt:        2000          24   12.000000   
metgrid input_wrf.F first_date_input = 2000-01-24_12:00:00
metgrid input_wrf.F first_date_nml = 2000-01-24_12:00:00
dx and dy from file        30000.000       30000.000
dx and dy from namelist    20000.000       20000.000
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:     531
DX and DY do not match comparing namelist to the input file
-------------------------------------------
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:     531
DX and DY do not match comparing namelist to the input file
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-9-17 14:42:26 | 显示全部楼层
YJane 发表于 2014-9-17 13:56
大神,你终于来了
real.exe 没有成功. 下面是报错的情况:
yangjian@yangjian-To-be-filled-by ...

dx and dy from file        30000.000       30000.000
dx and dy from namelist    20000.000       20000.000

met文件的分辨率和namelist里面指定的不一致,检查后重头运行一次。不行的话,贴出两个namelist。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-9-17 16:01:49 | 显示全部楼层
longlivehj 发表于 2014-9-17 14:42
dx and dy from file        30000.000       30000.000
dx and dy from namelist    20000.000       2 ...

我把分辨率都改成20000后又运行一次,出现说是soil_levels的划分又是不对的,
---------------- ERROR -------------------
namelist    : num_metgrid_soil_levels =          4
input files : NUM_METGRID_SOIL_LEVELS =          2
而且还提到:
bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
--- NOTE: num_soil_layers has been set to      4
我找了半天也没找到" input files : NUM_METGRID_SOIL_LEVELS =          2" 在哪里
这个是终端输出:
yangjian@yangjian-To-be-filled-by-O-E-M:~/Build_WRF/WRFV3/test/em_real$ ./real.exe
--- WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
--- NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
--- NOTE: grid_fdda is 0 for domain      1, setting gfdda interval and ending time to 0 for that domain.
--- NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain      1, setting sgfdda interval and ending time to 0 for that domain.
--- NOTE: obs_nudge_opt is 0 for domain      1, setting obs nudging interval and ending time to 0 for that domain.
bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
--- NOTE: num_soil_layers has been set to      4

*************************************
Parent domain
ids,ide,jds,jde            1         290           1         190
ims,ime,jms,jme           -4         295          -4         195
ips,ipe,jps,jpe            1         290           1         190
*************************************
DYNAMICS OPTION: Eulerian Mass Coordinate
   alloc_space_field: domain            1 ,            2045239588  bytes allocated
Time period #   1 to process = 2000-01-24_12:00:00.
Time period #   2 to process = 2000-01-24_18:00:00.
Time period #   3 to process = 2000-01-25_00:00:00.
Total analysis times to input =    3.
  
-----------------------------------------------------------------------------
  
Domain  1: Current date being processed: 2000-01-24_12:00:00.0000, which is loop #   1 out of    3
configflags%julyr, %julday, %gmt:        2000          24   12.000000   
metgrid input_wrf.F first_date_input = 2000-01-24_12:00:00
metgrid input_wrf.F first_date_nml = 2000-01-24_12:00:00
---------------- ERROR -------------------
namelist    : num_metgrid_soil_levels =          4
input files : NUM_METGRID_SOIL_LEVELS =          2 (from met_em files).

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:     741
Mismatch between namelist and global attribute NUM_METGRID_SOIL_LEVELS
-------------------------------------------
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:     741
Mismatch between namelist and global attribute NUM_METGRID_SOIL_LEVELS
-------------------------------------------
yangjian@yangjian-To-be-filled-by-O-E-M:~/Build_WRF/WRFV3/test/em_real$
这个是在WPS里面的namelist.wps内容:
&share
wrf_core = 'ARW',
max_dom = 2,
start_date = '2000-01-24_12:00:00','2000-01-24_12:00:00',
end_date   = '2000-01-24_18:00:00','2000-01-24_12:00:00',
interval_seconds = 21600
io_form_geogrid = 2,
/

&geogrid
parent_id         =   1,   1,
parent_grid_ratio =   1,   3,
i_parent_start    =   1,  31,
j_parent_start    =   1,  17,
e_we              =  74, 112,
e_sn              =  61,  97,
geog_data_res     = '10m','2m',
dx = 20000,
dy = 20000,
map_proj = 'lambert',
ref_lat   =  34.83,
ref_lon   = -81.03,
truelat1  =  30.0,
truelat2  =  60.0,
stand_lon = -98.0,
geog_data_path = '/home/yangjian/Build_WRF/geog/'
/

&ungrib
out_format = 'WPS',
prefix = 'FILE',
/

&metgrid
fg_name = 'FILE'
io_form_metgrid = 2,
/
这个是在em_real下的namelist.input内容:
&time_control
run_days                            = 0,
run_hours                           = 12,
run_minutes                         = 0,
run_seconds                         = 0,
start_year                          = 2000, 2000, 2000,
start_month                         = 01,   01,   01,
start_day                           = 24,   24,   24,
start_hour                          = 12,   12,   12,
start_minute                        = 00,   00,   00,
start_second                        = 00,   00,   00,
end_year                            = 2000, 2000, 2000,
end_month                           = 01,   01,   01,
end_day                             = 25,   25,   25,
end_hour                            = 00,   00,   00,
end_minute                          = 00,   00,   00,
end_second                          = 00,   00,   00,
interval_seconds                    = 21600
input_from_file                     = .true.,.true.,.true.,
history_interval                    = 180,  60,   60,
frames_per_outfile                  = 1, 1, 1,
restart                             = .false.,
restart_interval                    = 5000,
io_form_history                     = 2
io_form_restart                     = 2
io_form_input                       = 2
io_form_boundary                    = 2
debug_level                         = 0
/

  &domains
time_step                           = 120,
time_step_fract_num                 = 0,
time_step_fract_den                 = 1,
max_dom                             = 1,
e_we                                = 290,   202,   94,
e_sn                                = 190,   202,    91,
e_vert                              = 40,    40,    28,
p_top_requested                     = 3000,
num_metgrid_levels                  = 27,
num_metgrid_soil_levels             = 4,
dx                                  = 20000, 6000,  3333.33,
dy                                  = 20000, 6000,  3333.33,
grid_id                             = 1,     2,     3,
parent_id                           = 0,     1,     2,
i_parent_start                      = 1,     46,    30,
j_parent_start                      = 1,     33,    30,
parent_grid_ratio                   = 1,     3,     3,
parent_time_step_ratio              = 1,     3,     3,
feedback                            = 1,
smooth_option                       = 0
hypsometric_opt                     = 2,
eta_levels                          = 1.00000 , 0.99269 , 0.98292 , 0.97018 , 0.95386 ,
                                       0.93376 , 0.90955 , 0.88093 , 0.84829 , 0.81202 ,
                                       0.77257 , 0.73044 , 0.68610 , 0.64010 , 0.59294 ,
                                       0.54514 , 0.49723 , 0.44967 , 0.40562 , 0.36486 ,
                                       0.32718 , 0.29241 , 0.26035 , 0.23083 , 0.20369 ,
                                       0.17878 , 0.15594 , 0.13505 , 0.11596 , 0.09855 ,
                                       0.08271 , 0.06833 , 0.05530 , 0.04353 , 0.03291 ,
                                       0.02336 , 0.01481 , 0.00716 , 0.00035 , 0.00000
/

&physics
mp_physics                          = 4,     4,     4,
ra_lw_physics                       = 1,     1,     1,
ra_sw_physics                       = 2,     2,     2,
radt                                = 20,    20,    20,
sf_sfclay_physics                   = 1,     1,     1,
sf_surface_physics                  = 2,     2,     2,
bl_pbl_physics                      = 1,     1,     1,
bldt                                = 0,     0,     0,
cu_physics                          = 1,     0,     0,
cudt                                = 5,     5,     5,
isfflx                              = 1,
ifsnow                              = 0,
icloud                              = 1,
surface_input_source                = 1,
num_soil_layers                     = 2,
sf_urban_physics                    = 0,
maxiens                             = 1,
maxens                              = 3,
maxens2                             = 3,
maxens3                             = 16,
ensdim                              = 144,
/

&dynamics
w_damping                           = 1,
diff_opt                            = 1,
km_opt                              = 4,
diff_6th_opt                        = 0,      0,      0,
diff_6th_factor                     = 0.12,   0.12,   0.12,
base_temp                           = 290.
damp_opt                            = 3,
zdamp                               = 5000.,  5000.,  5000.,
dampcoef                            = 0.2,    0.2,    0.2
khdif                               = 0,      0,      0,
kvdif                               = 0,      0,      0,
non_hydrostatic                     = .true., .true., .true.,
moist_adv_opt                       = 1,      1,      1,     
scalar_adv_opt                      = 1,      1,      1,     
/

&bdy_control
spec_bdy_width                      = 5,
spec_zone                           = 1,
relax_zone                          = 4,
specified                           = .true., .false.,.false.,
nested                              = .false., .true., .true.,
/

&namelist_quilt
nio_tasks_per_group = 0,
nio_groups = 1,
/
大哥,你看看这到底该改哪里?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-9-17 16:19:32 | 显示全部楼层
YJane 发表于 2014-9-17 16:01
我把分辨率都改成20000后又运行一次,出现说是soil_levels的划分又是不对的,
---------------- ERROR --- ...

楼主不是已经看到问题了么,在namelist里面把num_metgrid_soil_levels改成2呗!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-9-17 16:35:07 | 显示全部楼层
longlivehj 发表于 2014-9-17 16:19
楼主不是已经看到问题了么,在namelist里面把num_metgrid_soil_levels改成2呗!

是的是的,刚刚是我自己眼花了,没有找到num_metgrid_soil_levels 这一行,改了以后就能运行了.
太感谢你了,大神.
能运行了以后瞬间心情舒畅了好多.
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-9-17 16:44:22 | 显示全部楼层
YJane 发表于 2014-9-17 16:35
是的是的,刚刚是我自己眼花了,没有找到num_metgrid_soil_levels 这一行,改了以后就能运行了.
太感谢你了 ...

大神,我在运行wrf.exe后,终端最后出现下面的一些东西:   在em_real文件夹下生成了

wrfout_d01_2000-01-24_12:00:00  
wrfout_d01_2000-01-24_15:00:00
wrfout_d01_2000-01-24_18:00:00    三个文件.
但是并没有出现 SUCCESS 这能不能算是正确??

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:     894
  ... May have run out of valid boundary conditions in file wrfbdy_d01
-------------------------------------------
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:     894
  ... May have run out of valid boundary conditions in file wrfbdy_d01
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-9-19 14:23:08 | 显示全部楼层
这是边界文件不够,你的WPS的namelist.wps中的结束时间和em_real中的namelist.input的结束都不对应,一个是到18点,一个是到25日00点。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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