-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure compilation works with dealii distributed vectors (#1239)
Description Compilation with deal.II distributed vectors did not work anymore because of an addition in the CHN equation. This has been fixed. To ensure that this does not happen again I have added a CI step to test LDV compilation. This is a first step in removing Trilinos Vectors from Lethe.
- Loading branch information
Showing
6 changed files
with
87 additions
and
6 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,63 @@ | ||
name: CI-Lethe-with-dealii-vectors | ||
|
||
on: | ||
push: | ||
# Runs on every push on master branch | ||
branches: | ||
- master | ||
# Runs on every push on master branch. If a push contains multiple commits, it will be ran on the latest one. | ||
pull_request: | ||
paths-ignore: | ||
- 'doc/**' | ||
- 'contrib/**' | ||
- 'examples/**' | ||
|
||
# Cancels running instances when a pull request is updated by a commit | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
COMPILE_JOBS: 4 | ||
MULTI_CORE_TESTS_REGEX: "mpirun=2" | ||
|
||
jobs: | ||
build: | ||
name: Build (deal.ii:${{ matrix.dealii_version }}) | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
dealii_version: ["master"] | ||
|
||
# Run steps in container of dealii's master branch | ||
container: | ||
image: dealii/dealii:${{ matrix.dealii_version }}-focal | ||
options: --user root | ||
|
||
steps: | ||
- name: Setup | ||
run: | | ||
# Since dealii image doesn't include Node.js, we'll install it | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends nodejs | ||
echo "Github actions is sane!" | ||
echo "Running build with deal.ii version ${{ matrix.dealii_version }} on branch ${GITHUB_REF#refs/heads/}" | ||
# Checks-out Lethe with branch of triggering commit | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# | ||
# Warnings | ||
# | ||
- name: Compile Lethe with deal.II distribtued vectors (deal.ii:${{ matrix.dealii_version }}) | ||
run: | | ||
mkdir build-warnings | ||
cd build-warnings | ||
cmake ../ -DCMAKE_BUILD_TYPE=Debug -DLETHE_USE_LDV=ON | ||
make -j${{ env.COMPILE_JOBS }} |
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
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