Skip to content

Fix adaptivity CPU time export #946

Fix adaptivity CPU time export

Fix adaptivity CPU time export #946

name: Run macro-micro dummy
on:
push:
branches:
- main
- develop
pull_request:
branches:
- "*"
jobs:
run_dummy:
name: Run dummy
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: micro-manager
- 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
apt-get -qq install sudo
pip3 install --upgrade pip
- name: Install micro-manager
working-directory: micro-manager
run: |
pip3 install .
- name: Run python macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: |
micro-manager-precice micro-manager-python-config.json &
python3 macro_dummy.py
- name: Run adaptive python macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: |
micro-manager-precice micro-manager-python-adaptivity-config.json &
python3 macro_dummy.py
- name: Run c++ macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: |
cd cpp-dummy/
pip install pybind11
c++ -O3 -Wall -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) micro_cpp_dummy.cpp -o micro_dummy$(python3-config --extension-suffix)
cd ../
micro-manager-precice micro-manager-cpp-config.json &
python3 macro_dummy.py
- name: Run adaptive c++ macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: |
micro-manager-precice micro-manager-cpp-adaptivity-config.json &
python3 macro_dummy.py