File tree Expand file tree Collapse file tree 39 files changed +626
-122
lines changed
channel-transport-reaction
elastic-tube-3d/solid-fenics
flow-around-controlled-moving-cylinder
partitioned-heat-conduction-complex
partitioned-heat-conduction-direct
partitioned-heat-conduction-overlap
partitioned-heat-conduction
two-scale-heat-conduction Expand file tree Collapse file tree 39 files changed +626
-122
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,22 @@ set -e -u
44. ../../tools/log.sh
55exec > >( tee --append " $LOGFILE " ) 2>&1
66
7- python3 -m venv --system-site-package .venv
8- . .venv/bin/activate
9- pip install -r requirements.txt && pip freeze > pip-installed-packages.log
7+ if [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv --system-site-package .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
1023
1124python3 chemical-reaction-advection-diffusion.py
1225
Original file line number Diff line number Diff line change @@ -4,10 +4,22 @@ set -e -u
44. ../../tools/log.sh
55exec > >( tee --append " $LOGFILE " ) 2>&1
66
7- python3 -m venv --system-site-package .venv
8- . .venv/bin/activate
9- pip install -r requirements.txt && pip freeze > pip-installed-packages.log
10-
7+ if [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv --system-site-package .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
1123
1224python3 fluid.py
1325
Original file line number Diff line number Diff line change @@ -4,9 +4,23 @@ set -e -u
44. ../../tools/log.sh
55exec > >( 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 [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
23+
1024python3 fluid.py
1125
1226close_log
Original file line number Diff line number Diff line change @@ -4,9 +4,23 @@ set -e -u
44. ../../tools/log.sh
55exec > >( 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 [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
23+
1024python3 transport.py " $@ "
1125
1226close_log
Original file line number Diff line number Diff line change @@ -4,9 +4,22 @@ set -e -u
44. ../../tools/log.sh
55exec > >( 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 [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
1023
1124python3 ./FluidSolver.py ../precice-config.xml
1225
Original file line number Diff line number Diff line change @@ -4,9 +4,22 @@ set -e -u
44. ../../tools/log.sh
55exec > >( 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 [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
1023
1124python3 ./SolidSolver.py ../precice-config.xml
1225
Original file line number Diff line number Diff line change @@ -4,8 +4,21 @@ set -e -u
44. ../../tools/log.sh
55exec > >( tee --append " $LOGFILE " ) 2>&1
66
7- python3 -m venv --system-site-package .venv
8- . .venv/bin/activate
9- pip install -r requirements.txt && pip freeze > pip-installed-packages.log
7+ if [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv --system-site-package .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
1023
1124python3 solid.py
Original file line number Diff line number Diff line change @@ -15,9 +15,22 @@ if [ ! -f PIDcontroller.fmu ]; then
1515 cd ../../
1616fi
1717
18- python3 -m venv .venv
19- . .venv/bin/activate
20- pip install -r requirements.txt && pip freeze > pip-installed-packages.log
18+ if [ $# -eq 0 ]
19+ then
20+ echo " Installing dependencies in a Python virtual environment"
21+ python3 -m venv .venv
22+ . .venv/bin/activate
23+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
24+ else
25+ case " $1 " in
26+ -[s]|--skip-setup)
27+ echo " Skipping setup: Assuming an already prepared Python environment."
28+ ;;
29+ * )
30+ echo " Usage: $0 [-s|--skip-setup]"
31+ ;;
32+ esac
33+ fi
2134
2235fmiprecice ./fmi-settings.json ./precice-settings.json
2336
Original file line number Diff line number Diff line change @@ -4,9 +4,22 @@ set -e -u
44. ../../tools/log.sh
55exec > >( 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 [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
1023
1124python3 solid.py ../precice-config.xml
1225
Original file line number Diff line number Diff line change @@ -4,9 +4,22 @@ set -e -u
44. ../../tools/log.sh
55exec > >( tee --append " $LOGFILE " ) 2>&1
66
7- python3 -m venv --system-site-packages .venv
8- . .venv/bin/activate
9- pip install -r requirements.txt && pip freeze > pip-installed-packages.log
7+ if [ $# -eq 0 ]
8+ then
9+ echo " Installing dependencies in a Python virtual environment"
10+ python3 -m venv --system-site-package .venv
11+ . .venv/bin/activate
12+ pip install -r requirements.txt && pip freeze > pip-installed-packages.log
13+ else
14+ case " $1 " in
15+ -[s]|--skip-setup)
16+ echo " Skipping setup: Assuming an already prepared Python environment."
17+ ;;
18+ * )
19+ echo " Usage: $0 [-s|--skip-setup]"
20+ ;;
21+ esac
22+ fi
1023
1124SU2_preCICE_CHT.py -f laminar_config_unsteady.cfg -r --parallel
1225
You can’t perform that action at this time.
0 commit comments