You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: partitioned-heat-conduction/dirichlet-openfoam/run.sh
+4-13Lines changed: 4 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,11 @@ set -e -u
5
5
exec>>(tee --append "$LOGFILE")2>&1
6
6
7
7
# Build the heatTransfer solver, if not found.
8
-
# Race condition: when running both participants with OpenFOAM,
9
-
# they both need the same solver to be built.
10
-
# The first one builds it, the second one waits.
11
8
if!command -v heatTransfer > /dev/null 2>&1;then
12
-
if [ !-d"../solver-openfoam/Make/${WM_OPTIONS}" ];then
13
-
echo"Building the heatTransfer OpenFOAM solver"
14
-
wmake ../solver-openfoam/
15
-
else
16
-
echo"The executable heatTransfer is not found, but the build directory ../solver-openfoam/Make/${WM_OPTIONS} was detected. A build is probably in progress, waiting 90s..."
17
-
sleep 90
18
-
if!command -v heatTransfer > /dev/null 2>&1;then
19
-
exit 1
20
-
fi
21
-
fi
9
+
echo"Building ../solver-openfoam in a temporary build directory and installing to ${FOAM_USER_APPBIN}/heatTransfer..."
Copy file name to clipboardExpand all lines: partitioned-heat-conduction/neumann-openfoam/run.sh
+4-13Lines changed: 4 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,11 @@ set -e -u
5
5
exec>>(tee --append "$LOGFILE")2>&1
6
6
7
7
# Build the heatTransfer solver, if not found.
8
-
# Race condition: when running both participants with OpenFOAM,
9
-
# they both need the same solver to be built.
10
-
# The first one builds it, the second one waits.
11
8
if!command -v heatTransfer > /dev/null 2>&1;then
12
-
if [ !-d"../solver-openfoam/Make/${WM_OPTIONS}" ];then
13
-
echo"Building the heatTransfer OpenFOAM solver"
14
-
wmake ../solver-openfoam/
15
-
else
16
-
echo"The executable heatTransfer is not found, but the build directory ../solver-openfoam/Make/${WM_OPTIONS} was detected. A build is probably in progress, waiting 90s..."
17
-
sleep 90
18
-
if!command -v heatTransfer > /dev/null 2>&1;then
19
-
exit 1
20
-
fi
21
-
fi
9
+
echo"Building ../solver-openfoam in a temporary build directory and installing to ${FOAM_USER_APPBIN}/heatTransfer..."
0 commit comments