Skip to content

Commit

Permalink
Merge branch 'SimVascular:main' into precomputed-velocities-SimVascul…
Browse files Browse the repository at this point in the history
  • Loading branch information
zasexton committed Mar 28, 2024
2 parents bd0fa14 + 6dd920b commit b71169c
Show file tree
Hide file tree
Showing 20 changed files with 132 additions and 98 deletions.
62 changes: 0 additions & 62 deletions .github/workflows/test.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/test_macos12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: macOS 12
on: [push, pull_request]
jobs:
test:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Install MacOS dependencies
run: |
brew reinstall -v gcc
brew install -v cmake vtk openblas lapack mesa open-mpi qt
brew install lcov
sudo ln -s /usr/local/opt/qt5/mkspecs /usr/local/mkspecs
sudo ln -s /usr/local/opt/qt5/plugins /usr/local/plugins
- name: Build svFSIplus
run: |
mkdir build
cd build
cmake -DENABLE_COVERAGE=ON -DENABLE_ARRAY_INDEX_CHECKING=ON -DENABLE_UNIT_TEST=ON ..
make -j2
- name: Install test dependencies
run: |
conda create -n svfsiplus python=3.9
conda run -n svfsiplus pip install pytest pytest-cov pytest-mock numpy meshio pandas
- name: Run integration tests
run: |
git lfs pull
cd tests
conda run -n svfsiplus pytest -rPv --durations=0
- name: Run unit tests
run: |
cd build/svFSI-build/Source/svFSI
ctest --verbose
25 changes: 25 additions & 0 deletions .github/workflows/test_ubuntu20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Ubuntu 20.04
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
container: msalvad/ubuntu20_vtk9:v1
steps:
- uses: actions/checkout@v3
- name: Build svFSIplus
run: |
mkdir build
cd build
cmake -DENABLE_COVERAGE=ON -DENABLE_ARRAY_INDEX_CHECKING=ON -DENABLE_UNIT_TEST=ON ..
make -j2
cd ..
- name: Run integration tests
run: |
git config --global --add safe.directory /__w/svFSIplus/svFSIplus
git lfs pull
cd tests
conda run -n svfsiplus pytest -rPv --durations=0
- name: Run unit tests
run: |
cd build/svFSI-build/Source/svFSI
ctest --verbose
38 changes: 38 additions & 0 deletions .github/workflows/test_ubuntu22.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Ubuntu 22.04
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-22.04
container: msalvad/ubuntu22_vtk9:v1
steps:
- uses: actions/checkout@v3
- name: Build svFSIplus
run: |
mkdir build
cd build
cmake -DENABLE_COVERAGE=ON -DENABLE_ARRAY_INDEX_CHECKING=ON -DENABLE_UNIT_TEST=ON ..
make -j2
cd ..
- name: Run integration tests
run: |
git config --global --add safe.directory /__w/svFSIplus/svFSIplus
git lfs pull
cd tests
conda run -n svfsiplus pytest -rPv --durations=0
- name: Run unit tests
run: |
cd build/svFSI-build/Source/svFSI
ctest --verbose
- name: Generate code coverage
run: |
cd build/svFSI-build
make coverage
- name: Save coverage report
uses: actions/upload-artifact@v3
with:
name: coverage_report
path: build/svFSI-build/coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions tests/cases/cep/cable_TTP_1d/result_001.vtu
Git LFS file not shown
6 changes: 3 additions & 3 deletions tests/cases/cep/cable_TTP_1d/svFSI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<Add_equation type="CEP" >
<Coupled> true </Coupled>
<Min_iterations> 1 </Min_iterations>
<Max_iterations> 5 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Max_iterations> 2 </Max_iterations>
<Tolerance> 1e-12 </Tolerance>

<Domain id="1" >
<Electrophysiology_model> TTP </Electrophysiology_model>
Expand All @@ -58,7 +58,7 @@

<LS type="GMRES" >
<Max_iterations> 100 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>
<Krylov_space_dimension> 50 </Krylov_space_dimension>
</LS>

Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<Coupled> true </Coupled>
<Min_iterations> 1 </Min_iterations>
<Max_iterations> 1 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>

<Domain id="1" >
<Electrophysiology_model> BO </Electrophysiology_model>
Expand Down Expand Up @@ -105,7 +105,7 @@

<LS type="BICG" >
<Max_iterations> 100 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>
</LS>

<ECGLeads>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<Coupled> true </Coupled>
<Min_iterations> 1 </Min_iterations>
<Max_iterations> 1 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>

<Domain id="1" >
<Electrophysiology_model> BO </Electrophysiology_model>
Expand Down Expand Up @@ -105,7 +105,7 @@

<LS type="CG" >
<Preconditioner> svfsi </Preconditioner>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>
</LS>

<ECGLeads>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<Coupled> true </Coupled>
<Min_iterations> 1 </Min_iterations>
<Max_iterations> 1 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>

<Domain id="1" >
<Electrophysiology_model> TTP </Electrophysiology_model>
Expand Down Expand Up @@ -117,7 +117,7 @@

<LS type="GMRES" >
<Max_iterations> 100 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>
<Krylov_space_dimension> 50 </Krylov_space_dimension>
</LS>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<Coupled> true </Coupled>
<Min_iterations> 1 </Min_iterations>
<Max_iterations> 1 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>

<Domain id="1" >
<Electrophysiology_model> AP </Electrophysiology_model>
Expand Down Expand Up @@ -105,7 +105,7 @@

<LS type="GMRES" >
<Max_iterations> 100 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>
<Krylov_space_dimension> 50 </Krylov_space_dimension>
</LS>

Expand Down
4 changes: 2 additions & 2 deletions tests/cases/cep/purkinje/result_001.vtu
Git LFS file not shown
6 changes: 3 additions & 3 deletions tests/cases/cep/purkinje/svFSI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<Add_equation type="CEP" >
<Coupled> true </Coupled>
<Min_iterations> 1 </Min_iterations>
<Max_iterations> 3 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Max_iterations> 2 </Max_iterations>
<Tolerance> 1e-12 </Tolerance>

<Domain id="1" >
<Electrophysiology_model> TTP </Electrophysiology_model>
Expand Down Expand Up @@ -68,7 +68,7 @@

<LS type="GMRES" >
<Max_iterations> 100 </Max_iterations>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>
<Krylov_space_dimension> 50 </Krylov_space_dimension>
</LS>

Expand Down
4 changes: 2 additions & 2 deletions tests/cases/cep/spiral_BO_2d/result_001.vtu
Git LFS file not shown
6 changes: 3 additions & 3 deletions tests/cases/cep/spiral_BO_2d/svFSI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<Add_equation type="CEP" >
<Coupled> true </Coupled>
<Min_iterations> 1 </Min_iterations>
<Max_iterations> 5 </Max_iterations>
<Tolerance> 1e-4 </Tolerance>
<Max_iterations> 2 </Max_iterations>
<Tolerance> 1e-12 </Tolerance>

<Domain id="1" >
<Electrophysiology_model> BO </Electrophysiology_model>
Expand Down Expand Up @@ -88,7 +88,7 @@

<LS type="CG" >
<Preconditioner> rcs </Preconditioner>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>
</LS>

</Add_equation>
Expand Down
4 changes: 2 additions & 2 deletions tests/cases/cep/square_AP_2d/result_001.vtu
Git LFS file not shown
6 changes: 3 additions & 3 deletions tests/cases/cep/square_AP_2d/svFSI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<Add_equation type="CEP" >
<Coupled> true </Coupled>
<Min_iterations> 1 </Min_iterations>
<Max_iterations> 4 </Max_iterations>
<Tolerance> 1e-4 </Tolerance>
<Max_iterations> 2 </Max_iterations>
<Tolerance> 1e-12 </Tolerance>

<Domain id="1" >
<Electrophysiology_model> AP </Electrophysiology_model>
Expand All @@ -75,7 +75,7 @@

<LS type="CG" >
<Preconditioner> fsils </Preconditioner>
<Tolerance> 1e-6 </Tolerance>
<Tolerance> 1e-12 </Tolerance>
</LS>

</Add_equation>
Expand Down

0 comments on commit b71169c

Please sign in to comment.