Skip to content

Commit

Permalink
Add n-cores and perfect restart tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scrasmussen committed Oct 23, 2024
1 parent c2cf5de commit 456feb7
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,29 @@ jobs:
make run-croton-${{ matrix.configuration }}
- name: Compare output of serial runs
uses: ./github/actions/compare-output
uses: ./.github/actions/compare-output

- name: Clean candidate model output
run: |
cd $GITHUB_WORKSPACE/candidate/build/Run
make clean
- name: Run parallel candidate model
run: |
cd $GITHUB_WORKSPACE/candidate/build/Run
make run-croton-${{ matrix.configuration }}-parallel
- name: Compare output of n-cores candidate model
uses: ./.github/actions/compare-output

# Testing perfect restart, not cleaning candidate model output
- name: Setup and run candidate model perfect restart startup
run: |
cd $GITHUB_WORKSPACE/candidate/build/Run
sed -i 's|RESTART_FILENAME_REQUESTED = "RESTART/RESTART.2011082600_DOMAIN1"|RESTART_FILENAME_REQUESTED = "./RESTART.2011090100_DOMAIN1"|' namelist.hrldas
sed -i 's/KDAY = 7/KDAY = 1/' namelist.hrldas
rm RESTART.2011090200_DOMAIN1
make run-croton-${{ matrix.configuration }}-parallel
- name: Compare output of perfect restart candidate model
uses: ./.github/actions/compare-output

0 comments on commit 456feb7

Please sign in to comment.