Skip to content

Add functionality to set the fraction of HP detritus that is fast-sinking #412

Add functionality to set the fraction of HP detritus that is fast-sinking

Add functionality to set the fraction of HP detritus that is fast-sinking #412

Workflow file for this run

name: cobalt CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "dev/cefi" branch
push:
branches: [ "dev/cefi" ]
pull_request:
branches: [ "dev/cefi" ]
workflow_dispatch:
env:
BRANCH_NAME: main
jobs:
# This workflow contains a single job called "build"
run-obgc_1d-ci:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# define container
container:
image: clouden90/1d_mom6_cobalt:withdata
options: --user root
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- uses: jitterbit/get-changed-files@v1
id: abc
with:
format: space-delimited
token: ${{ secrets.GITHUB_TOKEN }}
# git clone CEFI-regional-MOM6 and replace ocean_BGC
- name: git clone CEFI-regional-MOM6
working-directory: ../
run: |
pwd
ls -l -h
git clone -b $BRANCH_NAME https://github.com/NOAA-GFDL/CEFI-regional-MOM6.git --recursive
rm -rf CEFI-regional-MOM6/src/ocean_BGC
cp -r ocean_BGC CEFI-regional-MOM6/src
cd CEFI-regional-MOM6/src/ocean_BGC && git branch
- name: Copy 1D modelinput dataset
working-directory: ../CEFI-regional-MOM6/exps
run: |
ln -fs /opt/datasets ./
ls -l -h ./datasets
- name: Build mom6sis2-cobalt
working-directory: ../CEFI-regional-MOM6/builds
run: |
echo "build mom6sis2..."
./linux-build.bash -m docker -p linux-gnu -t debug -f mom6sis2
ls -l -h build/docker-linux-gnu/ocean_ice/debug/MOM6SIS2
- name: Run 1D BATS case
working-directory: ../CEFI-regional-MOM6/exps/OM4.single_column.COBALT
run: |
echo "Start 1D BATS case ..."
pwd
./driver.sh
cat ./RESTART_48hrs/ocean.stats
- name: Check with ref
working-directory: ../CEFI-regional-MOM6/exps/OM4.single_column.COBALT
run: |
echo "new 48 hrs ocean.stats: "
cat ./RESTART_48hrs/ocean.stats
echo "baseline 48 hrs ocean.stats: "
cat ../../src/ocean_BGC/.github/ref/OM4.single_column.COBALT.p4/docker-linux-gnu/ocean.stats
#
diff -q ./RESTART_48hrs/ocean.stats ../../src/ocean_BGC/.github/ref/OM4.single_column.COBALT.p4/docker-linux-gnu/ocean.stats > /dev/null || { echo "Error: ocean.stats are different."; echo "Plz update ocean_BGC/.github/ref/OM4.single_column.COBALT.p4/docker-linux-gnu/ocean.stats with the following: "; cat ./RESTART_48hrs/ocean.stats; exit 1; }