爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 2215|回复: 2

WRF运行 ./real.exe 出错

[复制链接]

新浪微博达人勋

发表于 2023-2-13 19:49:24 | 显示全部楼层 |阅读模式
15金钱
本帖最后由 OMGTaylor 于 2023-2-13 20:43 编辑

我初始的namelist.input为
  1. &time_control
  2. run_days                            = 0,
  3. run_hours                           = 54,
  4. run_minutes                         = 0,
  5. run_seconds                         = 0,

  6. start_year                          = 2020, 2020, 2020,
  7. start_month                         = 01,   01,   01,
  8. start_day                           = 22,   22,   22,
  9. start_hour                          = 18,   18,   18,
  10. start_minute                        = 00,   00,   00,
  11. start_second                        = 00,   00,   00,

  12. end_year                            = 2020, 2020, 2020,
  13. end_month                           = 01,   01,   01,
  14. end_day                             = 25,   25,   25,
  15. end_hour                            = 00,   00,   00,
  16. end_minute                          = 00,   00,   00,
  17. end_second                          = 00,   00,   00,

  18. interval_seconds                    = 10800
  19. input_from_file                     = .true.,.true.,.true.,
  20. adjust_output_times                 = .true.
  21. history_interval                    = 10, 10, 10,
  22. frames_per_outfile                  = 1000,  1000, 1000,
  23. restart                             = .false.,
  24. override_restart_timers             = .false.,
  25. restart_interval                    = 7200,
  26. io_form_history                     = 2
  27. io_form_restart                     = 2
  28. io_form_input                       = 2
  29. io_form_boundary                    = 2
  30. debug_level                         = 0
  31. auxinput4_inname = "wrflowinp_d<domain>",
  32. auxinput4_interval = 360,
  33. io_form_auxinput4 = 2,
  34. io_form_auxinput2 = 2,
  35. /

  36. &domains
  37. time_step                           = 10,
  38. time_step_fract_num                 = 0,
  39. time_step_fract_den                 = 1,
  40. max_dom                             = 3,
  41. e_we                                = 200,   201,   202,
  42. e_sn                                = 200,   201,   202,
  43. e_vert                              = 50,   50,   50,
  44. eta_levels(1:50)       = 1.000000, 0.998576, 0.997153, 0.995732, 0.994313, 0.992894,
  45.                        0.991477, 0.990062, 0.988647, 0.987234, 0.985822, 0.984412,
  46.                        0.983002, 0.981595, 0.980189, 0.978783, 0.977380, 0.975978,
  47.                        0.974578, 0.973178, 0.971779, 0.970104, 0.968095, 0.965688,
  48.                        0.962806, 0.959353, 0.955224, 0.950280, 0.944373, 0.937316,
  49.                        0.928952, 0.918858, 0.906902, 0.892697, 0.875845, 0.855911,
  50.                       0.832373, 0.804687, 0.772269, 0.734482, 0.690714, 0.640403,
  51.                       0.583078, 0.518512, 0.446775, 0.368441, 0.284751, 0.197744,
  52.                       0.110432, 0.000000,
  53. p_top_requested                     = 17000,
  54. num_metgrid_levels                  = 34,
  55. num_metgrid_soil_levels             = 4,
  56. dx                                  = 12000, 3000,  1000,
  57. dy                                  = 12000, 3000,  1000,
  58. grid_id                             = 1,     2,     3,
  59. parent_id                           = 1,     1,     2,
  60. i_parent_start                      = 1,     75,    75,
  61. j_parent_start                      = 1,     75,    65,
  62. parent_grid_ratio                   = 1,     4,     3,
  63. parent_time_step_ratio              = 1,     3,     3,
  64. feedback                            = 0,
  65. smooth_option                       = 0
  66. /

  67. &physics
  68. mp_physics                          = 28,    28,    28,
  69. ra_lw_physics                       = 1,     1,     1,  
  70. ra_sw_physics                       = 1,     1,     1,
  71. radt                                = 30,    30,    30,  
  72. sf_sfclay_physics                   = 1,     1,     1,
  73. sf_surface_physics                  = 2,     2,     2,
  74. bl_pbl_physics                      = 5,     5,     5,
  75. bl_mynn_tkebudget                   = 1,     1,     1,     
  76. bl_mynn_tkeadvect                   = .false.,.false.,.false.,
  77. windfarm_opt                        = 0,     0,     1,
  78. windfarm_ij                         = 0,      
  79. bldt                                = 0,     0,     0,
  80. cu_physics                          = 93,    93,    93,
  81. cudt                                = 0,     0,     0,
  82. icloud                              = 1,
  83. isfflx                              = 1,                  
  84. ifsnow                              = 1,
  85. surface_input_source                = 1,
  86. num_soil_layers                     = 4,
  87. num_land_cat                        = 21,
  88. sf_urban_physics                    = 0,     0,     0,
  89. fractional_seaice                   = 1,
  90. sst_update = 1,
  91. /

  92. &fdda
  93. /

  94. &dynamics
  95. w_damping                           = 0,
  96. diff_opt                            = 1,      1,      1,
  97. km_opt                              = 4,      4,      4,
  98. mix_isotropic                       = 0,      0,      0,
  99. m_opt                               = 0,      0,      0,
  100. diff_6th_opt                        = 0,      0,      0,
  101. diff_6th_factor                     = 0.12,   0.12,   0.12,
  102. base_temp                           = 290.
  103. damp_opt                            = 0,
  104. zdamp                               = 5000.,  5000.,  5000.,
  105. dampcoef                            = 0.2,    0.2,    0.2,
  106. khdif                               = 0,      0,      0,
  107. kvdif                               = 0,      0,      0,
  108. non_hydrostatic                     = .true., .true., .true.,
  109. moist_adv_opt                       = 1,      1,      1,
  110. scalar_adv_opt                      = 1,      1,      1,
  111. /

  112. &bdy_control
  113. spec_bdy_width                      = 5,
  114. spec_zone                           = 1,
  115. relax_zone                          = 4,
  116. nested                              = .false., .true., .true.,
  117. specified                           = .true., .false., .false.,
  118. /

  119. &grib2
  120. /

  121. &namelist_quilt
  122. nio_tasks_per_group                 = 0,
  123. nio_groups                          = 1,
  124. /
复制代码


第一次运行的时候就出错=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   EXIT CODE: 1
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES


使用tail 查看error messages提示
  1. -------------- FATAL CALLED ---------------
  2. FATAL CALLED FROM FILE:  <stdin>  LINE:    2546
  3. wif_input_opt=0 but mp_physics=28
  4. -------------------------------------------
  5. application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
复制代码
几番查找添加了wif_input_opt = 2(1),并在网站下载了QNWFA_QNIFA_SIGMA_MONTHLY.dat以后,重新metgrid,运行real仍然报错,错误信息显示

  1.   --- ERROR: Please set qna_update=1 and control through auxinput17 options
  2.   --- ERROR: Time-varying sfc aerosol emissions not set for mp_physics=28
  3.   --- ERROR: Please set qna_update=1 and control through auxinput17 options
  4.   --- ERROR: Time-varying sfc aerosol emissions not set for mp_physics=28
  5.   --- ERROR: Please set qna_update=1 and control through auxinput17 options
复制代码


经过查询不知道是我使用的WRF版本升到了4.4,于是我按照 https://github.com/wrf-model/WRF/blob/release-v4.5/run/README.namelist修改了部分内容,修改后的namelist.input如下:
  1. &time_control
  2. run_days                            = 0,
  3. run_hours                           = 54,
  4. run_minutes                         = 0,
  5. run_seconds                         = 0,
  6. start_year                          = 2020, 2020, 2020,
  7. start_month                         = 01,   01,   01,
  8. start_day                           = 22,   22,   22,
  9. start_hour                          = 18,   18,   18,
  10. end_year                            = 2020, 2020, 2020,
  11. end_month                           = 01,   01,   01,
  12. end_day                             = 25,   25,   25,
  13. end_hour                            = 00,   00,   00,
  14. interval_seconds                    = 10800
  15. input_from_file                     = .true.,.true.,.true.,
  16. adjust_output_times                 = .true.
  17. history_interval                    = 10, 10, 10,
  18. frames_per_outfile                  = 1000,  1000, 1000,
  19. restart                             = .false.,
  20. override_restart_timers             = .false.,
  21. restart_interval                    = 7200,
  22. io_form_history                     = 2
  23. io_form_restart                     = 2
  24. io_form_input                       = 2
  25. io_form_boundary                    = 2
  26. debug_level                         = 999
  27. auxinput4_inname = "wrflowinp_d<domain>",
  28. auxinput4_interval = 360,
  29. io_form_auxinput4 = 2,
  30. io_form_auxinput2 = 2,
  31. auxinput11_interval                 = 0,
  32. auxinput11_end_h                    = 0,

  33. /

  34. &domains
  35. time_step                           = 10,
  36. time_step_fract_num                 = 0,
  37. time_step_fract_den                 = 1,
  38. max_dom                             = 3,
  39. e_we                                = 200,   201,   202,
  40. e_sn                                = 200,   201,   202,
  41. e_vert                              = 50,   50,   50,
  42. eta_levels(1:50)       = 1.000000, 0.998576, 0.997153, 0.995732, 0.994313, 0.992894,
  43.                        0.991477, 0.990062, 0.988647, 0.987234, 0.985822, 0.984412,
  44.                        0.983002, 0.981595, 0.980189, 0.978783, 0.977380, 0.975978,
  45.                        0.974578, 0.973178, 0.971779, 0.970104, 0.968095, 0.965688,
  46.                        0.962806, 0.959353, 0.955224, 0.950280, 0.944373, 0.937316,
  47.                        0.928952, 0.918858, 0.906902, 0.892697, 0.875845, 0.855911,
  48.                       0.832373, 0.804687, 0.772269, 0.734482, 0.690714, 0.640403,
  49.                       0.583078, 0.518512, 0.446775, 0.368441, 0.284751, 0.197744,
  50.                       0.110432, 0.000000,
  51. p_top_requested                     = 17000,
  52. num_metgrid_levels                  = 34,
  53. num_metgrid_soil_levels             = 4,
  54. dx                                  = 12000, 3000,  1000,
  55. dy                                  = 12000, 3000,  1000,
  56. grid_id                             = 1,     2,     3,
  57. parent_id                           = 1,     1,     2,
  58. i_parent_start                      = 1,     75,    75,
  59. j_parent_start                      = 1,     75,    65,
  60. parent_grid_ratio                   = 1,     4,     3,
  61. parent_time_step_ratio              = 1,     3,     3,
  62. feedback                            = 0,
  63. smooth_option                       = 0,
  64. wif_input_opt                       = 1,
  65. num_wif_levels                      = 30,
  66. /

  67. &physics
  68. mp_physics                          = 28,    28,    28,
  69. use_aero_icbc                       = .true.
  70. cu_physics                          = 93,    93,    93,
  71. ra_lw_physics                       = 1,     1,     1,  
  72. ra_sw_physics                       = 1,     1,     1,  
  73. bl_pbl_physics                      = 5,     5,     5,
  74. bl_mynn_tkebudget                   = 1,     1,     1,     
  75. bl_mynn_tkeadvect                   = .false.,.false.,.false.,
  76. windfarm_opt                        = 0,     0,     1,
  77. windfarm_ij                         = 0,   
  78. sf_sfclay_physics                   = 1,     1,     1,
  79. sf_surface_physics                  = 2,     2,     2,  
  80. radt                                = 30,    30,    30,  
  81. bldt                                = 0,     0,     0,
  82. cudt                                = 0,     0,     0,
  83. icloud                              = 1,
  84. isfflx                              = 1,                  
  85. ifsnow                              = 1,
  86. surface_input_source                = 1,
  87. num_soil_layers                     = 4,
  88. num_land_cat                        = 21,
  89. sf_urban_physics                    = 0,     0,     0,
  90. sst_update                          = 1,
  91. qna_update                          = 1,
  92. mfshconv                            = 0,
  93. scalar_pblmix                       = 1,     1,     1,
  94. o3input                             = 0,
  95. /

  96. &fdda
  97. obs_nudge_opt                       = 0,      0,      0,
  98. grid_fdda                           = 0,      0,      0,
  99. grid_sfdda                          = 0,      0,      0,
  100. gfdda_interval_m                    = 0,      0,      0,
  101. gfdda_end_h                         = 0,      0,      0,

  102. sgfdda_interval_m                   = 0,      0,      0,
  103. sgfdda_end_h                        = 0,      0,      0,
  104. /

  105. &dynamics
  106. w_damping                           = 0,
  107. diff_opt                            = 1,      1,      1,
  108. km_opt                              = 4,      4,      4,
  109. mix_isotropic                       = 0,      0,      0,
  110. m_opt                               = 0,      0,      0,
  111. diff_6th_opt                        = 0,      0,      0,
  112. diff_6th_factor                     = 0.12,   0.12,   0.12,
  113. base_temp                           = 290.
  114. damp_opt                            = 0,
  115. zdamp                               = 5000.,  5000.,  5000.,
  116. dampcoef                            = 0.2,    0.2,    0.2,
  117. khdif                               = 0,      0,      0,
  118. kvdif                               = 0,      0,      0,
  119. non_hydrostatic                     = .true., .true., .true.,
  120. moist_adv_opt                       = 1,      1,      1,
  121. scalar_adv_opt                      = 1,      1,      1,
  122. /

  123. &bdy_control
  124. spec_bdy_width                      = 5,
  125. spec_zone                           = 1,
  126. relax_zone                          = 4,
  127. nested                              = .false., .true., .true.,
  128. specified                           = .true. .false., .false.,
  129. /

  130. &grib2
  131. /

  132. &namelist_quilt
  133. nio_tasks_per_group = 0,
  134. nio_groups = 1,
  135. /
复制代码
但仍然报错,error messages显示:
  1. --- NOTE: grid_fdda is 0 for domain      3, setting gfdda interval and ending time to 0 for that domain.
  2.   --- NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain      3, setting sgfdda interval and ending time to 0 for that domain.
  3.   --- NOTE: obs_nudge_opt is 0 for domain      3, setting obs nudging interval and ending time to 0 for that domain.
  4.   --- NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
  5.   --- NOTE: RRTMG radiation is not used, setting:  o3input=0 to avoid data pre-processing
  6. -------------- FATAL CALLED ---------------
  7. FATAL CALLED FROM FILE:  <stdin>  LINE:    2782
  8. NOTE:       3 namelist settings are wrong. Please check and reset these options
  9. -------------------------------------------
  10. application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
复制代码
我不知道应该再如何修改了,也是一个刚使用WRF的小白,希望能有经验丰富的前辈帮忙指导一下,如果可以的话请说详细一点,谢谢



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

新浪微博达人勋

发表于 2023-2-14 09:06:24 | 显示全部楼层
fdda部分如果不需要可以全部删除 不需要都设置成0
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2023-2-16 21:11:52 | 显示全部楼层
放逐之刃 发表于 2023-2-14 09:06
fdda部分如果不需要可以全部删除 不需要都设置成0

本来是全为0的,但是错误提示一步步引导我设置为0,我也有些迷惑了
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

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

本版积分规则

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

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

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