Leverage Intel Containers for NOAA RDHPC Cross-Platform Reproducibility #414
Workflow file for this run
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
name: mom6_obgc_1d | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: clouden90/1d_mom6_cobalt:base | |
options: --user=root | |
env: | |
PR_NUMBER: ${{ github.event.number }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: Build mom6-sis2-cobalt | |
working-directory: ./builds | |
run: | | |
echo "build mom6-sis2-cobalt ..." | |
./linux-build.bash -m docker -p linux-gnu -t debug -f mom6sis2_yaml | |
- name: Download 1d model dataset | |
working-directory: ./exps | |
run: | | |
wget -q ftp.gfdl.noaa.gov:/pub/Yi-cheng.Teng/1d_ci_datasets.tar.gz && tar -zxvf 1d_ci_datasets.tar.gz && rm -rf 1d_ci_datasets.tar.gz | |
- name: Run 1D toy case and check repro across restarts | |
working-directory: ./exps/OM4.single_column.COBALT | |
run: | | |
./driver.sh | |
- name: Run mppnccombine to combine sub-region diag outputs | |
working-directory: ./exps/OM4.single_column.COBALT | |
run: | | |
/opt/bin/mppnccombine -64 -h 16384 -m -k 100 20040102.ocean_daily_subset.nc 20040102.ocean_daily_subset.nc.00* | |
- name: Check ref | |
working-directory: ./exps/OM4.single_column.COBALT | |
run: | | |
echo "new 48hrs ocean.stats: " | |
cat ./RESTART_48hrs/ocean.stats | |
echo "baseline 48 hrs ocean.stats: " | |
cat ./ref/ocean.stats | |
diff -q ref/ocean.stats ./RESTART_48hrs/ocean.stats > /dev/null || { echo "Error: ocean.stats are different."; echo "Plz update exps/OM4.single_column.COBALT/ref/ocean.stats with the following: "; cat ./RESTART_48hrs/ocean.stats; exit 1; } |