Skip to content

Commit

Permalink
Run case in venv. See precice#547.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg committed Aug 30, 2024
1 parent d63c548 commit 3a00c01
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions partitioned-heat-conduction/dirichlet-fenics/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -e -u

python3 -m venv --system-site-packages ../solver-fenics/.venv
. ../solver-fenics/.venv/bin/activate
pip install -r ../solver-fenics/requirements.txt

. ../../tools/log.sh
exec > >(tee --append "$LOGFILE") 2>&1

Expand Down
4 changes: 4 additions & 0 deletions partitioned-heat-conduction/neumann-fenics/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -e -u

python3 -m venv --system-site-packages ../solver-fenics/.venv
. ../solver-fenics/.venv/bin/activate
pip install -r ../solver-fenics/requirements.txt

. ../../tools/log.sh
exec > >(tee --append "$LOGFILE") 2>&1

Expand Down
11 changes: 11 additions & 0 deletions partitioned-heat-conduction/solver-fenics/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
numpy >1, <2
fenicsprecice~=2.0
scipy

# Assuming FEniCS from ppa:fenics-packages/fenics was installed https://fenicsproject.org/download/archive/
# Use --system-site-packages in venv
fenics-dijitso==2019.2.0.dev0
fenics-dolfin==2019.2.0.13.dev0
fenics-ffc==2019.2.0.dev0
fenics-fiat==2019.2.0.dev0
fenics-ufl-legacy==2022.3.0

0 comments on commit 3a00c01

Please sign in to comment.