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