Skip to content

Update: spack stack 2.0.0 (for Intel) and 2.1.0 (for GNU) and ip library #966

Update: spack stack 2.0.0 (for Intel) and 2.1.0 (for GNU) and ip library

Update: spack stack 2.0.0 (for Intel) and 2.1.0 (for GNU) and ip library #966

name: create SCM UFS-replay cases from UWM regression tests
on: [pull_request,workflow_dispatch]
jobs:
run_scm_ufs_replay:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
# Environmental variables
env:
dir_rt_cache: /home/runner/ufs_rts
SCM_ROOT: ${{ github.workspace }}
steps:
#######################################################################################
# Checkout SCM code, setup python.
#######################################################################################
- name: Checkout SCM.
uses: actions/checkout@v6
- name: Initialize SCM submodules.
run: git submodule update --init --recursive
- name: Update system packages.
run: sudo apt-get update
- name: Cache conda
uses: actions/cache@v5
with:
path: ~/conda_pkgs_dir
key: conda-pkgs
- name: Setup python.
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: env_ufscasegen
environment-file: environment-ufscasegen.yml
use-only-tar-bz2: true
auto-activate-base: true
auto-update-conda: true
conda-remove-defaults: "true"
#######################################################################################
# Create UFS-replay case for SCM using UWM Regression Tests
#######################################################################################
- name: Cache UWM regression test output.
uses: actions/cache@v5
with:
path: ${dir_rt_cache}
key: ufs-rt-files
- name: Download UWM regression test output, if not cached.
run: |
if test ! -d "${dir_rt_cache}"; then
mkdir -p ${dir_rt_cache} && cd ${dir_rt_cache}
wget -q https://github.com/NCAR/ccpp-scm/releases/download/v7.0.1/ufs_rts_scmreplay_ci.tar.gz
tar -xvf ufs_rts_scmreplay_ci.tar.gz
ls ${dir_rt_cache}/data_new
fi
- name: Create UFS-replay case.
run: |
cd ${SCM_ROOT}/scm/etc/scripts/
./UFS_forcing_ensemble_generator.py -d ${dir_rt_cache}/data_new --C_RES 192 -dt 360 -n control_c192 -lons 99.844 -lats 36.749 -sc
#######################################################################################
# Done
#######################################################################################