Skip to content

Commit

Permalink
Update cobalt_ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored Dec 22, 2023
1 parent 9be13d5 commit e3a4d52
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/cobalt_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ jobs:
- name: Install wget and get data
run: |
apt-get update
apt-get install -y wget software-properties-common
add-apt-repository ppa:remik-ziemlinski/nccmp
apt-get update
apt-get install -y nccmp
apt-get install -y wget
cd /opt
wget https://gfdl-med.s3.amazonaws.com/OceanBGC_dataset/1d_datasets.tar.gz
tar -zxvf 1d_datasets.tar.gz
Expand Down Expand Up @@ -70,5 +67,5 @@ jobs:
cd ../MOM6_OBGC_examples/exps/OM4.single_column.COBALT.p4
# check
diff -q ref/ocean.stats ./ocean.stats > /dev/null || { echo "Error: ocean.stats are different. Exiting..."; exit 1; }
#diff -q ref/MOM.res.nc ./RESTART/MOM.res.nc > /dev/null || { echo "Error: MOM.res.nc are different. Exiting..."; exit 1; }
nccmp -dfqS ref/MOM.res.nc ./RESTART/MOM.res.nc || { echo "Error: MOM.res.nc are different. Exiting..."; exit 1; }
diff -q ref/MOM.res.nc ./RESTART/MOM.res.nc > /dev/null || { echo "Error: MOM.res.nc are different. Exiting..."; exit 1; }
#nccmp -dfqS ref/MOM.res.nc ./RESTART/MOM.res.nc || { echo "Error: MOM.res.nc are different. Exiting..."; exit 1; }

0 comments on commit e3a4d52

Please sign in to comment.