Real.exe Failure at Loop 100 with multi_bdy_files = .true.

jbellino

Member
Background and Problem Description

I have a model that I'm using to test strategies for reducing i/o time on a 50-year simulation at 4-km. One of the bottlenecks I'm targeting is the reading of boundary files (currently set to 3600 seconds for testing purposes, but will likely be 10,800 for the production run) which, for the 10-day test model, is about 15.5 GB, but will be closer to 300+ GB per restart-run for the full 50-year simulation.

To reduce i/o read times for the boundary file, I am testing the multi_bdy_files = .true. option in the &bdy_control section of the namelist file coupled with the bdy_inname = "wrfbdy_d<domain>_<date>" file-formatting option in the &time_control section. When I run real.exe, it behaves as normal until it begins loop 100 when it then fails with:

-----------------------------------------------------------------------------

Domain 1: Current date being processed: 2001-01-05_03:00:00.0000, which is loop # 99 out of 239
configflags%julyr, %julday, %gmt: 2001 5 3.00000000
d01 2001-01-05_03:00:00 Yes, this special data is acceptable to use: OUTPUT FROM METGRID V4.3.1
d01 2001-01-05_03:00:00 Input data is acceptable to use: met_em.d01.2001-01-05_03:00:00.nc

metgrid input_wrf.F first_date_input = 2001-01-05_03:00:00
metgrid input_wrf.F first_date_nml = 2001-01-01_01:00:00
d01 2001-01-05_03:00:00 Timing for input 1 s.
d01 2001-01-05_03:00:00 flag_soil_layers read from met_em file is 1

Missing surface RH, replaced with closest level, use_surface set to false.
Using sfcprs3 to compute psfc
d01 2001-01-05_03:00:00 No average surface temperature for use with inland lakes

Assume Noah LSM input
LAND CHANGE = 0
WATER CHANGE = 0
d01 2001-01-05_03:00:00 Timing for processing 0 s.

LBC valid between these times 2001-01-05_02:00:00 and 2001-01-05_03:00:00
d01 2001-01-05_03:00:00 Timing for output 2 s.
d01 2001-01-05_03:00:00 Timing for loop # 99 = 3 s.


-----------------------------------------------------------------------------

Domain 1: Current date being processed: 2001-01-05_04:00:00.0000, which is loop # 100 out of 239
configflags%julyr, %julday, %gmt: 2001 5 4.00000000
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: <stdin> LINE: 409
error opening met_em.d01.2001-01-05_04:00:00.nc for input; bad date in namelist or file not in directory
-------------------------------------------


There is nothing wrong with the metgrid file, I can run real.exe with multi_bdy_files = .false. with no problems. Diffing header info and looking at times with ncdump looks fine as well. Upon examination of the run directory, I can see that real.exe did not write out the previous boundary file (wrfbdy_d01_2001-01-05_03:00:00), which could either be because (1) it writes synchronously and actually had problems with writing the output boundary file which is the actual the root cause of the error, or (2) it writes asynchronously and didn't have time to write that file before the actual, and as of yet unknown, problem caused the processing to fail. Both of these scenarios are problematic since the rsl.out.000 file lists timing for output for the previous LBC as "d01 2001-01-05_03:00:00 Timing for output 2 s."

Attempted Solutions
  • Check metgrid file using ncdump, compare to neighbors, check size, etc.
  • Shift start time of simulation to see if it will still fail on the same metgrid file or loop 100 (it failed on loop 100 with a different metgrid file)
  • Erroneously took advice from Google AI search results and altered a hardcoded value within the construct_filename2 routine found in real_em.F which was thought to be capping the number of wrfbdy_d01_xx files to 99—it turns out the value controls the width of the domain numbers, i.e. d01 vs d00001 and not the width of the boundary file name suffix. These boundary file name suffixes were output with the date string formatting and not a sequential numbering so I should have known this was not the problem from the outset.
  • Tested with WRF v4.4.2, v4.5.2, and v4.8.0
Platform and Compile Options

The supercomputer I'm running the model on is new and I'm the only user on it at the moment. It consists of 45k AMD cores with 6 PB of Weka NVMe storage. WRF was compiled with:
  • netcdf-parallel 4.9.2
  • hdf5-parallel 1.14.6
  • WRFIO_NCD_LARGE_FILE_SUPPORT=1
  • NETCDF_classic=1
  • WRF_EM_CORE=1
  • Platform option 34 (dmpar: GNU (gfortran/gcc))
  • Default nesting option
  • Manually added option to CFLAG: -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=implicit-int
  • ulimit -s unlimited
  • ulimit -n is 131072 (default value)
 

Attachments

Last edited:
Hi, If you're still experiencing this issue, will you package all of the rsl.* files into a single *.tar or zipped file and attach that, as well? Thanks!
 
Back
Top