Skip to content

Commit ec6bbf1

Browse files
authored
Merge pull request #156 from precice/micro-manager-v0.6.0
Release v0.6.0
2 parents 8c3821e + 768fcfe commit ec6bbf1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1601
-992
lines changed

.github/workflows/run-adaptivity-test.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Test adaptivity functionality in parallel
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- develop
7+
pull_request:
8+
branches:
9+
- "*"
10+
jobs:
11+
adaptivity_integration_parallel_tests:
12+
name: Adaptivity tests in parallel
13+
runs-on: ubuntu-latest
14+
container: precice/precice:nightly
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
path: micro-manager
20+
21+
- name: Install sudo for MPI
22+
working-directory: micro-manager
23+
run: |
24+
apt-get -qq update
25+
apt-get -qq install sudo
26+
27+
- name: Use mpi4py
28+
uses: mpi4py/setup-mpi@v1
29+
30+
- name: Install dependencies
31+
working-directory: micro-manager
32+
run: |
33+
apt-get -qq update
34+
apt-get -qq install python3-dev git python3-venv pkg-config
35+
36+
- name: Create a virtual environment and install Micro Manager in it
37+
working-directory: micro-manager
38+
run: |
39+
python3 -m venv .venv
40+
. .venv/bin/activate
41+
pip install .
42+
43+
- name: Run integration test with global adaptivity in parallel
44+
timeout-minutes: 3
45+
working-directory: micro-manager
46+
run: |
47+
. .venv/bin/activate
48+
cd tests/integration/test_unit_cube/
49+
mpiexec -n 2 --allow-run-as-root micro-manager-precice micro-manager-config-global-adaptivity-parallel.json &
50+
python3 unit_cube.py 2
51+
52+
- name: Run parallel unit tests
53+
working-directory: micro-manager
54+
run: |
55+
. .venv/bin/activate
56+
cd tests/unit
57+
mpiexec -n 2 --allow-run-as-root python3 -m unittest test_adaptivity_parallel.py
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Test adaptivity functionality in serial
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- develop
7+
pull_request:
8+
branches:
9+
- "*"
10+
jobs:
11+
adaptivity_serial_tests:
12+
name: Adaptivity tests in serial
13+
runs-on: ubuntu-latest
14+
container: precice/precice:nightly
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
path: micro-manager
20+
21+
- name: Install dependencies
22+
working-directory: micro-manager
23+
run: |
24+
apt-get -qq update
25+
apt-get -qq install python3-dev python3-venv git pkg-config
26+
27+
- name: Create a virtual environment and install the Micro Manager in it
28+
working-directory: micro-manager
29+
run: |
30+
python3 -m venv .venv
31+
. .venv/bin/activate
32+
pip install .
33+
34+
- name: Run integration test with local adaptivity
35+
timeout-minutes: 3
36+
working-directory: micro-manager
37+
run: |
38+
. .venv/bin/activate
39+
cd tests/integration/test_unit_cube
40+
micro-manager-precice micro-manager-config-local-adaptivity.json &
41+
python3 unit_cube.py 2
42+
43+
- name: Run integration test with global adaptivity
44+
timeout-minutes: 3
45+
working-directory: micro-manager
46+
run: |
47+
. .venv/bin/activate
48+
cd tests/integration/test_unit_cube
49+
micro-manager-precice micro-manager-config-global-adaptivity.json &
50+
python3 unit_cube.py 2
51+
52+
- name: Run adaptivity unit tests in serial
53+
working-directory: micro-manager
54+
run: |
55+
. .venv/bin/activate
56+
cd tests/unit
57+
python3 -m unittest test_adaptivity_serial.py

.github/workflows/run-domain-decomposition-tests.yml

Lines changed: 11 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,6 @@ on:
88
branches:
99
- "*"
1010
jobs:
11-
domain_decomposition_integration_tests:
12-
name: Run domain decomposition integration tests
13-
runs-on: ubuntu-latest
14-
container: precice/precice:nightly
15-
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v4
18-
with:
19-
path: micro-manager
20-
21-
- name: Install sudo for MPI
22-
working-directory: micro-manager
23-
run: |
24-
apt-get -qq update
25-
apt-get -qq install sudo
26-
27-
- name: Use mpi4py
28-
uses: mpi4py/setup-mpi@v1
29-
30-
- name: Install Dependencies
31-
working-directory: micro-manager
32-
run: |
33-
apt-get -qq update
34-
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
35-
pip3 install --upgrade pip
36-
37-
- name: Install micro-manager
38-
working-directory: micro-manager
39-
run: pip3 install .
40-
41-
- name: Run integration test (2 processes)
42-
timeout-minutes: 3
43-
working-directory: micro-manager/tests/integration/test_unit_cube
44-
run: |
45-
mpiexec -n 2 --allow-run-as-root micro-manager-precice micro-manager-config-parallel-1.json &
46-
python3 unit_cube.py
47-
48-
- name: Run integration test (6 processes)
49-
timeout-minutes: 3
50-
working-directory: micro-manager/tests/integration/test_unit_cube
51-
run: |
52-
mpiexec -n 6 --oversubscribe --allow-run-as-root micro-manager-precice micro-manager-config-parallel-2.json &
53-
python3 unit_cube.py
54-
5511
domain_decomposition_unit_tests:
5612
name: Run domain decomposition unit tests
5713
runs-on: ubuntu-latest
@@ -66,13 +22,18 @@ jobs:
6622
working-directory: micro-manager
6723
run: |
6824
apt-get -qq update
69-
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
70-
pip3 install --upgrade pip
25+
apt-get -qq install python3-dev python3-venv git pkg-config
7126
72-
- name: Install Micro Manager
27+
- name: Create a virtual environment and install the Micro Manager in it
7328
working-directory: micro-manager
74-
run: pip3 install --user .
29+
run: |
30+
python3 -m venv .venv
31+
. .venv/bin/activate
32+
pip install .
7533
7634
- name: Run unit tests
77-
working-directory: micro-manager/tests/unit
78-
run: python3 -m unittest test_domain_decomposition.py
35+
working-directory: micro-manager
36+
run: |
37+
. .venv/bin/activate
38+
cd tests/unit
39+
python3 -m unittest test_domain_decomposition.py

.github/workflows/run-macro-micro-dummy.yml

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,43 +23,55 @@ jobs:
2323
working-directory: micro-manager
2424
run: |
2525
apt-get -qq update
26-
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
27-
apt-get -qq install sudo
28-
pip3 install --upgrade pip
26+
apt-get -qq install python3-dev python3-venv git pkg-config
2927
30-
- name: Install micro-manager
28+
- name: Create a virtual environment and install Micro Manager in it
29+
timeout-minutes: 6
3130
working-directory: micro-manager
3231
run: |
33-
pip3 install .
32+
python3 -m venv .venv
33+
. .venv/bin/activate
34+
pip install .
3435
35-
- name: Run python macro-micro dummy
36+
- name: Run python dummy
3637
timeout-minutes: 3
37-
working-directory: micro-manager/examples
38+
working-directory: micro-manager
3839
run: |
40+
. .venv/bin/activate
41+
cd examples/
3942
micro-manager-precice micro-manager-python-config.json &
40-
python3 macro_dummy.py
43+
python3 macro_dummy.py no_adaptivity
44+
./clean-example.sh
4145
42-
- name: Run adaptive python macro-micro dummy
46+
- name: Run python dummy with adaptivity
4347
timeout-minutes: 3
44-
working-directory: micro-manager/examples
48+
working-directory: micro-manager
4549
run: |
50+
. .venv/bin/activate
51+
cd examples/
4652
micro-manager-precice micro-manager-python-adaptivity-config.json &
47-
python3 macro_dummy.py
53+
python3 macro_dummy.py adaptivity
54+
./clean-example.sh
4855
49-
- name: Run c++ macro-micro dummy
56+
- name: Run C++ dummy
5057
timeout-minutes: 3
51-
working-directory: micro-manager/examples
58+
working-directory: micro-manager
5259
run: |
53-
cd cpp-dummy/
60+
. .venv/bin/activate
61+
cd examples/cpp-dummy/
5462
pip install pybind11
5563
c++ -O3 -Wall -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) micro_cpp_dummy.cpp -o micro_dummy$(python3-config --extension-suffix)
5664
cd ../
5765
micro-manager-precice micro-manager-cpp-config.json &
58-
python3 macro_dummy.py
66+
python3 macro_dummy.py no_adaptivity
67+
./clean-example.sh
5968
60-
- name: Run adaptive c++ macro-micro dummy
69+
- name: Run adaptive C++ dummy
6170
timeout-minutes: 3
62-
working-directory: micro-manager/examples
71+
working-directory: micro-manager
6372
run: |
73+
. .venv/bin/activate
74+
cd examples/
6475
micro-manager-precice micro-manager-cpp-adaptivity-config.json &
65-
python3 macro_dummy.py
76+
python3 macro_dummy.py adaptivity
77+
./clean-example.sh

0 commit comments

Comments
 (0)