Skip to content

Merge branch 'test-cases-dissertation' into use-github-actions-for-di… #40

Merge branch 'test-cases-dissertation' into use-github-actions-for-di…

Merge branch 'test-cases-dissertation' into use-github-actions-for-di… #40

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