Skip to content

Commit

Permalink
Add keys_gefs in exglobal_stage_ic.py
Browse files Browse the repository at this point in the history
If RUN=gefs add keys_gefs to keys.

Refs NOAA-EMC#2475
  • Loading branch information
KateFriedman-NOAA committed May 23, 2024
1 parent 859d31d commit a805fa8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions scripts/exglobal_stage_ic.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ def main():
stage = Stage(config)

#Pull out all the configuration keys needed to run stage job
keys = ['RUN','MODE','current_cycle','EXP_WARM_START','CDUMP','rCDUMP',
'ROTDIR','PARMgfs',
'ntiles',
keys = ['RUN','MODE','DO_WAVE','DO_OCN','DO_ICE','DO_NEST',
'current_cycle','EXP_WARM_START','CDUMP','rCDUMP',
'ROTDIR','PARMgfs','ntiles','MEMDIR',
'BASE_CPLIC','waveGRD','OCNRES',
#TODO: GEFS only#'USE_OCN_PERTURB_FILES',
#TODO: Need this#'CPL_MEDIC',
#TODO: Need this for mediator#'CPL_MEDIC',
'CPL_ATMIC','CPL_ICEIC','CPL_OCNIC','CPL_WAVIC']

keys_gefs = ['USE_OCN_PERTURB_FILES']

if stage.task_config['RUN'] == "gefs":
keys.extend(keys_gefs)

stage_dict = AttrDict()
for key in keys:
stage_dict[key] = stage.task_config[key]
Expand Down

0 comments on commit a805fa8

Please sign in to comment.