Skip to content

Commit 454fa98

Browse files
committed
Get the CI to work
1 parent bd40afb commit 454fa98

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/test_pyfans.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
apt update
26-
apt install -y cmake make g++ python3 python3-numpy python3-pip wget
26+
apt install -y cmake make g++ wget python3-dev python3-venv
2727
2828
- name: Install preCICE
2929
run: |
@@ -32,6 +32,8 @@ jobs:
3232
3333
- name: Install the Micro Manager
3434
run: |
35+
python3 -m venv .venv
36+
. .venv/bin/activate
3537
pip install micro-manager-precice
3638
3739
- name: Configure
@@ -42,5 +44,6 @@ jobs:
4244
4345
- name: Run a dummy macro-micro coupling test
4446
run: |
47+
. .venv/bin/activate
4548
cd test/test_pyfans
46-
python3 macro-cube.py & micro-manager-precice micro-manager.config.json
49+
python3 macro-cube.py & micro-manager-precice micro-manager-config.json

test/test_pyfans/macro-cube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def main():
5858
participant.advance(dt)
5959
dt = participant.get_max_time_step_size()
6060

61-
participant.finalize()
61+
participant.finalize()
6262

6363

6464
if __name__ == "__main__":

test/test_pyfans/precice-config.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</participant>
4949

5050
<participant name="Micro-Manager">
51-
<receive-mesh name="cube" from="macro-cube" direct-access="true" safety-factor="0.0"/>
51+
<receive-mesh name="cube" from="macro-cube" api-access="true" safety-factor="0.0"/>
5252
<read-data name="strains1to3" mesh="cube"/>
5353
<read-data name="strains4to6" mesh="cube"/>
5454
<write-data name="stresses1to3" mesh="cube"/>
@@ -77,8 +77,8 @@
7777
<exchange data="cmat5" mesh="cube" from="Micro-Manager" to="macro-cube"/>
7878
<exchange data="cmat6" mesh="cube" from="Micro-Manager" to="macro-cube"/>
7979
<exchange data="cmat7" mesh="cube" from="Micro-Manager" to="macro-cube"/>
80-
<exchange data="strains1to3" mesh="cube" from="macro-cube" to="Micro-Manager" initialize="yes"/>
81-
<exchange data="strains4to6" mesh="cube" from="macro-cube" to="Micro-Manager" initialize="yes"/>
80+
<exchange data="strains1to3" mesh="cube" from="macro-cube" to="Micro-Manager"/>
81+
<exchange data="strains4to6" mesh="cube" from="macro-cube" to="Micro-Manager"/>
8282
</coupling-scheme:serial-explicit>
8383

8484
</precice-configuration>

0 commit comments

Comments
 (0)