Skip to content

Commit 3346459

Browse files
committed
Add missing venv checks in partitioned-pipe-multiscale
1 parent c0b9e5c commit 3346459

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

  • partitioned-pipe-multiscale

partitioned-pipe-multiscale/fluid1d-left-nutils/run.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
python3 -m venv .venv
8-
. .venv/bin/activate
9-
pip install -r requirements.txt && pip freeze > pip-installed-packages.log
7+
if [ ! -v PRECICE_TUTORIALS_NO_VENV ]
8+
then
9+
python3 -m venv .venv
10+
. .venv/bin/activate
11+
pip install -r requirements.txt && pip freeze > pip-installed-packages.log
12+
fi
1013

1114
NUTILS_RICHOUTPUT=no python3 ../solver-fluid1d-nutils/Fluid1D.py side=Left
1215

partitioned-pipe-multiscale/fluid1d-right-nutils/run.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
python3 -m venv .venv
8-
. .venv/bin/activate
9-
pip install -r requirements.txt && pip freeze > pip-installed-packages.log
7+
if [ ! -v PRECICE_TUTORIALS_NO_VENV ]
8+
then
9+
python3 -m venv .venv
10+
. .venv/bin/activate
11+
pip install -r requirements.txt && pip freeze > pip-installed-packages.log
12+
fi
1013

1114
NUTILS_RICHOUTPUT=no python3 ../solver-fluid1d-nutils/Fluid1D.py side=Right
1215

0 commit comments

Comments
 (0)