forked from precice/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (78 loc) · 3.4 KB
/
oscillator-overlap.yml
File metadata and controls
79 lines (78 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Run oscillator-overlap experiments
on:
push:
branches:
- use-github-actions-for-diss-cases
jobs:
run_experiments:
strategy:
matrix:
experiment:
- name: Figure 6.1 RK4 GA
args: '-tss runge_kutta_4 generalized_alpha -wd 3 -dt 0.05 -sb 4 4 -s 8 -sf 1 2 -w 1 -o convergence-studies/subcycling_rk4_ga.csv'
- name: Figure 6.1 RK4 RK4
args: '-tss runge_kutta_4 runge_kutta_4 -wd 3 -dt 0.05 -sb 4 4 -s 8 -sf 1 2 -w 1 -o convergence-studies/subcycling_rk4_rk4.csv'
- name: Figure 6.2a
args: '--config fig6_2a_config.csv -tss runge_kutta_4 generalized_alpha -wd 3 -o convergence-studies/contour_data.csv'
- name: Figure 6.2b S 2 4
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 4 -o convergence-studies/compensation_S_2_4.csv'
- name: Figure 6.2b S 2 8
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 8 -o convergence-studies/compensation_S_2_8.csv'
- name: Figure 6.2b S 2 16
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 16 -o convergence-studies/compensation_S_2_16.csv'
- name: Figure 6.2b S 2 32
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 32 -o convergence-studies/compensation_S_2_32.csv'
- name: Figure 6.2b S 2 64
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 64 -o convergence-studies/compensation_S_2_64.csv'
- name: Figure 6.2b S 2 128
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 128 -o convergence-studies/compensation_S_2_128.csv'
- name: Figure 6.2b S 2 256
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 256 -o convergence-studies/compensation_S_2_256.csv'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./oscillator-overlap
container: precice/precice:nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Dependencies
run: |
apt-get -qq update
apt-get -qq install software-properties-common python3-dev python3-pip python3.12-venv git apt-utils pkg-config
rm -rf /var/lib/apt/lists/*
- name: Create venv
run: |
./make-venv.sh
- name: Activate venv
# see https://stackoverflow.com/a/74669486
run: |
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Run tutorial
run: |
python3 doConvergenceStudy.py precice-config-template.xml --silent --executor Github ${{matrix.experiment.args}}
- name: Store logs
if: always()
uses: actions/upload-artifact@v4
with:
name: oscillator-overlap logs ${{ matrix.experiment.name }}
path: |
perpendicular-flap/fluid-openfoam/stdout-Fluid.log
perpendicular-flap/solid-fenics/stdout-Solid.log
- name: Store results
if: always()
uses: actions/upload-artifact@v4
with:
name: oscillator-overlap ${{ matrix.experiment.name }}
path: |
# working directory is ignored by actions/upload-artifact
./oscillator-overlap/convergence-studies
merge:
runs-on: ubuntu-latest
needs: run_experiments
steps:
- name: Merge results
uses: actions/upload-artifact/merge@v4
with:
name: oscillator-overlap