forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from mom-ocean/main
Bring in latest main changes (GFDL to main 2022-07-21)
- Loading branch information
Showing
139 changed files
with
7,459 additions
and
3,386 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
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,17 @@ | ||
name: 'install-macos-prerequisites' | ||
|
||
description: 'Install prerequisites for Mac OS compilation' | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Install macOS packages | ||
shell: bash | ||
run: | | ||
echo "::group::Install packages" | ||
brew update | ||
brew install automake | ||
brew install netcdf | ||
brew install mpich | ||
echo "::endgroup::" |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 'install-ubuntu-prerequisites' | ||
|
||
description: 'Install prerequisites for Ubuntu Linux compilation' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install Ubuntu Linux packages | ||
shell: bash | ||
run: | | ||
echo "::group::Install linux packages" | ||
sudo apt-get update | ||
sudo apt-get install netcdf-bin | ||
sudo apt-get install libnetcdf-dev | ||
sudo apt-get install libnetcdff-dev | ||
sudo apt-get install mpich | ||
sudo apt-get install libmpich-dev | ||
sudo apt-get install linux-tools-common | ||
echo "::endgroup::" |
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: MacOS regression | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test-macos-regression: | ||
|
||
runs-on: macOS-latest | ||
|
||
env: | ||
CC: gcc-11 | ||
FC: gfortran-11 | ||
|
||
defaults: | ||
run: | ||
working-directory: .testing | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: ./.github/actions/macos-setup | ||
|
||
- uses: ./.github/actions/testing-setup | ||
|
||
- name: Compile reference model | ||
run: make build.regressions MOM_TARGET_SLUG=$GITHUB_REPOSITORY MOM_TARGET_LOCAL_BRANCH=$GITHUB_BASE_REF DO_REGRESSION_TESTS=true -j | ||
|
||
- name: Create validation data | ||
run: make run.symmetric -k -s | ||
|
||
- name: Regression test | ||
run: make test.regression DO_REGRESSION_TESTS=true -k -s |
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,34 @@ | ||
name: MacOS stencil tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test-macos-stencil: | ||
|
||
runs-on: macOS-latest | ||
|
||
env: | ||
CC: gcc-11 | ||
FC: gfortran-11 | ||
|
||
defaults: | ||
run: | ||
working-directory: .testing | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: ./.github/actions/macos-setup | ||
|
||
- uses: ./.github/actions/testing-setup | ||
|
||
- name: Compile MOM6 in asymmetric memory mode | ||
run: make build/asymmetric/MOM6 -j | ||
|
||
- name: Create validation data | ||
run: make run.symmetric -k -s | ||
|
||
- name: Run tests | ||
run: make test.grid test.layout test.rotate -k -s |
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
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
Oops, something went wrong.