Skip to content

Commit

Permalink
Commit changes from debugging addition of chgresfcst on hera
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryMartin-NOAA committed Jun 10, 2020
1 parent fc3066c commit 201609b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
13 changes: 13 additions & 0 deletions jobs/rocoto/chgresfcst.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/ksh -x

###############################################################
# Source FV3GFS workflow modules
. $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

###############################################################
# Execute the JJOB
$HOMEgfs/jobs/JGLOBAL_CHGRESFCST
status=$?
exit $status
1 change: 0 additions & 1 deletion parm/config/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ elif [ $step = "chgresfcst" ]; then
export nth_chgresfcst=1
export npe_node_chgresfcst=$npe_node_max
if [[ "$machine" = "WCOSS_DELL_P3" ]]; then export npe_chgresfcst=24 ; fi
if [[ "$machine" == "WCOSS_C" ]]; then export memory_chgresfcst="3072M"; fi

elif [ $step = "arch" -o $step = "earc" -o $step = "getic" ]; then

Expand Down
23 changes: 16 additions & 7 deletions ush/rocoto/setup_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ def get_hyb_resources(dict_configs):

# These tasks can be run in either or both cycles
if lobsdiag_forenkf in ['.T.', '.TRUE.']:
tasks1 = ['eobs', 'ediag', 'eupd']
tasks1 = ['eobs', 'ediag', 'eupd', 'chgresfcst']
else:
tasks1 = ['eobs', 'eomg', 'eupd']
tasks1 = ['eobs', 'eomg', 'eupd', 'chgresfcst']

if eupd_cyc in ['BOTH']:
cdumps = ['gfs', 'gdas']
Expand Down Expand Up @@ -342,7 +342,7 @@ def get_hyb_resources(dict_configs):

# These tasks are always run as part of the GDAS cycle
cdump = 'gdas'
tasks2 = ['ecen', 'esfc', 'efcs', 'epos', 'earc', 'chgresfcst']
tasks2 = ['ecen', 'esfc', 'efcs', 'epos', 'earc']
for task in tasks2:

cfg = dict_configs[task]
Expand Down Expand Up @@ -473,7 +473,7 @@ def get_gdasgfs_tasks(dict_configs, cdump='gdas'):
deps.append(rocoto.add_dependency(dep_dict))
dep_dict = {'type': 'task', 'name': '%sanal' % cdump}
deps.append(rocoto.add_dependency(dep_dict))
if dohybvar in ['y', 'Y', 'yes', 'YES']:
if dohybvar in ['y', 'Y', 'yes', 'YES'] and cdump == 'gdas':
dep_dict = {'type': 'task', 'name': '%schgresfcst' % 'gdas', 'offset': '-06:00:00'}
deps.append(rocoto.add_dependency(dep_dict))
dependencies = rocoto.create_dependency(dep_condition='and', dep=deps)
Expand Down Expand Up @@ -866,10 +866,10 @@ def get_hyb_tasks(dict_configs, cycledef='enkf'):
deps1.append(rocoto.add_dependency(dep_dict))
dep_dict = {'type': 'metatask', 'name': '%sefmn' % cdump}
deps1.append(rocoto.add_dependency(dep_dict))
dependencies1 = rocoto.create_dependency(dep_condition='and', dep=deps2)
dependencies1 = rocoto.create_dependency(dep_condition='and', dep=deps1)
task = wfu.create_wf_task('chgresfcst', cdump=cdump, envar=envars1, dependency=dependencies1, cycledef=cycledef)

dict_tasks['%schgresfcst ' % cdump] = task
dict_tasks['%schgresfcst' % cdump] = task

# efmn, efcs
deps1 = []
Expand Down Expand Up @@ -1113,7 +1113,16 @@ def create_xml(dict_configs):
dict_hyb_tasks = get_hyb_tasks(dict_configs)

# Removes <memory>&MEMORY_JOB_DUMP</memory> post mortem from hyb tasks
hyp_tasks = {'gdaseobs':'gdaseobs', 'gdasediag':'gdasediag', 'gdaseomg':'gdaseomn', 'gdaseupd':'gdaseupd','gdasecen':'gdasecmn','gdasesfc':'gdasesfc','gdasefcs':'gdasefmn','gdasepos':'gdasepmn','gdasearc':'gdaseamn'}
hyp_tasks = {'gdaseobs':'gdaseobs',
'gdasediag':'gdasediag',
'gdaseomg':'gdaseomn',
'gdaseupd':'gdaseupd',
'gdasecen':'gdasecmn',
'gdasesfc':'gdasesfc',
'gdasefcs':'gdasefmn',
'gdasepos':'gdasepmn',
'gdasearc':'gdaseamn',
'gdaschgresfcst':'gdaschgresfcst'}
for each_task, each_resource_string in dict_hyb_resources.iteritems():
#print each_task,hyp_tasks[each_task]
#print dict_hyb_tasks[hyp_tasks[each_task]]
Expand Down

0 comments on commit 201609b

Please sign in to comment.