-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Containerized 2d tide case and tested it through github Action runner (…
…#118) * containerized NWA12.tidesonly case * Added new mom6_2d_tide ci workflow * Try to clean-up gha disk space * Added image pull step * fix typo * Added docker run step * remove -it * Added run case * fix typos * fix a few typos * more typos * remove --allow-run-as-root * forget to load modules * Reduce runday to 2 days * tiny mod
- Loading branch information
1 parent
588d718
commit c3b527b
Showing
20 changed files
with
229 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: mom6_tide_2d | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
# container: | ||
# image: noaaepic/ubuntu22.04-intel-llvm-unified:v1.8.0 | ||
# options: --user=root | ||
|
||
# env: | ||
# PR_NUMBER: ${{ github.event.number }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
submodules: recursive | ||
|
||
- name: Clean up disk space | ||
run: | | ||
echo "maximize disk space on git-runner ..." | ||
df -h | ||
sudo apt-get clean | ||
sudo rm -rf /var/lib/apt/lists/* /tmp/* ~/.cache | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
docker system prune -af | ||
df -h | ||
- name: Set up Docker | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Download Image | ||
run: | | ||
echo "Pull the Image ..." | ||
docker pull noaaepic/ubuntu22.04-intel-llvm-unified:v1.8.0 | ||
docker images | ||
df -h | ||
- name: running Doker | ||
run: | | ||
echo "Run Docker Image ..." | ||
pwd | ||
docker run --rm \ | ||
-v ${{ github.workspace }}:/workspace \ | ||
-w /workspace \ | ||
noaaepic/ubuntu22.04-intel-llvm-unified:v1.8.0 \ | ||
sh -c "cd builds/; | ||
./linux-build.bash -m docker -p linux-intel -t repro -f mom6solo; | ||
cd ../exps; | ||
wget -q ftp.gfdl.noaa.gov:/pub/Yi-cheng.Teng/nwa12_tideonly_ci_datasets.tar.gz && tar -zxvf nwa12_tideonly_ci_datasets.tar.gz; | ||
cd NWA12.tidesonly; | ||
source /root/.bashenv | ||
mpirun -np 4 ../../builds/build/docker-linux-intel/ocean_only/repro/MOM6; | ||
cat ./ocean.stats; | ||
diff -q ref/docker-linux-intel-repro/ocean.stats ./ocean.stats" | ||
# - name: Build mom6solo | ||
# working-directory: ./builds | ||
# run: | | ||
# echo "build mom6solo ..." | ||
# ./linux-build.bash -m docker -p linux-intel -t repro -f mom6solo | ||
|
||
# - 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; } |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/grid_spec.nc | ||
../../datasets/nwa12_tide_input/grid_spec.nc |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/ocean_hgrid.nc | ||
../../datasets/nwa12_tide_input/ocean_hgrid.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/ocean_mask.nc | ||
../../datasets/nwa12_tide_input/ocean_mask.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/ocean_mosaic.nc | ||
../../datasets/nwa12_tide_input/ocean_mosaic.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/ocean_topog.nc | ||
../../datasets/nwa12_tide_input/ocean_topog.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/tu_001.nc | ||
../../datasets/nwa12_tide_input/tu_001.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/tu_002.nc | ||
../../datasets/nwa12_tide_input/tu_002.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/tu_003.nc | ||
../../datasets/nwa12_tide_input/tu_003.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/tz_001.nc | ||
../../datasets/nwa12_tide_input/tz_001.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/tz_002.nc | ||
../../datasets/nwa12_tide_input/tz_002.nc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../datasets/nwa12_input/tz_003.nc | ||
../../datasets/nwa12_tide_input/tz_003.nc |
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
Oops, something went wrong.