Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

ERROR: "invalid parent id for domain 2"

palanci

New member
Hello everyone, im new to working with WRF. Ive previously only run a single domain d01 and had never set up a nested domain d02 before. Today I tried experimenting with a d02 setup, it wasn’t a serious run, just a test but I kept getting a “parent id” error. I’m not sure how to fix this. Could someone help me out?

Error:

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: <stdin> LINE: 5817

invalid parent id for domain 2
-------------------------------------------


Namelist.input:

&time_control
run_days = 0,
run_hours = 6,
run_minutes = 0,
run_seconds = 0,
start_year = 2025,
start_month = 11,
start_day = 13,
start_hour = 06,
start_minute = 00,
start_second = 00,
end_year = 2025,
end_month = 11,
end_day = 13,
end_hour = 12,
end_minute = 00,
end_second = 00,
interval_seconds = 10800,
input_from_file = .true.,
history_interval = 60, 60,
frames_per_outfile = 1000, 1000,
restart = .false.,
io_form_history = 2,
io_form_restart = 2,
io_form_input = 2,
io_form_boundary = 2,
/

&domains

time_step = 36,
parent_time_step_ratio = 1, 3,
max_dom = 2,
e_we = 100, 121,
e_sn = 100, 121,
e_vert = 40, 40,
dx = 6000, 2000,
dy = 6000, 2000,
p_top_requested = 5000, 5000,
num_metgrid_levels = 34,
num_metgrid_soil_levels = 4,
feedback = 1,
smooth_option = 0,


grid_id = 1, 2,
parent_id = 0, 1,
i_parent_start = 1, 25,
j_parent_start = 1, 25,
/

&physics

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

&fdda
/

&dynamics

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

&bdy_control

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

&grib2
/

&namelist_quilt

nio_tasks_per_group = 0,
nio_groups = 1,
/


---------------------------------------------
Namelist.wps

&share
wrf_core = 'ARW',
max_dom = 2,
start_date = '2025-11-13_06:00:00', '2025-11-13_06:00:00',
end_date = '2025-11-13_12:00:00', '2025-11-13_12:00:00',
interval_seconds = 10800,
io_form_geogrid = 2,
/

&geogrid

parent_id = 1, 1,
parent_grid_ratio = 1, 3,
i_parent_start = 1, 35,
j_parent_start = 1, 55,
e_we = 226, 136,
e_sn = 211, 136,
dx = 6000,
dy = 6000,

geog_data_res = 'default', 'default',
map_proj = 'lambert',
ref_lat = 40.00,
ref_lon = 35.00,
truelat1 = 38.0,
truelat2 = 42.0,
stand_lon = 35.00,
geog_data_path = 'geog'
/

&ungrib

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

&metgrid

fg_name = 'FILE',
io_form_metgrid = 2,
/
 
Last edited:
Can you set p_top_requested = 5000, then try again? Please let me know whether it works. Thanks.
Thank you. I tried what you suggested. I changed "5000, 5000," to "5000," but this time I got the following error:

------ ERROR while reading namelist physics ------
Maybe here?: isfflx = 1, 1,
Maybe here?: ifsnow = 1, 1,
------ ERROR while reading namelist dynamics ------
Maybe here?: w_damping = 0, 0,
Maybe here?: diff_opt = 1, 1,
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: <stdin> LINE: 11575
ERRORS while reading one or more namelists from namelist.input.
-------------------------------------------


In my namelist.input, the only thing I changed was the dates because I downloaded new GRIB files. After this error, I also tried changing "1, 1," to "1, 1" but I still got the error. Unfortunately, I just can’t get it to work. I’m new at this, so sorry for the trouble.
 
Top