Hello everyone,
I'm encountering a persistent error when running WPS (specifically, the geogrid.exe step) for my WRF simulation. No matter what adjustments I make, I consistently receive the following error:
At line 141 of file gridinfo_module.f90 (unit = 10, file = 'namelist.wps')
Fortran runtime error: Cannot match namelist object name 500
What I've Tried So Far:
- I've manually removed any trailing commas in my array assignments (e.g., for dx, dy, i_parent_start, j_parent_start, e_we, and e_sn).
- I ran the command dos2unix namelist.wps to ensure that the file is in Unix format and to remove any Windows-style carriage return characters.
- I checked the file using cat -A namelist.wps and confirmed that my arrays still appear to have trailing commas (e.g., at the end of the dx and dy lines), which I then attempted to remove manually.
-I've reviewed all array assignments in the file to ensure that no extraneous commas are present after the final element.
My namelist.wps File (Current Version):
&share
wrf_core = 'ARW',
max_dom = 3,
start_date = '2024-05-07_00:00:00', '2024-05-07_00:00:00', '2024-05-07_00:00:00',
end_date = '2024-05-11_00:00:00', '2024-05-11_00:00:00', '2024-05-11_00:00:00',
interval_seconds = 3600,
io_form_geogrid = 2
/
&geogrid
parent_id = 1, 1, 2,
parent_grid_ratio = 1, 2, 5,
i_parent_start = 1, 31, 61,
j_parent_start = 1, 31, 61,
e_we = 100, 150, 300,
e_sn = 100, 150, 300,
geog_data_res = '10m',
dx = 1000, 500, 100,
dy = 1000, 500, 100,
map_proj = 'mercator',
ref_lat = 41.262,
ref_lon = 28.74,
truelat1 = 41.0,
truelat2 = 41.5,
stand_lon = 28.75,
geog_data_path = 'WPS_GEOG'
/
&ungrib
prefix = 'ERA5'
/
&metgrid
fg_name = 'ERA5'
/
I have verified that the file is in Unix format, yet I still get the error regarding "500" (which suggests that the Fortran parser is still encountering a trailing comma somewhere in an array).
Has anyone encountered this exact error ("Cannot match namelist object name 500") in a similar setup?
Are there any hidden characters or formatting issues I might be missing, even after using dos2unix?Could there be another part of the file or namelist syntax that I'm overlooking which might cause the Fortran parser to treat the value "500" as an unmatched object?
Any other suggestions or debugging tips to resolve this error?
I appreciate any help or suggestions on how to fix this persistent error.
Thanks in advance!
I'm encountering a persistent error when running WPS (specifically, the geogrid.exe step) for my WRF simulation. No matter what adjustments I make, I consistently receive the following error:
At line 141 of file gridinfo_module.f90 (unit = 10, file = 'namelist.wps')
Fortran runtime error: Cannot match namelist object name 500
What I've Tried So Far:
- I've manually removed any trailing commas in my array assignments (e.g., for dx, dy, i_parent_start, j_parent_start, e_we, and e_sn).
- I ran the command dos2unix namelist.wps to ensure that the file is in Unix format and to remove any Windows-style carriage return characters.
- I checked the file using cat -A namelist.wps and confirmed that my arrays still appear to have trailing commas (e.g., at the end of the dx and dy lines), which I then attempted to remove manually.
-I've reviewed all array assignments in the file to ensure that no extraneous commas are present after the final element.
My namelist.wps File (Current Version):
&share
wrf_core = 'ARW',
max_dom = 3,
start_date = '2024-05-07_00:00:00', '2024-05-07_00:00:00', '2024-05-07_00:00:00',
end_date = '2024-05-11_00:00:00', '2024-05-11_00:00:00', '2024-05-11_00:00:00',
interval_seconds = 3600,
io_form_geogrid = 2
/
&geogrid
parent_id = 1, 1, 2,
parent_grid_ratio = 1, 2, 5,
i_parent_start = 1, 31, 61,
j_parent_start = 1, 31, 61,
e_we = 100, 150, 300,
e_sn = 100, 150, 300,
geog_data_res = '10m',
dx = 1000, 500, 100,
dy = 1000, 500, 100,
map_proj = 'mercator',
ref_lat = 41.262,
ref_lon = 28.74,
truelat1 = 41.0,
truelat2 = 41.5,
stand_lon = 28.75,
geog_data_path = 'WPS_GEOG'
/
&ungrib
prefix = 'ERA5'
/
&metgrid
fg_name = 'ERA5'
/
I have verified that the file is in Unix format, yet I still get the error regarding "500" (which suggests that the Fortran parser is still encountering a trailing comma somewhere in an array).
Has anyone encountered this exact error ("Cannot match namelist object name 500") in a similar setup?
Are there any hidden characters or formatting issues I might be missing, even after using dos2unix?Could there be another part of the file or namelist syntax that I'm overlooking which might cause the Fortran parser to treat the value "500" as an unmatched object?
Any other suggestions or debugging tips to resolve this error?
I appreciate any help or suggestions on how to fix this persistent error.
Thanks in advance!