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

Port the global workflow to Jet #1301

Merged
merged 90 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from 78 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
06666e5
Initial port to Jet. (#357)
DavidHuber-NOAA Sep 15, 2021
b08f11a
Update resources for Jet. #357
DavidHuber-NOAA Oct 15, 2021
1fac198
Added a WW3 modulefile for Jet. #357
DavidHuber-NOAA Oct 15, 2021
a871158
Updated checkout.sh for the Jet port. #357
DavidHuber-NOAA Oct 15, 2021
03fbeb1
Removed debug "set -x" from checkout.sh
DavidHuber-NOAA Oct 18, 2021
5f92e1b
Updated Externals.cfg for Jet port.
DavidHuber-NOAA Oct 18, 2021
0072da5
Cleaned up Jet port. (#357)
DavidHuber-NOAA Oct 18, 2021
c03c96d
Update module load order for Jet (#357 #479)
DavidHuber-NOAA Dec 2, 2021
e122d83
Added Fit2Obs and TC_Tracker locations for Jet (#357)
DavidHuber-NOAA Dec 2, 2021
4499955
Corrected resources for analysis jobs on jet. (#357)
DavidHuber-NOAA Dec 3, 2021
2d31835
New location for SYNDAT data on Jet. #357
DavidHuber-NOAA Dec 14, 2021
16b80c4
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Jan 11, 2022
4d442e3
Updated the Jet port with the coupled changes. (#357)
DavidHuber-NOAA Jan 11, 2022
d38fff5
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Oct 19, 2022
da41a15
Updated Jet module files #357
DavidHuber-NOAA Oct 19, 2022
3205f8c
Fixed Jet WW3 module file. #357
DavidHuber-NOAA Oct 19, 2022
1ccdc0c
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Jan 4, 2023
f4cef94
Updated Jet module file. #357
DavidHuber-NOAA Jan 23, 2023
0c14584
Add host file for Jet. #357
DavidHuber-NOAA Jan 23, 2023
34fced4
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Jan 23, 2023
ea7e7d9
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Feb 1, 2023
89320b2
Temporarilly disable verif-global, GLDAS, and fit2obs on Jet. #357
DavidHuber-NOAA Feb 3, 2023
a3ebc32
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Feb 3, 2023
389037d
Temporarilly set supported platforms to C96/48 for Jet. #357
DavidHuber-NOAA Feb 3, 2023
1cf5192
Shorter hpss load. #357
DavidHuber-NOAA Feb 3, 2023
25175bf
Updated Jet environment file. #357
DavidHuber-NOAA Feb 3, 2023
59bd97e
Fixed TC tracker version. #357
DavidHuber-NOAA Feb 3, 2023
3b370ed
Removed debug set -x. #357
DavidHuber-NOAA Feb 3, 2023
d117ce3
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Feb 7, 2023
9bc2349
Update jet environment after C192, C384, partial C768 testing. #357
DavidHuber-NOAA Feb 14, 2023
81681a3
Address lint comments #357
DavidHuber-NOAA Feb 14, 2023
d0a9213
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Feb 28, 2023
4c26941
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Feb 28, 2023
ff95dff
Fit2Obs updates for vrfy.sh and config.vrfy
KateFriedman-NOAA Mar 1, 2023
cddb73e
Merge Kate's Fit2Obs updates to the Jet work #357
DavidHuber-NOAA Mar 1, 2023
80bab15
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Mar 1, 2023
db33ff1
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Mar 2, 2023
870ec58
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Mar 7, 2023
18d4595
Update directory lookups for Jet. #357
DavidHuber-NOAA Mar 13, 2023
70f3e73
Increased arch job memory request. Found during #357 testing.
DavidHuber-NOAA Mar 13, 2023
8d18842
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Mar 13, 2023
b241552
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Mar 14, 2023
b1c94fc
Address lint warnings. #357
DavidHuber-NOAA Mar 14, 2023
576d155
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Mar 16, 2023
484994e
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Mar 17, 2023
4da6ab0
Removed xjet-specific resources. #357
DavidHuber-NOAA Mar 21, 2023
822bf71
Set default partition to kjet on jet. #357
DavidHuber-NOAA Mar 21, 2023
8b98e18
Enable metplus and fit2obs jobs on Jet. #357
DavidHuber-NOAA Mar 21, 2023
68f6950
Merge branch 'port_2_jet' of github.com:davidhuber-noaa/global-workfl…
DavidHuber-NOAA Mar 21, 2023
3602ae1
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Mar 23, 2023
b7f82f1
Remove fit2obs from vrfy job
KateFriedman-NOAA Mar 24, 2023
e72698f
Add DO_FIT2OBS switch to config.base
KateFriedman-NOAA Mar 24, 2023
b2d4ab0
Add fit2obs job to config.resources
KateFriedman-NOAA Mar 24, 2023
7e324fb
Add new fit2obs job to workflow setup scripts
KateFriedman-NOAA Mar 24, 2023
2a70883
Create config.fit2obs for new fit2obs job
KateFriedman-NOAA Mar 24, 2023
5653ef2
Create new rocoto job script for fit2obs job
KateFriedman-NOAA Mar 24, 2023
bef3165
Create JJOB script for new fit2obs job
KateFriedman-NOAA Mar 24, 2023
a12499b
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Mar 27, 2023
df432f6
Add fit2obs job to env files
KateFriedman-NOAA Mar 28, 2023
3a5df0f
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Mar 28, 2023
c8dfaa9
Add fit2obs to gdas_half but don't run until xdate>=SDATE
KateFriedman-NOAA Mar 28, 2023
0899ea1
Update path settings in config.fit2obs and remove CDUMPFCST
KateFriedman-NOAA Mar 29, 2023
96e8dad
Updates to JGDAS_FIT2OBS for functioning
KateFriedman-NOAA Mar 29, 2023
ded09d5
Fix quotations in the vrfy job script. #357
DavidHuber-NOAA Mar 31, 2023
0aaaac1
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Mar 31, 2023
bd43c45
Disable gldas on Jet. #357
DavidHuber-NOAA Mar 31, 2023
085f6e2
Remove "/install" from EXECcfs and USHcfs paths
KateFriedman-NOAA Apr 3, 2023
5a98866
Merge branch 'NOAA-EMC:develop' into feature/fit2obs
KateFriedman-NOAA Apr 3, 2023
d5ac80a
Fixed erroneous quotations. #357
DavidHuber-NOAA Apr 3, 2023
c39c5ff
Updated detect_machine for jet (/lfs3 no longer exists) #357
DavidHuber-NOAA Apr 3, 2023
4c789d6
Merge remote-tracking branch 'kate/feature/fit2obs' into port_2_jet
DavidHuber-NOAA Apr 3, 2023
9158973
Added memory spec for Fit2Obs on Jet. #357 NOAA-EMC/Fit2Obs#5
DavidHuber-NOAA Apr 6, 2023
8919d2a
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Apr 12, 2023
87e86d5
Added Jet locations for coupled/aero ICs. #357
DavidHuber-NOAA Apr 12, 2023
faeba02
Decrease ocnpost memory requirements. #357
DavidHuber-NOAA Apr 12, 2023
2fec79c
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Apr 12, 2023
6d322de
Adjusted quotation marks. #357
DavidHuber-NOAA Apr 12, 2023
f937311
Restore develop TC Tracker info. #357
DavidHuber-NOAA Apr 13, 2023
ede4c4a
De-support gldas on Jet. #357
DavidHuber-NOAA Apr 13, 2023
815e49f
Check Jet for jet with /mnt/lfs1. #357
DavidHuber-NOAA Apr 13, 2023
2431190
Add a node for ocnpost on Jet. #357
DavidHuber-NOAA Apr 13, 2023
5c92782
Update coupled IC location on Jet. #357
DavidHuber-NOAA Apr 13, 2023
a311e05
Address shellcheck issue. #357
DavidHuber-NOAA Apr 13, 2023
396a696
Add quotes for shellcheck. #357
DavidHuber-NOAA Apr 13, 2023
8474526
Revert TC_tracker version/location to develop. #357
DavidHuber-NOAA Apr 13, 2023
1cb17d6
Add Jet documentation. #357
DavidHuber-NOAA Apr 13, 2023
ba4f2ee
Changed ORION to JET. #357
DavidHuber-NOAA Apr 13, 2023
6744f69
Set a memory request for fit2obs. #357
DavidHuber-NOAA Apr 14, 2023
c2b3c9d
Increment UFS hash to include new epic stack on Jet #357
DavidHuber-NOAA Apr 14, 2023
8dc1f00
Merge remote-tracking branch 'upstream/develop' into port_2_jet
DavidHuber-NOAA Apr 18, 2023
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
124 changes: 93 additions & 31 deletions env/JET.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ if [[ "${PARTITION_BATCH}" = "xjet" ]]; then
export npe_node_max=24
elif [[ "${PARTITION_BATCH}" = "vjet" ]]; then
export npe_node_max=16
elif [[ "${PARTITION_BATCH}" = "kjet" ]]; then
export npe_node_max=40
fi
export launcher="srun -l --export=ALL"
export launcher="srun -l --epilog=/apps/local/bin/report-mem --export=ALL"
export mpmd_opt="--multi-prog"

# Configure STACK
# Configure MPI environment
export OMP_STACKSIZE=2048000
export NTHSTACK=1024000000

Expand All @@ -34,46 +36,85 @@ if [[ "${step}" = "prep" ]] || [[ "${step}" = "prepbufr" ]]; then
nth_max=$((npe_node_max / npe_node_prep))

export POE="NO"
export BACK=${BACK:-"NO"}
export BACK="NO"
export sys_tp="JET"
export launcher_PREP="srun"

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export CFP_MP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}

elif [[ "${step}" = "atmanalrun" ]]; then

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="${launcher} -n \$ncmd ${mpmd_opt}"

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} ${npe_atmanalrun}"
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} -n \$ncmd ${mpmd_opt}"

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} ${npe_atmensanalrun}"
export APRUN_ATMENSANAL="${launcher} -n ${npe_atmensanalrun}"

elif [[ "${step}" = "aeroanlrun" ]]; then

export APRUNCFP="${launcher} -n \$ncmd ${mpmd_opt}"

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} ${npe_aeroanlrun}"
export APRUN_AEROANL="${launcher} -n ${npe_aeroanlrun}"

elif [[ "${step}" = "ocnanalbmat" ]]; then

export APRUNCFP="${launcher} -n \$ncmd ${mpmd_opt}"

nth_max=$((npe_node_max / npe_node_ocnanalbmat))

export NTHREADS_OCNANAL=${nth_ocnanalbmat:-${nth_max}}
[[ ${NTHREADS_OCNANAL} -gt ${nth_max} ]] && export NTHREADS_OCNANAL=${nth_max}
export APRUN_OCNANAL="${launcher} -n ${npe_ocnanalbmat}"

elif [[ "${step}" = "ocnanalrun" ]]; then

export APRUNCFP="${launcher} -n \$ncmd ${mpmd_opt}"

nth_max=$((npe_node_max / npe_node_ocnanalrun))

export NTHREADS_OCNANAL=${nth_ocnanalrun:-${nth_max}}
[[ ${NTHREADS_OCNANAL} -gt ${nth_max} ]] && export NTHREADS_OCNANAL=${nth_max}
export APRUN_OCNANAL="${launcher} -n ${npe_ocnanalrun}"

elif [[ "${step}" = "anal" ]]; then
elif [[ "${step}" = "anal" ]] || [[ "${step}" = "analcalc" ]]; then

export MKL_NUM_THREADS=4
export MKL_CBWR=AUTO

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="${launcher} -n \$ncmd ${mpmd_opt}"

nth_max=$((npe_node_max / npe_node_anal))

export NTHREADS_GSI=${nth_gsi:-${nth_max}}
export NTHREADS_GSI=${nth_anal:-${nth_max}}
[[ ${NTHREADS_GSI} -gt ${nth_max} ]] && export NTHREADS_GSI=${nth_max}
export APRUN_GSI="${launcher} ${npe_gsi:-${npe_anal:-${PBS_NP}}}"
export APRUN_GSI="${launcher} -n ${npe_gsi:-${npe_anal}}"

export NTHREADS_CALCINC=${nth_calcinc:-1}
[[ ${NTHREADS_CALCINC} -gt ${nth_max} ]] && export NTHREADS_CALCINC=${nth_max}
Expand All @@ -82,47 +123,67 @@ elif [[ "${step}" = "anal" ]]; then
export NTHREADS_CYCLE=${nth_cycle:-12}
[[ ${NTHREADS_CYCLE} -gt ${npe_node_max} ]] && export NTHREADS_CYCLE=${npe_node_max}
npe_cycle=${ntiles:-6}
export APRUN_CYCLE="${launcher} ${npe_cycle}"
export APRUN_CYCLE="${launcher} -n ${npe_cycle}"

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

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} ${npe_sfcanl}"
export APRUN_CYCLE="${launcher} -n ${npe_sfcanl}"

elif [[ "${step}" = "gldas" ]]; then

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

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} ${npe_gldas}"
export APRUN_GLDAS="${launcher} -n ${npe_gldas}"

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

# Must run data processing with exactly the number of tasks as time
# periods being processed.

npe_gldas_data_proc=$((gldas_spinup_hours + 12))
export APRUN_GLDAS_DATA_PROC="${launcher} -n ${npe_gldas_data_proc} ${mpmd_opt}"
KateFriedman-NOAA marked this conversation as resolved.
Show resolved Hide resolved

elif [[ "${step}" = "eobs" ]]; then

export MKL_NUM_THREADS=4
export MKL_CBWR=AUTO

nth_max=$((npe_node_max / npe_node_eobs))

export NTHREADS_GSI=${nth_gsi:-${nth_max}}
export NTHREADS_GSI=${nth_eobs:-${nth_max}}
[[ ${NTHREADS_GSI} -gt ${nth_max} ]] && export NTHREADS_GSI=${nth_max}
export APRUN_GSI="${launcher} ${npe_gsi:-${npe_eobs:-${PBS_NP}}}"
export APRUN_GSI="${launcher} -n ${npe_gsi:-${npe_eobs}}"

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="${launcher} -n \$ncmd ${mpmd_opt}"

elif [[ "${step}" = "eupd" ]]; then

nth_max=$((npe_node_max / npe_node_eupd))

export NTHREADS_ENKF=${nth_enkf:-${nth_max}}
export NTHREADS_ENKF=${nth_eupd:-${nth_max}}
[[ ${NTHREADS_ENKF} -gt ${nth_max} ]] && export NTHREADS_ENKF=${nth_max}
export APRUN_ENKF="${launcher} ${npe_enkf:-${npe_eupd:-${PBS_NP}}}"
export APRUN_ENKF="${launcher} -n ${npe_enkf:-${npe_eupd}}"

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="${launcher} -n \$ncmd ${mpmd_opt}"

elif [[ "${step}" = "fcst" ]] || [[ "${step}" = "efcs" ]]; then

Expand All @@ -145,64 +206,65 @@ elif [[ "${step}" = "post" ]]; then

export NTHREADS_NP=${nth_np:-1}
[[ ${NTHREADS_NP} -gt ${nth_max} ]] && export NTHREADS_NP=${nth_max}
export APRUN_NP="${launcher}"
export APRUN_NP="${launcher} -n ${npe_post}"

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

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} ${npe_ecen:-${PBS_NP}}"
export APRUN_ECEN="${launcher} -n ${npe_ecen}"

export NTHREADS_CHGRES=${nth_chgres:-12}
[[ ${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} ${npe_ecen:-${PBS_NP}}"
export APRUN_CALCINC="${launcher} -n ${npe_ecen}"

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} ${npe_esfc:-${PBS_NP}}"
export APRUN_ESFC="${launcher} -n ${npe_esfc}"

export NTHREADS_CYCLE=${nth_cycle:-12}
export NTHREADS_CYCLE=${nth_cycle:-14}
[[ ${NTHREADS_CYCLE} -gt ${npe_node_max} ]] && export NTHREADS_CYCLE=${npe_node_max}
export APRUN_CYCLE="${launcher} ${npe_esfc}"

export APRUN_CYCLE="${launcher} -n ${npe_esfc}"

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} ${npe_epos:-${PBS_NP}}"
export APRUN_EPOS="${launcher} -n ${npe_epos}"

elif [[ "${step}" = "init" ]]; then

export APRUN="${launcher}"
export APRUN="${launcher} -n ${npe_init}"

elif [[ "${step}" = "postsnd" ]]; then

export CFP_MP="YES"

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} ${npe_postsnd}"
export APRUN_POSTSND="${launcher} -n ${npe_postsnd}"

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

elif [[ "${step}" = "awips" ]]; then

Expand All @@ -218,6 +280,6 @@ elif [[ "${step}" = "fit2obs" ]]; then

export NTHREADS_FIT2OBS=${nth_fit2obs:-1}
[[ ${NTHREADS_FIT2OBS} -gt ${nth_max} ]] && export NTHREADS_FIT2OBS=${nth_max}
export MPIRUN="${launcher} -n ${npe_fit2obs}"
export MPIRUN="${launcher} -n ${npe_fit2obs} --mem=0"
DavidHuber-NOAA marked this conversation as resolved.
Show resolved Hide resolved

fi
48 changes: 26 additions & 22 deletions jobs/rocoto/vrfy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,36 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "vrfy" -c "base vrfy"

###############################################################
export COMPONENT="atmos"
export CDATEm1=$(${NDATE} -24 ${CDATE})
export PDYm1=$(echo ${CDATEm1} | cut -c1-8)
CDATEm1=$(${NDATE} -24 "${CDATE}")
export CDATEm1
PDYm1=$(echo "${CDATEm1}" | cut -c1-8)
export PDYm1

CDATEm1c=$(${NDATE} -06 ${CDATE})
PDYm1c=$(echo ${CDATEm1c} | cut -c1-8)
pcyc=$(echo ${CDATEm1c} | cut -c9-10)
CDATEm1c=$(${NDATE} -06 "${CDATE}")
PDYm1c=$(echo "${CDATEm1c}" | cut -c1-8)
pcyc=$(echo "${CDATEm1c}" | cut -c9-10)

export COMIN="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENT}"


###############################################################
echo
echo "=============== START TO GENERATE QUARTER DEGREE GRIB1 FILES ==============="
if [ ${MKPGB4PRCP} = "YES" -a ${CDUMP} = "gfs" ]; then
if [ ! -d ${ARCDIR} ]; then mkdir -p ${ARCDIR} ; fi
if [[ ${MKPGB4PRCP} = "YES" && ${CDUMP} = "gfs" ]]; then
if [[ ! -d "${ARCDIR}" ]]; then mkdir -p "${ARCDIR}" ; fi
nthreads_env=${OMP_NUM_THREADS:-1} # get threads set in env
export OMP_NUM_THREADS=1
cd ${COMIN}
set -e
cd "${COMIN}"
fhmax=${vhr_rain:-${FHMAX_GFS}}
fhr=0
while [ ${fhr} -le ${fhmax} ]; do
fhr2=$(printf %02i ${fhr})
fhr3=$(printf %03i ${fhr})
while [[ ${fhr} -le ${fhmax} ]]; do
fhr2=$(printf %02i "${fhr}")
fhr3=$(printf %03i "${fhr}")
fname=${CDUMP}.t${cyc}z.sfluxgrbf${fhr3}.grib2
fileout=${ARCDIR}/pgbq${fhr2}.${CDUMP}.${CDATE}.grib2
${WGRIB2} ${fname} -match "(:PRATE:surface:)|(:TMP:2 m above ground:)" -grib ${fileout}
(( fhr = ${fhr} + 6 ))
${WGRIB2} "${fname}" -match "(:PRATE:surface:)|(:TMP:2 m above ground:)" -grib "${fileout}"
(( fhr = fhr + 6 ))
done
export OMP_NUM_THREADS=${nthreads_env} # revert to threads set in env
fi
Expand All @@ -60,7 +63,7 @@ fi
###############################################################
echo
echo "=============== START TO RUN RADMON DATA EXTRACTION ==============="
if [ ${VRFYRAD} = "YES" -a "${CDUMP}" = "${CDFNL}" -a "${CDATE}" != "${SDATE}" ]; then
if [[ ${VRFYRAD} = "YES" && ${CDUMP} = "${CDFNL}" && ${CDATE} != "${SDATE}" ]]; then

export EXP=${PSLOT}
export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENT}"
Expand All @@ -76,7 +79,7 @@ fi
###############################################################
echo
echo "=============== START TO RUN OZMON DATA EXTRACTION ==============="
if [ "${VRFYOZN}" = "YES" -a "${CDUMP}" = "${CDFNL}" -a "${CDATE}" != "${SDATE}" ]; then
if [[ ${VRFYOZN} = "YES" && ${CDUMP} = "${CDFNL}" && ${CDATE} != "${SDATE}" ]]; then

export EXP=${PSLOT}
export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENT}"
Expand All @@ -92,7 +95,7 @@ fi
###############################################################
echo
echo "=============== START TO RUN MINMON ==============="
if [ "${VRFYMINMON}" = "YES" -a "${CDATE}" != "${SDATE}" ]; then
if [[ ${VRFYMINMON} = "YES" && ${CDATE} != "${SDATE}" ]]; then

export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENT}"
export M_TANKverfM0="${M_TANKverf}/stats/${PSLOT}/${CDUMP}.${PDY}/${cyc}"
Expand All @@ -107,9 +110,10 @@ fi
################################################################################
echo
echo "=============== START TO RUN CYCLONE TRACK VERIFICATION ==============="
if [ ${VRFYTRAK} = "YES" ]; then
if [[ ${VRFYTRAK} = "YES" ]]; then

export COMINsyn=${COMINsyn:-$(compath.py ${envir}/com/gfs/${gfs_ver})/syndat}
COMINsyn=${COMINsyn:-$(compath.py "${envir}/com/gfs/${gfs_ver}")/syndat}
export COMINsyn

${TRACKERSH}
fi
Expand All @@ -118,23 +122,23 @@ fi
################################################################################
echo
echo "=============== START TO RUN CYCLONE GENESIS VERIFICATION ==============="
if [ ${VRFYGENESIS} = "YES" -a "${CDUMP}" = "gfs" ]; then
if [[ ${VRFYGENESIS} = "YES" && "${CDUMP}" = "gfs" ]]; then
${GENESISSH}
fi


################################################################################
echo
echo "=============== START TO RUN CYCLONE GENESIS VERIFICATION (FSU) ==============="
if [ ${VRFYFSU} = "YES" -a "${CDUMP}" = "gfs" ]; then
if [[ ${VRFYFSU} = "YES" && "${CDUMP}" = "gfs" ]]; then
${GENESISFSU}
fi


###############################################################
# Force Exit out cleanly
cd ${DATAROOT}
if [ ${KEEPDATA:-"NO"} = "NO" ] ; then rm -rf ${DATA} ; fi
cd "${DATAROOT}"
if [[ ${KEEPDATA:-"NO"} = "NO" ]] ; then rm -rf "${DATA}" ; fi


exit 0
2 changes: 1 addition & 1 deletion modulefiles/module-setup.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [[ -d /lfs/f1 ]] ; then
source /usr/share/lmod/lmod/init/$__ms_shell
fi
module reset
elif [[ -d /lfs3 ]] ; then
elif [[ -d /mnt/lfs1 ]] ; then
DavidHuber-NOAA marked this conversation as resolved.
Show resolved Hide resolved
# We are on NOAA Jet
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /apps/lmod/lmod/init/$__ms_shell
Expand Down
Loading