Skip to content

Commit

Permalink
merged develop into ctest_work
Browse files Browse the repository at this point in the history
  • Loading branch information
Terry McGuinness authored and Terry McGuinness committed Jan 17, 2025
2 parents ae626ba + 01eeb24 commit e27f0c3
Show file tree
Hide file tree
Showing 40 changed files with 275 additions and 514 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ parm/ufs/MOM6_data_table.IN
parm/ufs/ice_in.IN
parm/ufs/ufs.configure.*.IN
parm/ufs/post_itag_gfs
parm/ufs/ww3_shel.nml.IN
parm/wafs

# Ignore sorc and logs folders from externals
Expand Down
2 changes: 2 additions & 0 deletions docs/source/wave.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Here are several regional naming conventions:
+===========+=======================+
| glo | Global domain |
+-----------+-----------------------+
| uglo | Unstructured global |
+-----------+-----------------------+
| ak | Alaska |
+-----------+-----------------------+
| ao or aoc | Arctic Ocean |
Expand Down
5 changes: 0 additions & 5 deletions env/WCOSS2.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ step=$1
export launcher="mpiexec -l"
export mpmd_opt="--cpu-bind verbose,core cfp"

# TODO: Add path to GDASApp libraries and cray-mpich as temporary patches
# TODO: Remove LD_LIBRARY_PATH lines as soon as permanent solutions are available
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${HOMEgfs}/sorc/gdas.cd/build/lib"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/cray/pe/mpich/8.1.19/ofi/intel/19.0/lib"

# Calculate common resource variables
# Check first if the dependent variables are set
if [[ -n "${ntasks:-}" && -n "${max_tasks_per_node:-}" && -n "${tasks_per_node:-}" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion parm/archive/gdaswave.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gdaswave:
{% set head = "gdas.wave.t" + cycle_HH + "z." %}
{% set head = "gdaswave.t" + cycle_HH + "z." %}
name: "GDASWAVE"
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gdaswave.tar"
required:
Expand Down
86 changes: 0 additions & 86 deletions parm/archive/gefs_extracted_atmos.yaml.j2

This file was deleted.

33 changes: 0 additions & 33 deletions parm/archive/gefs_extracted_ice.yaml.j2

This file was deleted.

40 changes: 0 additions & 40 deletions parm/archive/gefs_extracted_ocean.yaml.j2

This file was deleted.

51 changes: 0 additions & 51 deletions parm/archive/gefs_extracted_wave.yaml.j2

This file was deleted.

7 changes: 0 additions & 7 deletions parm/archive/master_gefs.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
{% set cycle_YMDH = current_cycle | to_YMDH %}

datasets:
{% filter indent(width=4) %}
{% include "gefs_extracted_atmos.yaml.j2" %}
{% include "gefs_extracted_ocean.yaml.j2" %}
{% include "gefs_extracted_ice.yaml.j2" %}
{% include "gefs_extracted_wave.yaml.j2" %}
{% endfilter %}

# Archive the EXPDIR if requested
{% if archive_expdir %}
{% filter indent(width=4) %}
Expand Down
9 changes: 6 additions & 3 deletions parm/config/gefs/config.ufs
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,7 @@ fi

# Set the name of the UFS (previously nems) configure template to use
# Default ufs.configure templates for supported model configurations
if [[ "${USE_ESMF_THREADING:-}" == "YES" ]]; then
tmpl_suffix="_esmf"
fi
# WW3 restart field variable is different for slow vs fast loop. Add WW3_RSTFLDS="ice" for slow loop variables based on coupling scheme.
case "${model_list}" in
atm)
default_template="${PARMgfs}/ufs/ufs.configure.atm${tmpl_suffix:-}.IN"
Expand All @@ -533,9 +531,11 @@ case "${model_list}" in
;;
atm.ocean.ice.wave)
default_template="${PARMgfs}/ufs/ufs.configure.s2sw${tmpl_suffix:-}.IN"
WW3_RSTFLDS="ice"
;;
atm.ocean.ice.wave.aero)
default_template="${PARMgfs}/ufs/ufs.configure.s2swa${tmpl_suffix:-}.IN"
WW3_RSTFLDS="ice"
;;
*)
echo "FATAL ERROR: Unsupported UFSWM configuration for ${model_list}"
Expand All @@ -547,6 +547,9 @@ esac
export ufs_configure_template=${ufs_configure_template:-${default_template:-"/dev/null"}}
unset model_list default_template

#export wave restart variable:
export WW3_RSTFLDS=${WW3_RSTFLDS:-" "}

if [[ ! -r "${ufs_configure_template}" ]]; then
echo "FATAL ERROR: ${ufs_configure_template} either doesn't exist or is not readable."
exit 17
Expand Down
2 changes: 1 addition & 1 deletion parm/config/gfs/config.base
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ case "${CASE}" in
export waveGRD='uglo_100km'
;;
"C768" | "C1152")
export waveGRD='uglo_m1g16'
export waveGRD='uglo_15km'
;;
*)
echo "FATAL ERROR: Unrecognized CASE ${CASE}, ABORT!"
Expand Down
4 changes: 2 additions & 2 deletions parm/config/gfs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ case ${step} in
threads_per_task=1
tasks_per_node=$(( max_tasks_per_node / threads_per_task ))
NTASKS=${ntasks}
memory_gdas="10GB"
memory_gfs="10GB"
memory_gdas="20GB"
memory_gfs="20GB"
;;

# The wavepost*pnt* jobs are I/O heavy and do not scale well to large nodes.
Expand Down
19 changes: 11 additions & 8 deletions parm/config/gfs/config.ufs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (( $# <= 1 )); then
echo "--fv3 C48|C96|C192|C384|C768|C1152|C3072"
echo "--mom6 500|100|025"
echo "--cice6 500|100|025"
echo "--ww3 gnh_10m;aoc_9km;gsh_15m|gwes_30m|glo_025|glo_100|glo_200|glo_500|mx025|uglo_100km|uglo_m1g16"
echo "--ww3 gnh_10m;aoc_9km;gsh_15m|gwes_30m|glo_025|glo_100|glo_200|glo_500|mx025|uglo_100km"
echo "--gocart"

exit 1
Expand Down Expand Up @@ -605,12 +605,12 @@ if [[ "${skip_ww3}" == "false" ]]; then
"mx025")
ntasks_ww3=80
;;
"uglo_100km")
ntasks_ww3=40
"uglo_15km")
ntasks_ww3=1000
nthreads_ww3=1
;;
"uglo_m1g16")
ntasks_ww3=1000
"uglo_100km")
ntasks_ww3=40
nthreads_ww3=1
;;
*)
Expand All @@ -630,9 +630,7 @@ fi

# Set the name of the UFS (previously nems) configure template to use
# Default ufs.configure templates for supported model configurations
if [[ "${USE_ESMF_THREADING:-}" == "YES" ]]; then
tmpl_suffix="_esmf"
fi
# WW3 restart field variable is different for slow vs fast loop. Add WW3_RSTFLDS="ice" for slow loop variables based on coupling scheme.
case "${model_list}" in
atm)
default_template="${PARMgfs}/ufs/ufs.configure.atm${tmpl_suffix:-}.IN"
Expand All @@ -651,9 +649,11 @@ case "${model_list}" in
;;
atm.ocean.ice.wave)
default_template="${PARMgfs}/ufs/ufs.configure.s2sw${tmpl_suffix:-}.IN"
WW3_RSTFLDS="ice"
;;
atm.ocean.ice.wave.aero)
default_template="${PARMgfs}/ufs/ufs.configure.s2swa${tmpl_suffix:-}.IN"
WW3_RSTFLDS="ice"
;;
*)
echo "FATAL ERROR: Unsupported UFSWM configuration for ${model_list}"
Expand All @@ -665,6 +665,9 @@ esac
export ufs_configure_template=${ufs_configure_template:-${default_template:-"/dev/null"}}
unset model_list default_template

# export wave restart variable:
export WW3_RSTFLDS=${WW3_RSTFLDS:-" "}

if [[ ! -r "${ufs_configure_template}" ]]; then
echo "FATAL ERROR: ${ufs_configure_template} either doesn't exist or is not readable."
exit 17
Expand Down
Loading

0 comments on commit e27f0c3

Please sign in to comment.