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

Automatic resubmission for a long-term WRF simulation

jsexton

New member
Greetings friends. I have been running a series of long-term WRF simulations (40 years) with some topographic adjustments. I have tested the most extreme versions of my topographic adjustments to ensure that they don't cause the model to blow up and am now working on intermediate topographic adjustments (intermediate between the extreme test cases and standard control topography). My basic workflow is functional but has a few areas of inefficiency that I would like to resolve given the large number of simulations we still plan to run. The basic structure is this:
  • On derecho, set up a WRF and WPS directory structure that can access my adjusted topographic boundary conditions.
  • Set up namelist.wps to run for the first 10 years of my simulation (i.e. 1980-01-01 to 1990-01-01).
  • Run geogrid.exe
  • link existing set of FILE:* inputs since all simulations have the same external forcing (this bypasses the ungrib step)
  • run metgrid & link the resulting met_em* files to the WRF subdirectory
  • Ensure that the WRF namelist.input is set up for the same 10 year time series
  • Run real, creating the wrfbdy, wrfinput, and wrflowinp files
  • Run wrf
At this point there seems to be a path toward reducing inefficiency. On derecho, I can only submit jobs that are (I believe) going to run for at most 12 hours. With the current size of my domain this means the model can simulate a little over one year of the 10 year simulation. When I receive a notification that the job has been terminated, I log back into derecho, update the namelist to start from the most recent wrfrst file created and resubmit. I have been trying to find a way to have the simulation automatically re-enter the queue if it runs out of time but have as of yet been unsuccessful.
I am unsure if this is a WRF knowledge question (i.e. if there is a setting in WRF that will allow it to do this automatically) or if this is a script-writing question (i.e. if someone knows how to write a script or set of scripts that can handle this sort of automatic resubmission).
I would appreciate any insight.
 
Top