Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WCOSS2 run support and script/config updates #1030

Merged
merged 147 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from 144 commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
30c24e2
Update repository name for EMC_post component to UPP
KateFriedman-NOAA Sep 9, 2021
7645f4e
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Sep 9, 2021
138a988
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Sep 28, 2021
423229f
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Sep 29, 2021
b03279b
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Nov 9, 2021
373328c
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Nov 10, 2021
aae64e3
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Nov 16, 2021
62b2ceb
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Nov 30, 2021
105a73a
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Dec 15, 2021
af9bc2b
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Dec 27, 2021
8420074
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jan 4, 2022
ad41625
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jan 6, 2022
290c6b7
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jan 25, 2022
9d5be25
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Feb 3, 2022
fb4b83a
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Feb 9, 2022
6ac6541
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Feb 15, 2022
8e4666c
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Feb 22, 2022
9615bfc
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Mar 1, 2022
f52df6b
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Mar 22, 2022
9649079
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Mar 22, 2022
b9f14de
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Mar 28, 2022
b231f20
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Apr 7, 2022
bdb409a
Add WCOSS2 operational GFS defs files
KateFriedman-NOAA Apr 7, 2022
2c29fcc
Add 06, 12, and 18 WCOSS2 operational GFS defs
KateFriedman-NOAA Apr 7, 2022
1bf0429
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Apr 12, 2022
4eb1ad6
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Apr 12, 2022
f3f955c
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Apr 25, 2022
67ed777
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Apr 28, 2022
9905be0
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Apr 28, 2022
7ffbb24
Update checkout.sh to remove git submodule update for upp checkout (#…
lgannoaa May 3, 2022
1909d45
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA May 3, 2022
974ca18
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA May 3, 2022
d7ce2c8
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA May 12, 2022
6005526
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA May 13, 2022
7752abd
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA May 19, 2022
cd4f5c4
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA May 25, 2022
c6cb4bf
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jun 2, 2022
72a2861
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jun 6, 2022
6322ebb
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jun 7, 2022
0fa33df
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jun 14, 2022
0613e43
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jun 17, 2022
5fc1fd7
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jun 28, 2022
26dc4e5
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jul 5, 2022
71fb2d2
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jul 5, 2022
981755e
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jul 11, 2022
5041005
Move transfer files into new transfer folder
KateFriedman-NOAA Jul 19, 2022
d133ad8
Updated transfer list files from WCOSS2 ops
KateFriedman-NOAA Jul 19, 2022
a6b63d9
Add GFSv16.1 and GFSv16.2 release notes
KateFriedman-NOAA Jul 19, 2022
5b54d52
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Jul 19, 2022
c7d20de
WCOSS2 updates to gempak ush scripts
KateFriedman-NOAA Jul 20, 2022
2179e44
Removing older release notes
KateFriedman-NOAA Jul 20, 2022
b9bc730
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Jul 22, 2022
032767a
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Jul 26, 2022
1a1a1e3
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Jul 26, 2022
829459d
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Jul 28, 2022
2fd065c
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Jul 29, 2022
2c24858
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Aug 1, 2022
f675d40
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Aug 1, 2022
8af0a47
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Aug 3, 2022
9ce7ee6
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Aug 4, 2022
20d37e2
Add WCOSS2 to module-setup.sh.inc
KateFriedman-NOAA Aug 5, 2022
9c6a638
Add WCOSS2 to link_workflow.sh
KateFriedman-NOAA Aug 5, 2022
012ee4b
Add WCOSS2 and module reset to machine-setup.sh
KateFriedman-NOAA Aug 5, 2022
361ed89
Add WCOSS2 to load_fv3gfs_modules.sh
KateFriedman-NOAA Aug 5, 2022
6fe0457
Create LUA module_base for WCOSS2
KateFriedman-NOAA Aug 5, 2022
fd02351
Create LUA modulefile for WW3 on WCOSS2
KateFriedman-NOAA Aug 5, 2022
cbeb5f7
Create LUA modulefile for workflow_utils on WCOSS2
KateFriedman-NOAA Aug 5, 2022
2b20ea5
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Aug 15, 2022
037a62a
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Aug 15, 2022
83254fd
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Aug 22, 2022
73fca8c
Add WCOSS2 to module-setup.csh.inc
KateFriedman-NOAA Aug 22, 2022
a2c9f8f
Change WCOSS2 FIX_DIR to noscrub space
KateFriedman-NOAA Aug 23, 2022
1e15d22
Change WCOSS2 machine detection path
KateFriedman-NOAA Aug 23, 2022
38d1507
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Aug 26, 2022
8ce585e
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Aug 26, 2022
ccd154b
Revert module reset changes for R&D
KateFriedman-NOAA Aug 26, 2022
0aaac19
Update workflow PACKAGEROOT and create wcoss2 host
KateFriedman-NOAA Aug 26, 2022
ea6e0cb
Add preliminary copy of config.resources.nco.static
KateFriedman-NOAA Aug 26, 2022
eef756b
Add preliminary copy of WCOSS2.env
KateFriedman-NOAA Aug 26, 2022
3d1f42d
Update native tag in workflow_tasks.py
KateFriedman-NOAA Aug 26, 2022
75e29a6
Update config copies in link_workflow.sh
KateFriedman-NOAA Aug 26, 2022
7a23a10
Add para ncdiag module load to module_base.wcoss2.lua
KateFriedman-NOAA Aug 26, 2022
4b517b6
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Sep 6, 2022
c11966c
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Sep 6, 2022
6377a77
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Sep 8, 2022
dfcb331
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Sep 8, 2022
62207ac
Folder WCOSS2 port changes into util files
KateFriedman-NOAA Sep 8, 2022
5613c70
Folder ops WCOSS2 port changes into ush scripts
KateFriedman-NOAA Sep 8, 2022
ccbe232
Fold in ops WCOSS2 port changes into ex-scripts
KateFriedman-NOAA Sep 8, 2022
db67627
Add env file sourcing to wafsgcip rocoto job script
KateFriedman-NOAA Sep 8, 2022
8bd6b71
Update vrfy rocoto job script
KateFriedman-NOAA Sep 8, 2022
9cd4bf1
Update JOBSPROC_GLOBAL_PREP path in rocoto prep.sh
KateFriedman-NOAA Sep 8, 2022
05e89c7
Remote jlogfile reference in awips rocoto script
KateFriedman-NOAA Sep 8, 2022
18990b0
Update ocnpost rocoto job script
KateFriedman-NOAA Sep 8, 2022
3687078
Update gempak rocoto job script
KateFriedman-NOAA Sep 8, 2022
7a54338
Change NWROOT to PACKAGEROOT in EFSOI job scripts
KateFriedman-NOAA Sep 8, 2022
4b96287
Change NWROOT to PACKAGEROOT in ENKF job scripts
KateFriedman-NOAA Sep 8, 2022
019927a
WCOSS2 updates in wave job scripts
KateFriedman-NOAA Sep 8, 2022
af9d49d
WCOSS2 updates for GEMPAK job scripts
KateFriedman-NOAA Sep 8, 2022
85ec956
WCOSS2 updates for TROPCY_QC_RELOC JJOB script
KateFriedman-NOAA Sep 8, 2022
3168a43
WCOSS2 updates to GEMPAK_PGRB2_SPEC JJOB script
KateFriedman-NOAA Sep 8, 2022
d029110
General WCOSS2 updates to JJOB scripts
KateFriedman-NOAA Sep 8, 2022
0120e73
Update config.efcs to run serial netcdf everywhere
KateFriedman-NOAA Sep 8, 2022
bc6efd7
Whitespace cleanup in config.anal
KateFriedman-NOAA Sep 8, 2022
4477457
Add nth_echgres_gfs setting to config.analcalc
KateFriedman-NOAA Sep 8, 2022
0e00d22
Remove GEMPAKSH in config.gempak
KateFriedman-NOAA Sep 8, 2022
408022c
Fit2Obs, GSI monitoring, Tracker updates in config.vrfy
KateFriedman-NOAA Sep 8, 2022
8d133fe
WCOSS2 updates in config.base copies
KateFriedman-NOAA Sep 8, 2022
90fc792
Add GFS ops and WCOSS2 values into NCO config.fv3
KateFriedman-NOAA Sep 8, 2022
d2804b9
Updates to WCOSS2.env
KateFriedman-NOAA Sep 8, 2022
d73dc2c
Change temp ncdiag MODULEPATH to append in module_base
KateFriedman-NOAA Sep 8, 2022
f9be7d9
Correct PACKAGEROOT misspelling in config.base.emc.dyn
KateFriedman-NOAA Sep 8, 2022
c5ba224
Replace NWPROD with PACKAGEROOT in forecast_predet.sh
KateFriedman-NOAA Sep 8, 2022
290ebfa
Update WGRIB2 default in ush/scale_dec.sh
KateFriedman-NOAA Sep 8, 2022
7ed4145
Change WCOSS2.env from ksh to bash
KateFriedman-NOAA Sep 8, 2022
3ce6086
Update WGRIB2 default in ush scripts to use module
KateFriedman-NOAA Sep 8, 2022
cab60e9
Replace NWPROD with PACKAGEROOT or module paths
KateFriedman-NOAA Sep 8, 2022
6abdaa7
Update CFP settings for gldas job on WCOSS2
KateFriedman-NOAA Sep 14, 2022
f853574
Cleanup ush/global_extrkr.sh
KateFriedman-NOAA Sep 19, 2022
fefbb5a
Updates to ush/global_nceppost.sh
KateFriedman-NOAA Sep 19, 2022
04562aa
Revert DATA default value in some JJOBS
KateFriedman-NOAA Sep 21, 2022
d9e763f
Update COMINsyn setting in configs
KateFriedman-NOAA Sep 21, 2022
b6c1460
Add supported_resolutions to wcoss2.yaml host file
KateFriedman-NOAA Sep 21, 2022
312bd7f
Remove unused ush/global_extrkr.sh
KateFriedman-NOAA Sep 21, 2022
cd2543e
Add analcalc to Hera and Orion env files
KateFriedman-NOAA Sep 22, 2022
09db1e8
Merge branch 'feature/dev-wcoss2' of https://github.com/KateFriedman-…
KateFriedman-NOAA Sep 22, 2022
6c74ebe
Merge branch 'NOAA-EMC:develop' into feature/dev-wcoss2
KateFriedman-NOAA Sep 22, 2022
b218ce4
Merge branch 'NOAA-EMC:develop' into feature/dev-wcoss2
KateFriedman-NOAA Sep 22, 2022
9e57c99
Reverting Fit2Obs updates - will do separately
KateFriedman-NOAA Sep 22, 2022
90a930b
Update config.resources for analcalc
KateFriedman-NOAA Sep 26, 2022
c992555
Back out obsproc updates, do in separate PR
KateFriedman-NOAA Sep 27, 2022
3583444
Updates for COMINsyn in supported platforms
KateFriedman-NOAA Sep 27, 2022
1113598
Replace COMINsyn in config.base.emc.dyn with parsed value
KateFriedman-NOAA Sep 27, 2022
14b48cb
Change new config.resources.nco.static from ksh to bash
KateFriedman-NOAA Sep 27, 2022
aeb669a
Remove unneeded echos in GEMPAK JJOBS
KateFriedman-NOAA Sep 27, 2022
0d06385
Fix empty defaults in jobs/JGLOBAL_ATMOS_NCEPPOST
KateFriedman-NOAA Sep 27, 2022
c2d6b2b
Remove other unneeded echo announcements in GEMPAK JJOBS
KateFriedman-NOAA Sep 27, 2022
bfd9172
Revert FC change in webtitle makefile
KateFriedman-NOAA Sep 27, 2022
d6c1925
Merge branch 'NOAA-EMC:develop' into develop
KateFriedman-NOAA Sep 27, 2022
66e5c58
Merge branch 'develop' into feature/dev-wcoss2
KateFriedman-NOAA Sep 27, 2022
df63e75
Merge branch 'NOAA-EMC:develop' into feature/dev-wcoss2
KateFriedman-NOAA Sep 27, 2022
73c0fd6
Retire base_svn from wcoss2 hostfile
KateFriedman-NOAA Sep 27, 2022
62e2872
Merge branch 'feature/dev-wcoss2' of https://github.com/KateFriedman-…
KateFriedman-NOAA Sep 27, 2022
075c8d3
Backout prepobs module load addition
KateFriedman-NOAA Sep 28, 2022
7a10964
Merge branch 'NOAA-EMC:develop' into feature/dev-wcoss2
KateFriedman-NOAA Sep 28, 2022
b221092
Put prepobs module load back in module_base.wcoss2
KateFriedman-NOAA Sep 28, 2022
b1f19ed
Merge branch 'feature/dev-wcoss2' of https://github.com/KateFriedman-…
KateFriedman-NOAA Sep 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion env/HERA.env
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ elif [ $step = "aeroanlrun" ]; then
[[ $NTHREADS_AEROANL -gt $nth_max ]] && export NTHREADS_AEROANL=$nth_max
export APRUN_AEROANL="$launcher -n $npe_aeroanlrun"

elif [ $step = "anal" ]; then
elif [ $step = "anal" -o $step = "analcalc" ]; then

export MKL_NUM_THREADS=4
export MKL_CBWR=AUTO
Expand Down
2 changes: 1 addition & 1 deletion env/ORION.env
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ elif [ $step = "aeroanlrun" ]; then
[[ $NTHREADS_AEROANL -gt $nth_max ]] && export NTHREADS_AEROANL=$nth_max
export APRUN_AEROANL="$launcher -n $npe_aeroanlrun"

elif [ $step = "anal" ]; then
elif [ $step = "anal" -o $step = "analcalc" ]; then

export MKL_NUM_THREADS=4
export MKL_CBWR=AUTO
Expand Down
319 changes: 319 additions & 0 deletions env/WCOSS2.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
#! /usr/bin/env bash

if [ $# -ne 1 ]; then

echo "Must specify an input argument to set runtime environment variables!"
echo "argument can be any one of the following:"
echo "atmanalrun atmensanalrun"
echo "aeroanlrun"
echo "anal sfcanl fcst post vrfy metp"
echo "eobs eupd ecen esfc efcs epos"
echo "postsnd awips gempak"
exit 1

fi

step=$1

# WCOSS2 information
export launcher="mpiexec -l"
export mpmd="--cpu-bind verbose,core cfp"

export npe_node_max=128

export job=${PBS_JOBNAME:-$step}
export jobid=${job}.${PBS_JOBID:-$$}

if [ $step = "prep" -o $step = "prepbufr" ]; then

nth_max=$(($npe_node_max / $npe_node_prep))

export POE=${POE:-"YES"}
export BACK=${BACK:-"off"}
export sys_tp="wcoss2"
export launcher_PREP="mpiexec"

elif [ $step = "waveinit" -o $step = "waveprep" -o $step = "wavepostsbs" -o $step = "wavepostbndpnt" -o $step = "wavepostbndpntbll" -o $step = "wavepostpnt" ]; then

if [ $step = "waveprep" -a $CDUMP = "gfs" ]; then NTASKS=$NTASKS_gfs ; fi
export wavempexec="$launcher -np"
export wave_mpmd=${mpmd}

elif [ $step = "atmanalrun" ]; then

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -np \$ncmd $mpmd"

nth_max=$(($npe_node_max / $npe_node_atmanalrun))

export NTHREADS_ATMANAL=${nth_atmanalrun:-$nth_max}
[[ $NTHREADS_ATMANAL -gt $nth_max ]] && export NTHREADS_ATMANAL=$nth_max
export APRUN_ATMANAL="$launcher -n $npe_atmanalrun"

elif [ $step = "atmensanalrun" ]; then

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -np \$ncmd $mpmd"

nth_max=$(($npe_node_max / $npe_node_atmensanalrun))

export NTHREADS_ATMENSANAL=${nth_atmensanalrun:-$nth_max}
[[ $NTHREADS_ATMENSANAL -gt $nth_max ]] && export NTHREADS_ATMENSANAL=$nth_max
export APRUN_ATMENSANAL="$launcher -n $npe_atmensanalrun"

elif [ $step = "aeroanlrun" ]; then

export APRUNCFP="$launcher -np \$ncmd $mpmd"

nth_max=$(($npe_node_max / $npe_node_aeroanlrun))

export NTHREADS_AEROANL=${nth_aeroanlrun:-$nth_max}
[[ $NTHREADS_AEROANL -gt $nth_max ]] && export NTHREADS_AEROANL=$nth_max
export APRUN_AEROANL="$launcher -n $npe_aeroanlrun"

elif [ $step = "anal" -o $step = "analcalc" ]; then

export OMP_PLACES=cores
export OMP_STACKSIZE=1G
export FI_OFI_RXM_SAR_LIMIT=3145728

if [ $step = "analcalc" ]; then
export MPICH_MPIIO_HINTS="*:romio_cb_write=disable"
fi

nth_max=$(($npe_node_max / $npe_node_anal))

export NTHREADS_GSI=${nth_anal:-$nth_max}
[[ $NTHREADS_GSI -gt $nth_max ]] && export NTHREADS_GSI=$nth_max
export APRUN_GSI="$launcher -n ${npe_gsi:-$npe_anal} -ppn $npe_node_anal --cpu-bind depth --depth $NTHREADS_GSI"

export NTHREADS_CALCINC=${nth_calcinc:-1}
[[ $NTHREADS_CALCINC -gt $nth_max ]] && export NTHREADS_CALCINC=$nth_max
export APRUN_CALCINC="$launcher \$ncmd"

export NTHREADS_CYCLE=${nth_cycle:-14}
[[ $NTHREADS_CYCLE -gt $npe_node_max ]] && export NTHREADS_CYCLE=$npe_node_max
npe_cycle=${ntiles:-6}
export APRUN_CYCLE="$launcher -n $npe_cycle -ppn $npe_node_cycle --cpu-bind depth --depth $NTHREADS_CYCLE"

export NTHREADS_GAUSFCANL=1
npe_gausfcanl=${npe_gausfcanl:-1}
export APRUN_GAUSFCANL="$launcher -n $npe_gausfcanl"

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

export CFP_MP=${CFP_MP:-"NO"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -np \$ncmd $mpmd"

elif [ $step = "sfcanl" ]; then

nth_max=$(($npe_node_max / $npe_node_sfcanl))

export NTHREADS_CYCLE=${nth_sfcanl:-14}
[[ $NTHREADS_CYCLE -gt $npe_node_max ]] && export NTHREADS_CYCLE=$npe_node_max
npe_sfcanl=${ntiles:-6}
export APRUN_CYCLE="$launcher -n $npe_sfcanl"

elif [ $step = "gldas" ]; then

export USE_CFP="YES"
export CFP_MP="NO"

nth_max=$(($npe_node_max / $npe_node_gldas))

export NTHREADS_GLDAS=${nth_gldas:-$nth_max}
[[ $NTHREADS_GLDAS -gt $nth_max ]] && export NTHREADS_GLDAS=$nth_max
export APRUN_GLDAS="$launcher -n $npe_gldas -ppn $npe_node_gldas --cpu-bind depth --depth $NTHREADS_GLDAS"

export NTHREADS_GAUSSIAN=${nth_gaussian:-1}
[[ $NTHREADS_GAUSSIAN -gt $nth_max ]] && export NTHREADS_GAUSSIAN=$nth_max
export APRUN_GAUSSIAN="$launcher -n $npe_gaussian -ppn $npe_node_gaussian --cpu-bind depth --depth $NTHREADS_GAUSSIAN"

# Must run data processing with exactly the number of tasks as time
# periods being processed.
export USE_CFP=${USE_CFP:-"YES"}
npe_gldas_data_proc=$(($gldas_spinup_hours + 12))
export APRUN_GLDAS_DATA_PROC="$launcher -np $npe_gldas_data_proc $mpmd"

elif [ $step = "eobs" ]; then

export OMP_PLACES=cores
export OMP_STACKSIZE=1G
export FI_OFI_RXM_SAR_LIMIT=3145728

nth_max=$(($npe_node_max / $npe_node_eobs))

export NTHREADS_GSI=${nth_eobs:-$nth_max}
[[ $NTHREADS_GSI -gt $nth_max ]] && export NTHREADS_GSI=$nth_max
export APRUN_GSI="$launcher -n ${npe_gsi:-$npe_eobs} -ppn $npe_node_eobs --cpu-bind depth --depth $NTHREADS_GSI"

export CFP_MP=${CFP_MP:-"NO"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -np \$ncmd $mpmd"

elif [ $step = "eupd" ]; then

export OMP_PLACES=cores
export OMP_STACKSIZE=2G
export MPICH_COLL_OPT_OFF=1
export FI_OFI_RXM_SAR_LIMIT=3145728

nth_max=$(($npe_node_max / $npe_node_eupd))

export NTHREADS_ENKF=${nth_eupd:-$nth_max}
[[ $NTHREADS_ENKF -gt $nth_max ]] && export NTHREADS_ENKF=$nth_max
export APRUN_ENKF="$launcher -n ${npe_enkf:-$npe_eupd} -ppn $npe_node_eupd --cpu-bind depth --depth $NTHREADS_ENKF"

export CFP_MP=${CFP_MP:-"NO"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -np \$ncmd $mpmd"

elif [ $step = "fcst" ]; then

export OMP_PLACES=cores
export OMP_STACKSIZE=2048M
export FI_OFI_RXM_RX_SIZE=40000
export FI_OFI_RXM_TX_SIZE=40000

#PEs and PEs/node can differ for GFS and GDAS forecasts if threading differs
if [[ $CDUMP == "gfs" ]]; then
npe_fcst=$npe_fcst_gfs
npe_node_fcst=$npe_node_fcst_gfs
nth_fv3=$nth_fv3_gfs
fi

nth_max=$(($npe_node_max / $npe_node_fcst))

export NTHREADS_FV3=${nth_fv3:-$nth_max}
[[ $NTHREADS_FV3 -gt $nth_max ]] && export NTHREADS_FV3=$nth_max
export cores_per_node=$npe_node_max
export APRUN_FV3="$launcher -n $npe_fcst -ppn $npe_node_fcst --cpu-bind depth --depth $NTHREADS_FV3"

export NTHREADS_REGRID_NEMSIO=${nth_regrid_nemsio:-1}
[[ $NTHREADS_REGRID_NEMSIO -gt $nth_max ]] && export NTHREADS_REGRID_NEMSIO=$nth_max
export APRUN_REGRID_NEMSIO="$launcher -n $LEVS"

export NTHREADS_REMAP=${nth_remap:-2}
[[ $NTHREADS_REMAP -gt $nth_max ]] && export NTHREADS_REMAP=$nth_max
export APRUN_REMAP="$launcher -n ${npe_remap:-$npe_fcst}"
export I_MPI_DAPL_UD="enable"

elif [ $step = "efcs" ]; then

export MPICH_MPIIO_HINTS="*:romio_cb_write=disable"
export FI_OFI_RXM_SAR_LIMIT=3145728
export FI_OFI_RXM_RX_SIZE=40000
export FI_OFI_RXM_TX_SIZE=40000

nth_max=$(($npe_node_max / $npe_node_efcs))

export NTHREADS_FV3=${nth_efcs:-$nth_max}
[[ $NTHREADS_FV3 -gt $nth_max ]] && export NTHREADS_FV3=$nth_max
export cores_per_node=$npe_node_max
export APRUN_FV3="$launcher -n ${npe_fv3:-$npe_efcs} -ppn $npe_node_efcs --cpu-bind depth --depth $NTHREADS_FV3"

export NTHREADS_REGRID_NEMSIO=${nth_regrid_nemsio:-1}
[[ $NTHREADS_REGRID_NEMSIO -gt $nth_max ]] && export NTHREADS_REGRID_NEMSIO=$nth_max
export APRUN_REGRID_NEMSIO="$launcher -n $LEVS"

elif [ $step = "post" ]; then

nth_max=$(($npe_node_max / $npe_node_post))

export NTHREADS_NP=${nth_np:-1}
[[ $NTHREADS_NP -gt $nth_max ]] && export NTHREADS_NP=$nth_max
export APRUN_NP="$launcher -n ${npe_np:-$npe_post} -ppn $npe_node_post --cpu-bind depth --depth $NTHREADS_NP"

export NTHREADS_DWN=${nth_dwn:-1}
[[ $NTHREADS_DWN -gt $nth_max ]] && export NTHREADS_DWN=$nth_max
export APRUN_DWN="$launcher -np $npe_dwn $mpmd"

elif [ $step = "ecen" ]; then

nth_max=$(($npe_node_max / $npe_node_ecen))

export NTHREADS_ECEN=${nth_ecen:-$nth_max}
[[ $NTHREADS_ECEN -gt $nth_max ]] && export NTHREADS_ECEN=$nth_max
export APRUN_ECEN="$launcher -n $npe_ecen -ppn $npe_node_ecen --cpu-bind depth --depth $NTHREADS_ECEN"

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

export NTHREADS_CALCINC=${nth_calcinc:-1}
[[ $NTHREADS_CALCINC -gt $nth_max ]] && export NTHREADS_CALCINC=$nth_max
export APRUN_CALCINC="$launcher -n $npe_ecen"

export NTHREADS_CYCLE=${nth_cycle:-14}
[[ $NTHREADS_CYCLE -gt $npe_node_max ]] && export NTHREADS_CYCLE=$npe_node_max
export APRUN_CYCLE="$launcher -n $npe_ecen -ppn $npe_node_cycle --cpu-bind depth --depth $NTHREADS_CYCLE"

elif [ $step = "esfc" ]; then

nth_max=$(($npe_node_max / $npe_node_esfc))

export NTHREADS_ESFC=${nth_esfc:-$nth_max}
[[ $NTHREADS_ESFC -gt $nth_max ]] && export NTHREADS_ESFC=$nth_max
export APRUN_ESFC="$launcher -n $npe_esfc -ppn $npe_node_esfc --cpu-bind depth --depth $NTHREADS_ESFC"

export NTHREADS_CYCLE=${nth_cycle:-14}
[[ $NTHREADS_CYCLE -gt $npe_node_max ]] && export NTHREADS_CYCLE=$npe_node_max
export APRUN_CYCLE="$launcher -n $npe_esfc -ppn $npe_node_cycle --cpu-bind depth --depth $NTHREADS_CYCLE"

elif [ $step = "epos" ]; then

nth_max=$(($npe_node_max / $npe_node_epos))

export NTHREADS_EPOS=${nth_epos:-$nth_max}
[[ $NTHREADS_EPOS -gt $nth_max ]] && export NTHREADS_EPOS=$nth_max
export APRUN_EPOS="$launcher -n $npe_epos -ppn $npe_node_epos --cpu-bind depth --depth $NTHREADS_EPOS"

elif [ $step = "init" ]; then

export APRUN="$launcher"

elif [ $step = "postsnd" ]; then

export MPICH_MPIIO_HINTS_DISPLAY=1
export OMP_NUM_THREADS=1

nth_max=$(($npe_node_max / $npe_node_postsnd))

export NTHREADS_POSTSND=${nth_postsnd:-1}
[[ $NTHREADS_POSTSND -gt $nth_max ]] && export NTHREADS_POSTSND=$nth_max
export APRUN_POSTSND="$launcher -n $npe_postsnd --depth=$NTHREADS_POSTSND --cpu-bind depth"

export NTHREADS_POSTSNDCFP=${nth_postsndcfp:-1}
[[ $NTHREADS_POSTSNDCFP -gt $nth_max ]] && export NTHREADS_POSTSNDCFP=$nth_max
export APRUN_POSTSNDCFP="$launcher -np $npe_postsndcfp $mpmd"

elif [ $step = "awips" ]; then

nth_max=$(($npe_node_max / $npe_node_awips))

export NTHREADS_AWIPS=${nth_awips:-2}
[[ $NTHREADS_AWIPS -gt $nth_max ]] && export NTHREADS_AWIPS=$nth_max
export APRUN_AWIPSCFP="$launcher -np $npe_awips $mpmd"

elif [ $step = "gempak" ]; then

nth_max=$(($npe_node_max / $npe_node_gempak))

export NTHREADS_GEMPAK=${nth_gempak:-1}
[[ $NTHREADS_GEMPAK -gt $nth_max ]] && export NTHREADS_GEMPAK=$nth_max
export APRUN_GEMPAKCFP="$launcher -np $npe_gempak $mpmd"

elif [ $step = "waveawipsbulls" ]; then

unset PERL5LIB

elif [ $step = "wafsgrib2" -o $step = "wafsgrib20p25" ]; then

export USE_CFP=${USE_CFP:-"YES"}

fi
2 changes: 1 addition & 1 deletion jobs/JGDAS_ATMOS_ANALYSIS_DIAG
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export RUN_ENVIR=${RUN_ENVIR:-"nco"}
#############################
export EXPDIR=${EXPDIR:-$HOMEgfs/parm/config}
configs="base anal analdiag"
config_path=${EXPDIR:-$NWROOT/gfs.${gfs_ver}/parm/config}
config_path=${EXPDIR:-$PACKAGEROOT/gfs.${gfs_ver}/parm/config}
for config in $configs; do
. $config_path/config.$config
status=$?
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGDAS_ATMOS_CHGRES_FORENKF
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export RUN_ENVIR=${RUN_ENVIR:-"nco"}
#############################
export EXPDIR=${EXPDIR:-$HOMEgfs/parm/config}
configs="base anal echgres"
config_path=${EXPDIR:-$NWROOT/gfs.${gfs_ver}/parm/config}
config_path=${EXPDIR:-$PACKAGEROOT/gfs.${gfs_ver}/parm/config}
for config in $configs; do
. $config_path/config.$config
status=$?
Expand Down
Loading