-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in handling of vector data (#143)
* Fix bug where the Micro Manager cannot handle vector data provided by a micro simulation object * Fix YAML syntax error in workflow file * Fix parallel integration test * Add debug print statement to see the problem in the GitHub Action log * More debugging statement to see what it going on in the GitHub Action * Add correct check for micro_sim_output to ensure that the crash handling unit test passes * Add Changelog entry
- Loading branch information
1 parent
a436880
commit c2eefed
Showing
5 changed files
with
88 additions
and
41 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,80 @@ | ||
name: Test adaptivity functionality in parallel | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- "*" | ||
jobs: | ||
adaptivity_integration_test_parallel: | ||
name: Adaptivity integration test in parallel | ||
runs-on: ubuntu-latest | ||
container: precice/precice:nightly | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
path: micro-manager | ||
|
||
- name: Install sudo for MPI | ||
working-directory: micro-manager | ||
run: | | ||
apt-get -qq update | ||
apt-get -qq install sudo | ||
- name: Use mpi4py | ||
uses: mpi4py/setup-mpi@v1 | ||
|
||
- name: Install dependencies | ||
working-directory: micro-manager | ||
run: | | ||
apt-get -qq update | ||
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config | ||
pip3 install --upgrade pip | ||
- name: Install Micro Manager | ||
working-directory: micro-manager | ||
run: pip3 install . | ||
|
||
- name: Run integration test with global adaptivity in parallel | ||
timeout-minutes: 3 | ||
working-directory: micro-manager/tests/integration/test_unit_cube | ||
run: | | ||
mpiexec -n 2 --allow-run-as-root micro-manager-precice micro-manager-config-global-adaptivity-parallel.json & | ||
python3 unit_cube.py | ||
adaptivity_unit_tests_parallel: | ||
name: Adaptivity unit tests in parallel | ||
runs-on: ubuntu-latest | ||
container: precice/precice:nightly | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
path: micro-manager | ||
|
||
- name: Install sudo for MPI | ||
working-directory: micro-manager | ||
run: | | ||
apt-get -qq update | ||
apt-get -qq install sudo | ||
- name: Use mpi4py | ||
uses: mpi4py/setup-mpi@v1 | ||
|
||
- name: Install Dependencies | ||
working-directory: micro-manager | ||
run: | | ||
apt-get -qq update | ||
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config | ||
pip3 install --upgrade pip | ||
- name: Install Micro Manager | ||
working-directory: micro-manager | ||
run: pip3 install --user . | ||
|
||
- name: Run parallel unit tests | ||
working-directory: micro-manager/tests/unit | ||
run: mpiexec -n 2 --allow-run-as-root python3 -m unittest test_adaptivity_parallel.py |
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