Skip to content

Commit 058be0f

Browse files
committed
Reorder partitioned-heat-conduction/dirichlet-fenics/run.sh for consistency
1 parent 387a1ae commit 058be0f

File tree

1 file changed

+9
-6
lines changed
  • partitioned-heat-conduction/dirichlet-fenics

1 file changed

+9
-6
lines changed

partitioned-heat-conduction/dirichlet-fenics/run.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env bash
22
set -e -u
33

4+
. ../../tools/log.sh
5+
exec > >(tee --append "$LOGFILE") 2>&1
6+
47
if [ ! -v PRECICE_TUTORIALS_NO_VENV ]
58
then
69
python3 -m venv --system-site-packages .venv
710
. .venv/bin/activate
811
pip install -r ../solver-fenics/requirements.txt
912
fi
1013

11-
. ../../tools/log.sh
12-
exec > >(tee --append "$LOGFILE") 2>&1
13-
1414
if [ $# -eq 0 ]
1515
then
1616
echo "Running simulation with default FEniCS implementation"
@@ -30,9 +30,12 @@ else
3030
python3 ../solver-fenics/heatHigherOrder.py Dirichlet
3131
;;
3232
sdc)
33-
# install pySDC + its dependencies only if needed
34-
pip install git+https://github.com/Parallel-in-Time/[email protected]
35-
pip install pySDC~=5.5
33+
if [ ! -v PRECICE_TUTORIALS_NO_VENV ]
34+
then
35+
# install pySDC + its dependencies only if needed
36+
pip install git+https://github.com/Parallel-in-Time/[email protected]
37+
pip install pySDC~=5.5
38+
fi
3639
echo "Running simulation with pySDC+FEniCS implementation"
3740
python3 ../solver-fenics/heat_pySDC.py Dirichlet
3841
;;

0 commit comments

Comments
 (0)