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

Fortran runtime error: Cannot match namelist object name 500

sudesokin

New member
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!
 
Hi,
Can you attach the full namelist.input file, as well as the full error log, and let me know which version of WRF you are using? Thanks!
 
Hi,
Of course, I installed WRF using the full installation example provided on the MMM UCAR forum (Full WRF and WPS Installation Example (GNU)), but I'm not sure which version I'm using.
I also added the files you requested.
Thank you!
 

Attachments

  • geogrid.log
    66 bytes · Views: 1
  • namelist.wps
    1.1 KB · Views: 2
  • namelist.input
    1.9 KB · Views: 2
Hi,
First, thanks for sending the correct namelist.wps file. I realize I asked for the namelist.input file, when I actually needed the WPS namelist - but you knew! Thanks!

I believe the issue is related to something being incorrect in the namelist.wps file, though I acknowledge the error message is confusing and not helpful. You have these 2 lines in your &domains section:

Code:
dx         = 1000, 500, 100,
dy         = 1000, 500, 100,

However, WPS only expects a single value for each of those, and then uses the parent_grid_ratio value to calculate the settings for nests. Try changing it to:

Code:
dx         = 1000
dy         = 1000

and let me know if that gets you past the error.
 
Thank you so much for your suggestion! Changing the dx and dy values as you recommended worked perfectly, and I was able to get past the error. I truly appreciate your help. 🙏
 
Top