-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global-workflow (AR) Generic updates for Gaea C5 (#2515)
- Port global-workflow’s build and run capability to Gaea-C5 - Building global-workflow on Gaea-C5 - Setting up experiments with global-workflow on Gaea-C5 --------- Co-authored-by: AnilKumar-NOAA <[email protected]> Co-authored-by: DavidBurrows-NCO <[email protected]>
- Loading branch information
1 parent
b6ca771
commit 50c2b89
Showing
12 changed files
with
148 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#! /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 "fcst atmos_products" | ||
exit 1 | ||
|
||
fi | ||
|
||
step=$1 | ||
|
||
export launcher="srun -l --export=ALL" | ||
export mpmd_opt="--multi-prog --output=mpmd.%j.%t.out" | ||
|
||
ulimit -s unlimited | ||
ulimit -a | ||
|
||
if [[ "${step}" = "fcst" ]]; then | ||
|
||
if [[ "${CDUMP}" =~ "gfs" ]]; then | ||
nprocs="npe_${step}_gfs" | ||
ppn="npe_node_${step}_gfs" || ppn="npe_node_${step}" | ||
else | ||
nprocs="npe_${step}" | ||
ppn="npe_node_${step}" | ||
fi | ||
(( nnodes = (${!nprocs}+${!ppn}-1)/${!ppn} )) | ||
(( ntasks = nnodes*${!ppn} )) | ||
# With ESMF threading, the model wants to use the full node | ||
export APRUN_UFS="${launcher} -n ${ntasks}" | ||
unset nprocs ppn nnodes ntasks | ||
|
||
elif [[ "${step}" = "atmos_products" ]]; then | ||
|
||
export USE_CFP="YES" # Use MPMD for downstream product generation | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
help([[ | ||
Load environment to run GFS on Gaea | ||
]]) | ||
|
||
local spack_mod_path=(os.getenv("spack_mod_path") or "None") | ||
prepend_path("MODULEPATH", spack_mod_path) | ||
|
||
load(pathJoin("stack-intel", (os.getenv("stack_intel_ver") or "None"))) | ||
load(pathJoin("stack-cray-mpich", (os.getenv("stack_cray_mpich_ver") or "None"))) | ||
load(pathJoin("python", (os.getenv("python_ver") or "None"))) | ||
|
||
load(pathJoin("jasper", (os.getenv("jasper_ver") or "None"))) | ||
load(pathJoin("libpng", (os.getenv("libpng_ver") or "None"))) | ||
load(pathJoin("cdo", (os.getenv("cdo_ver") or "None"))) | ||
load(pathJoin("hdf5", (os.getenv("hdf5_ver") or "None"))) | ||
load(pathJoin("netcdf-c", (os.getenv("netcdf_c_ver") or "None"))) | ||
load(pathJoin("netcdf-fortran", (os.getenv("netcdf_fortran_ver") or "None"))) | ||
|
||
load(pathJoin("nco", (os.getenv("nco_ver") or "None"))) | ||
load(pathJoin("prod_util", (os.getenv("prod_util_ver") or "None"))) | ||
load(pathJoin("grib-util", (os.getenv("grib_util_ver") or "None"))) | ||
load(pathJoin("g2tmpl", (os.getenv("g2tmpl_ver") or "None"))) | ||
load(pathJoin("gsi-ncdiag", (os.getenv("gsi_ncdiag_ver") or "None"))) | ||
load(pathJoin("crtm", (os.getenv("crtm_ver") or "None"))) | ||
load(pathJoin("bufr", (os.getenv("bufr_ver") or "None"))) | ||
load(pathJoin("wgrib2", (os.getenv("wgrib2_ver") or "None"))) | ||
load(pathJoin("py-netcdf4", (os.getenv("py_netcdf4_ver") or "None"))) | ||
load(pathJoin("py-pyyaml", (os.getenv("py_pyyaml_ver") or "None"))) | ||
load(pathJoin("py-jinja2", (os.getenv("py_jinja2_ver") or "None"))) | ||
load(pathJoin("py-pandas", (os.getenv("py_pandas_ver") or "None"))) | ||
load(pathJoin("py-python-dateutil", (os.getenv("py_python_dateutil_ver") or "None"))) | ||
load(pathJoin("met", (os.getenv("met_ver") or "None"))) | ||
load(pathJoin("metplus", (os.getenv("metplus_ver") or "None"))) | ||
load(pathJoin("py-xarray", (os.getenv("py_xarray_ver") or "None"))) | ||
|
||
setenv("WGRIB2","wgrib2") | ||
setenv("UTILROOT",(os.getenv("prod_util_ROOT") or "None")) | ||
|
||
whatis("Description: GFS run setup environment") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
help([[ | ||
Load environment to run GFS workflow setup scripts on Gaea | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/ncrc/proj/epic/rocoto/modulefiles") | ||
load(pathJoin("rocoto")) | ||
|
||
prepend_path("MODULEPATH", "/ncrc/proj/epic/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core") | ||
|
||
local stack_intel_ver=os.getenv("stack_intel_ver") or "2023.1.0" | ||
local python_ver=os.getenv("python_ver") or "3.10.13" | ||
|
||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
load(pathJoin("python", python_ver)) | ||
load("py-jinja2") | ||
load("py-pyyaml") | ||
load("py-numpy") | ||
local git_ver=os.getenv("git_ver") or "2.35.2" | ||
load(pathJoin("git", git_ver)) | ||
|
||
whatis("Description: GFS run setup environment") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export stack_intel_ver=2023.1.0 | ||
export stack_cray_mpich_ver=8.1.25 | ||
export spack_env=gsi-addon-dev | ||
|
||
source "${HOMEgfs:-}/versions/run.spack.ver" | ||
export spack_mod_path="/ncrc/proj/epic/spack-stack/spack-stack-${spack_stack_ver}/envs/${spack_env}/install/modulefiles/Core" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export stack_intel_ver=2023.1.0 | ||
export stack_cray_mpich_ver=8.1.25 | ||
export spack_env=gsi-addon-dev | ||
|
||
source "${HOMEgfs:-}/versions/run.spack.ver" | ||
export spack_mod_path="/ncrc/proj/epic/spack-stack/spack-stack-${spack_stack_ver}/envs/${spack_env}/install/modulefiles/Core" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
BASE_GIT: '/gpfs/f5/epic/proj-shared/global/glopara/data/git' | ||
DMPDIR: '/gpfs/f5/epic/proj-shared/global/glopara/data/dump' | ||
BASE_CPLIC: '/gpfs/f5/epic/proj-shared/global/glopara/data/ICSDIR/prototype_ICs' | ||
PACKAGEROOT: '/gpfs/f5/epic/proj-shared/global/glopara/data/nwpara' | ||
COMROOT: '/gpfs/f5/epic/proj-shared/global/glopara/data/com' | ||
COMINsyn: '${COMROOT}/gfs/prod/syndat' | ||
HOMEDIR: '/gpfs/f5/epic/scratch/${USER}' | ||
STMP: '/gpfs/f5/epic/scratch/${USER}' | ||
PTMP: '/gpfs/f5/epic/scratch/${USER}' | ||
NOSCRUB: $HOMEDIR | ||
ACCOUNT: epic | ||
SCHEDULER: slurm | ||
QUEUE: normal | ||
QUEUE_SERVICE: normal | ||
PARTITION_BATCH: batch | ||
PARTITION_SERVICE: batch | ||
CHGRP_RSTPROD: 'NO' | ||
CHGRP_CMD: 'chgrp rstprod' | ||
HPSSARCH: 'NO' | ||
HPSS_PROJECT: emc-global | ||
LOCALARCH: 'NO' | ||
ATARDIR: '${NOSCRUB}/archive_rotdir/${PSLOT}' | ||
MAKE_NSSTBUFR: 'NO' | ||
MAKE_ACFTBUFR: 'NO' | ||
SUPPORTED_RESOLUTIONS: ['C1152', 'C768', 'C384', 'C192', 'C96', 'C48'] |