-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (46 loc) · 1.74 KB
/
mom6_cobalt_1D.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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; }