爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 21049|回复: 13

运行wrf.exe出错Segmentation fault

[复制链接]
发表于 2016-6-29 20:20:38 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 hahahahaha 于 2016-6-29 21:45 编辑

--- 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.
--- NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
--- NOTE: RRTMG radiation is not used, setting:  o3input=0 to avoid data pre-processing
--- NOTE: num_soil_layers has been set to      4
WRF V3.7.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 ,             100335748  bytes allocated
  med_initialdata_input: calling input_input
Timing for processing wrfinput file (stream 0) for domain        1:    0.02130 elapsed seconds
INPUT LandUse = "USGS"
LANDUSE TYPE = "USGS" FOUND          33  CATEGORIES           2  SEASONS WATER CATEGORY =           16  SNOW CATEGORY =           24
INITIALIZE THREE Noah LSM RELATED TABLES
LANDUSE TYPE = USGS FOUND          27  CATEGORIES
INPUT SOIL TEXTURE CLASSIFICATION = STAS
SOIL TEXTURE CLASSIFICATION = STAS FOUND          19  CATEGORIES
Timing for Writing wrfout_d01_2015-11-01_00:00:00 for domain        1:    0.22020 elapsed seconds
Timing for processing lateral boundary for domain        1:    0.00539 elapsed seconds
Tile Strategy is not specified. Assuming 1D-Y
WRF TILE   1 IS      1 IE     74 JS      1 JE     61
WRF NUMBER OF TILES =   1
Timing for main: time 2015-11-01_00:03:00 on domain   1:    1.51776 elapsed seconds
d01 2015-11-01_00:03:00           10  points exceeded cfl=2 in domain d01 at time 2015-11-01_00:03:00 hours
d01 2015-11-01_00:03:00  MAX AT i,j,k:            2          59          11  vert_cfl,w,d(eta)=   2.92502069       10.0589533       4.82494235E-02
d01 2015-11-01_00:03:00          102  points exceeded cfl=2 in domain d01 at time 2015-11-01_00:03:00 hours
d01 2015-11-01_00:03:00  MAX AT i,j,k:            2          59          15  vert_cfl,w,d(eta)=   7.17869568      -31.2813606       6.18030988E-02
Timing for main: time 2015-11-01_00:06:00 on domain   1:    0.81175 elapsed seconds
d01 2015-11-01_00:06:00          111  points exceeded cfl=2 in domain d01 at time 2015-11-01_00:06:00 hours
d01 2015-11-01_00:06:00  MAX AT i,j,k:            2          59          14  vert_cfl,w,d(eta)=   5.28516293      -9.90630245       6.84354305E-02
d01 2015-11-01_00:06:00         2352  points exceeded cfl=2 in domain d01 at time 2015-11-01_00:06:00 hours
d01 2015-11-01_00:06:00  MAX AT i,j,k:            2          59          14  vert_cfl,w,d(eta)=   101.586960      -3002.43628       6.84354305E-02
d01 2015-11-01_00:06:00        10812  points exceeded cfl=2 in domain d01 at time 2015-11-01_00:06:00 hours
d01 2015-11-01_00:06:00  MAX AT i,j,k:           38          26           4  vert_cfl,w,d(eta)=   117638.547       288989.688       1.60000324E-02
Timing for main: time 2015-11-01_00:09:00 on domain   1:    0.77060 elapsed seconds

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7F34020FB777
#1  0x7F34020FBD7E
#2  0x7F3401837D3F
#3  0x259A83D in __module_sf_sfclayrev_MOD_psim_stable
#4  0x259EE41 in __module_sf_sfclayrev_MOD_sfclayrev1d
#5  0x25A37FD in __module_sf_sfclayrev_MOD_sfclayrev
#6  0x1D28F04 in __module_surface_driver_MOD_surface_driver
#7  0x1631B0B in __module_first_rk_step_part1_MOD_first_rk_step_part1
#8  0x1076876 in solve_em_
#9  0xF7C086 in solve_interface_
#10  0x466FE5 in __module_integrate_MOD_integrate
#11  0x404B73 in __module_wrf_top_MOD_wrf_run
Segmentation fault
密码修改失败请联系微信:mofangbao
发表于 2016-6-29 21:59:51 | 显示全部楼层
不一定是这个原因,但你这个time_step取得有点大,官网建议是取dx*6,但我一般取3倍,就是说你是3km的,取个9~18比较合适;
如果还不行,建议把p_top_requested= 5000放到10000,把e_vert= 30, 放到28试试看

评分

参与人数 1金钱 +20 收起 理由
hahahahaha + 20 很给力!

查看全部评分

密码修改失败请联系微信:mofangbao
回复 支持 2 反对 0

使用道具 举报

发表于 2016-6-30 07:38:30 | 显示全部楼层
{:5_235:}{:5_235:},我之前也遇到过这个情况
密码修改失败请联系微信:mofangbao
回复 支持 0 反对 1

使用道具 举报

发表于 2016-6-29 22:15:45 | 显示全部楼层
hahahahaha 发表于 2016-6-29 22:07
我试试看哈。主要是dx和dy设30000和18000都没有报错,然后设9000就开始报错了

除去你这次模拟的时间步长太大之外,这个和机器性能有些关系,首先第一层格距不要取太小,如果需要高精度分辨率模拟的话,可以采用多层嵌套来实现。

评分

参与人数 1金钱 +20 收起 理由
hahahahaha + 20 很给力!

查看全部评分

密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

 楼主| 发表于 2016-6-29 20:21:13 | 显示全部楼层
本帖最后由 hahahahaha 于 2016-6-29 21:45 编辑

namelist.wps 为:
&share
wrf_core = 'ARW',
max_dom = 2,
start_date = '2015-11-01_00:00:00','2015-11-01_00:00:00',
end_date   = '2015-11-01_06:00:00','2015-11-01_06: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 = 3000,
dy = 3000,

map_proj = 'lambert',
ref_lat   =  34.83,
ref_lon   = -81.03,
truelat1  =  30.0,
truelat2  =  60.0,
stand_lon = -98.0,
geog_data_path = '/usr/local/wrf/WPS/geog_complete/'
/

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

&metgrid
fg_name = 'FILE'
io_form_metgrid = 2,
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-6-29 20:22:37 | 显示全部楼层
本帖最后由 hahahahaha 于 2016-6-29 21:46 编辑

namelist.input为:
&time_control
run_days                            = 0,
run_hours                           = 06,
run_minutes                         = 0,
run_seconds                         = 0,
start_year                          = 2015, 2015, 2015,
start_month                         = 11,   11,   11,
start_day                           = 01,   01,   01,
start_hour                          = 00,   00,   00,
start_minute                        = 00,   00,   00,
start_second                        = 00,   00,   00,
end_year                            = 2015, 2015, 2015,
end_month                           = 11,   11,   11,
end_day                             = 01,   01,   01,
end_hour                            = 06,   06,   06,
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                                  = 3000, 1000,  333.33,
dy                                  = 3000, 1000,  333.33,

grid_id                             = 1,     2,     3,
parent_id                           = 0,     1,     2,
i_parent_start                      = 1,     31,    30,
cuit@ubuntu:/usr/local/wrf/WRFV3/test/em_real$ more namelist.input
&time_control
run_days                            = 0,
run_hours                           = 06,
run_minutes                         = 0,
run_seconds                         = 0,
start_year                          = 2015, 2015, 2015,
start_month                         = 11,   11,   11,
start_day                           = 01,   01,   01,
start_hour                          = 00,   00,   00,
start_minute                        = 00,   00,   00,
start_second                        = 00,   00,   00,
end_year                            = 2015, 2015, 2015,
end_month                           = 11,   11,   11,
end_day                             = 01,   01,   01,
end_hour                            = 06,   06,   06,
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                                  = 3000, 1000,  333.33,
dy                                  = 3000, 1000,  333.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
 楼主| 发表于 2016-6-29 22:07:56 | 显示全部楼层
pigzero527 发表于 2016-6-29 21:59
不一定是这个原因,但你这个time_step取得有点大,官网建议是取dx*6,但我一般取3倍,就是说你是3km的,取 ...

我试试看哈。主要是dx和dy设30000和18000都没有报错,然后设9000就开始报错了
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-6-29 22:19:21 | 显示全部楼层
pigzero527 发表于 2016-6-29 21:59
不一定是这个原因,但你这个time_step取得有点大,官网建议是取dx*6,但我一般取3倍,就是说你是3km的,取 ...

哈哈哈,成功了。果然是大神。看来我学WRF还任重道远。以后要多多请教了。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-6-29 22:21:58 | 显示全部楼层
Lighting 发表于 2016-6-29 22:15
除去你这次模拟的时间步长太大之外,这个和机器性能有些关系,首先第一层格距不要取太小,如果需要高精度 ...

嗯,顺便再请教一个问题,就是我用的是http://nomads.ncdc.noaa.gov/data/里面的gfsanl这个目录下的数据,也就是分析场,用这个和直接用gfs得出的结果会有不同吗?
密码修改失败请联系微信:mofangbao
发表于 2016-6-30 12:07:40 | 显示全部楼层
hahahahaha 发表于 2016-6-29 22:21
嗯,顺便再请教一个问题,就是我用的是http://nomads.ncdc.noaa.gov/data/里面的gfsanl这个目录下的数据 ...

这个不是很清楚,不同的初始场会有一些不同,你可以使用不同的初始场运行,然后对比一下结果,再和实际观测结果对比一下。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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