Air Quality Modeling - ufs-community/ufs-srweather-app GitHub Wiki
This page is for the main_aqm branch to support Air Quality Modeling (AQM) and Smoke and Dust (SD). This is available on Hera, Orion, and Hercules as of 10/31/2024.
Quick Start Guide
-
Clone the "main_aqm" branch of the authoritative repository:
git clone -b main_aqm https://github.com/ufs-community/ufs-srweather-app.git cd ufs-srweather-app/sorc -
Build the app:
- Air Quality Modeling (coupled):
./manage_externals/checkout_externals -e Externals_aqm.cfg ./app_build.sh -a=ATMAQ- Smoke and Dust (uncoupled):
./manage_externals/checkout_externals -e Externals_smoke_dust.cfg ./app_build.sh -
Set up the user-specific configuration:
cd ../parm cp config.[application].yaml config.yamlWhere
[application]isaqmfor air quality modeling, orsmoke_dustfor smoke/dust modeling.Modify the following parameters in
config.yamlfor user-specific environment as needed:user: MACHINE: [hera/orion/hercules/gaea-c6] ACCOUNT: [account name] # WARMSTART_CYCLE_DIR: '/path/to/warm/start/files' task_get_extrn_ics: EXTRN_MDL_SOURCE_BASEDIR_ICS: /path/to/file/for/hera # hera # EXTRN_MDL_SOURCE_BASEDIR_ICS: /path/to/file/for/orion/hercules # orion/hercules # EXTRN_MDL_SOURCE_BASEDIR_ICS: /path/to/file/for/gaea-c6 # gaea-c6 task_get_extrn_lbcs: EXTRN_MDL_SOURCE_BASEDIR_LBCS: /path/to/file/for/hera # hera # EXTRN_MDL_SOURCE_BASEDIR_LBCS: /path/to/file/for/orion/hercules # orion/hercules # EXTRN_MDL_SOURCE_BASEDIR_LBCS: /path/to/file/for/gaea-c6 # gaea-c6Set the following parameters in
config.yamlfor the automatic initial-submission and re-submission bycron:workflow: USE_CRON_TO_RELAUNCH: true CRON_RELAUNCH_INTVL_MNTS: 3This means that
cronwill submit the launch script every 3 minutes. Note that you should create your crontab with "crontab -e" first, if this is your first time usingcron. -
Load the Python environment for the workflow:
module purge (module reset for Gaea-C6) source ../versions/run.ver_[machine] module use ../modulefiles module load wflow_[machine]Where
[machine]ishera,orion,hercules, orgaea-c6. -
Generate the workflow:
./generate_FV3LAM_wflow.py -
Run the workflow only if
USE_CRON_TO_RELAUNCH: truewas not set inconfig.yaml(see Step 3 for the automatic resubmission by cron):cd ../../expt_dirs/[EXPT_SUBDIR] ./launch_FV3LAM_wflow.shRepeat this launch command until you have
SUCCESSorFAILUREon your terminal window.