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

real.exe not generating wrfbdy_d01 file, causing wrf.exe to fail with error "error opening wrfbdy_d01 for reading. IERR = -1021"


New member
Hello, I am trying to run the WRF model following these steps. Everything is going to plan, until I go to run real.exe.
The tutorial states to run real.exe, and it should generate: a wrfbdy_d01 file, and wrfinput_d0* for each domain. After I run real.exe (with mpirun -np 2 ./real.exe) I see the below logs in the rsl.out.0000 file, and I get the two wrfinput files for my two domains, however, I do not get the wrfbdy_d01 file.
d02 2024-03-01_00:00:00 Timing for output          2 s.
d02 2024-03-01_00:00:00 Timing for loop #    1 =          5 s.
d01 2024-03-01_00:00:00 real_em: SUCCESS COMPLETE REAL_EM INIT

Therefore, when I run wrf.exe in the next step, it fails, and the below error is found in the rsl.error.0000 file:
Timing for Writing wrfout_d01_2024-03-01_00:00:00 for domain        1:   24.20236 elapsed seconds
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:    1841
 med_latbound_in: error opening wrfbdy_d01 for reading. IERR =        -1021
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

In my data/ folder I have three gfs gribfiles, gfs.t00z.pgrb2.0p25.f000 gfs.t00z.pgrb2.0p25.f003 gfs.t00z.pgrb2.0p25.f006. They are the 0h, 3h. and 6h forecast for a single datetime.
Attached are my namelist.wps and namelist.input files. I hope that it is just a silly type in one of those files causing the error.
Any help is appreciated, thanks!


  • namelist.input
    3.7 KB · Views: 0
  • namelist.wps
    705 bytes · Views: 2
I figured out the problem I was having. The three GFG gribfiles I was using all have the same initialization datetime (2024,03,01,00:00z) however, they are for the 0h, 3h, and 6h forecast respectfully. Therefore, I needed to modify the two namelist files to have an end hour of 06 instead of 00!