From 3a00c01c7d18af150c90a4c5eee382570cb96135 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Fri, 30 Aug 2024 16:18:20 +0200 Subject: [PATCH] Run case in venv. See #547. --- partitioned-heat-conduction/dirichlet-fenics/run.sh | 4 ++++ partitioned-heat-conduction/neumann-fenics/run.sh | 4 ++++ .../solver-fenics/requirements.txt | 11 +++++++++++ 3 files changed, 19 insertions(+) create mode 100644 partitioned-heat-conduction/solver-fenics/requirements.txt diff --git a/partitioned-heat-conduction/dirichlet-fenics/run.sh b/partitioned-heat-conduction/dirichlet-fenics/run.sh index 53c2e9006..ccf3b10f1 100755 --- a/partitioned-heat-conduction/dirichlet-fenics/run.sh +++ b/partitioned-heat-conduction/dirichlet-fenics/run.sh @@ -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 diff --git a/partitioned-heat-conduction/neumann-fenics/run.sh b/partitioned-heat-conduction/neumann-fenics/run.sh index 874fdec84..ef1398d56 100755 --- a/partitioned-heat-conduction/neumann-fenics/run.sh +++ b/partitioned-heat-conduction/neumann-fenics/run.sh @@ -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 diff --git a/partitioned-heat-conduction/solver-fenics/requirements.txt b/partitioned-heat-conduction/solver-fenics/requirements.txt new file mode 100644 index 000000000..fe3302591 --- /dev/null +++ b/partitioned-heat-conduction/solver-fenics/requirements.txt @@ -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 \ No newline at end of file