Skip to content

Commit

Permalink
Issue NOAA-EMC#85: add cfp option to chgresfcst; enable threads with …
Browse files Browse the repository at this point in the history
…chgresfcst
  • Loading branch information
RussTreadon-NOAA committed Jun 15, 2020
1 parent c330e60 commit 15d5bed
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
4 changes: 4 additions & 0 deletions env/WCOSS_DELL_P3.env
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ elif [ $step = "anal" ]; then
npe_gausfcanl=${npe_gausfcanl:-1}
export APRUN_GAUSFCANL="$launcher $npe_gausfcanl"

export NTHREADS_CHGRES=${nth_chgresfcst:-14}
[[ $NTHREADS_CHGRES -gt $npe_node_max ]] && export NTHREADS_CHGRES=$npe_node_max
export APRUN_CHGRES=""

if [ ${USE_CFP:-"NO"} = "YES" ]; then
export APRUNCFP="$launcher \$ncmd $mpmd"
fi
Expand Down
6 changes: 3 additions & 3 deletions parm/config/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ elif [ $step = "metp" ]; then
elif [ $step = "chgresfcst" ]; then

export wtime_chgresfcst="01:00:00"
export npe_chgresfcst=24
export npe_chgresfcst=3
export nth_chgresfcst=1
export npe_node_chgresfcst=$npe_node_max
if [[ "$machine" = "WCOSS_DELL_P3" ]]; then export npe_chgresfcst=24 ; fi
export npe_node_chgresfcst=1
if [[ "$machine" = "WCOSS_DELL_P3" ]]; then export nth_chgresfcst=28 ; fi

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

Expand Down
6 changes: 4 additions & 2 deletions sorc/enkf_chgres_recenter_nc.fd/setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ subroutine program_setup
implicit none

integer :: istat
character(len=500) :: filenamelist

namelist /chgres_setup/ i_output, j_output, input_file, output_file, &
terrain_file, vcoord_file, cld_amt

cld_amt = .false. ! default option

print*
print*,"OPEN SETUP NAMELIST."
open(43, file="./chgres_nc_gauss.nml", iostat=istat)
call getarg(1,filenamelist)
print*,"OPEN SETUP NAMELIST ",trim(filenamelist)
open(43, file=filenamelist, iostat=istat)
if (istat /= 0) then
print*,"FATAL ERROR OPENING NAMELIST FILE. ISTAT IS: ",istat
stop
Expand Down
24 changes: 12 additions & 12 deletions ush/rocoto/setup_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main():
#wav_steps_awips = ['waveawipssbs', 'waveawips']
# From gfsv16b latest
# gfs_steps = ['prep', 'anal', 'gldas', 'fcst', 'postsnd', 'post', 'awips', 'gempak', 'vrfy', 'metp', 'arch']
hyb_steps = ['eobs', 'ediag', 'eomg', 'eupd', 'ecen', 'esfc', 'efcs', 'epos', 'earc', 'chgresfcst']
hyb_steps = ['eobs', 'ediag', 'eomg', 'eupd', 'ecen', 'esfc', 'efcs', 'chgresfcst', 'epos', 'earc']

steps = gfs_steps + hyb_steps if _base.get('DOHYBVAR', 'NO') == 'YES' else gfs_steps
steps = steps + metp_steps if _base.get('DO_METP', 'NO') == 'YES' else steps
Expand Down Expand Up @@ -860,17 +860,6 @@ def get_hyb_tasks(dict_configs, cycledef='enkf'):

dict_tasks['%sesfc' % cdump] = task

# chgresfcst
deps1 = []
dep_dict = {'type': 'task', 'name': '%sfcst' % cdump}
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=deps1)
task = wfu.create_wf_task('chgresfcst', cdump=cdump, envar=envars1, dependency=dependencies1, cycledef=cycledef)

dict_tasks['%schgresfcst' % cdump] = task

# efmn, efcs
deps1 = []
dep_dict = {'type': 'metatask', 'name': '%secmn' % cdump}
Expand All @@ -891,6 +880,17 @@ def get_hyb_tasks(dict_configs, cycledef='enkf'):

dict_tasks['%sefmn' % cdump] = task

# chgresfcst
deps1 = []
dep_dict = {'type': 'task', 'name': '%sfcst' % cdump}
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=deps1)
task = wfu.create_wf_task('chgresfcst', cdump=cdump, envar=envars1, dependency=dependencies1, cycledef=cycledef)

dict_tasks['%schgresfcst' % cdump] = task

# epmn, epos
deps = []
dep_dict = {'type': 'metatask', 'name': '%sefmn' % cdump}
Expand Down

0 comments on commit 15d5bed

Please sign in to comment.