2022-02-08 18:28:59 +01:00
|
|
|
--- ./etc/bashrc.orig 2021-12-20 19:57:43.000000000 +0100
|
|
|
|
+++ ./etc/bashrc 2022-02-08 17:16:21.817030684 +0100
|
|
|
|
@@ -69,7 +69,7 @@
|
|
|
|
# = Gcc | Clang | Icc | Icx | Amd | Arm | Cray | Fujitsu |
|
2020-07-12 09:15:11 +02:00
|
|
|
# Gcc<digits> | Clang<digits>
|
2022-02-08 18:28:59 +01:00
|
|
|
# [Not well tested: Pgi | Nvidia]
|
2020-07-12 09:15:11 +02:00
|
|
|
-export WM_COMPILER=Gcc
|
|
|
|
+export WM_COMPILER=Clang
|
|
|
|
|
|
|
|
# [WM_PRECISION_OPTION] - Floating-point precision:
|
|
|
|
# = DP | SP | SPDP
|
2022-02-08 18:28:59 +01:00
|
|
|
@@ -114,8 +114,8 @@
|
2017-11-22 19:40:17 +01:00
|
|
|
# --
|
|
|
|
projectDir="${BASH_SOURCE:-${ZSH_NAME:+$0}}";
|
|
|
|
[ -n "$projectDir" ] && projectDir="$(\cd $(dirname $projectDir)/.. && \pwd -L)" ||\
|
|
|
|
-projectDir="$HOME/OpenFOAM/OpenFOAM-$WM_PROJECT_VERSION"
|
2020-07-12 09:15:11 +02:00
|
|
|
-# projectDir="/opt/openfoam/OpenFOAM-$WM_PROJECT_VERSION"
|
2017-11-22 19:40:17 +01:00
|
|
|
+# projectDir="$HOME/OpenFOAM/OpenFOAM-$WM_PROJECT_VERSION"
|
2020-07-12 09:15:11 +02:00
|
|
|
+projectDir="@TERMUX_PREFIX@/opt/OpenFOAM-$WM_PROJECT_VERSION"
|
2017-11-22 19:40:17 +01:00
|
|
|
# projectDir="/usr/local/OpenFOAM/OpenFOAM-$WM_PROJECT_VERSION"
|
|
|
|
################################################################################
|
2020-07-12 09:15:11 +02:00
|
|
|
# Or optionally hard-coded (eg, with autoconfig)
|
2022-02-08 18:28:59 +01:00
|
|
|
@@ -164,7 +164,7 @@
|
2017-11-22 19:40:17 +01:00
|
|
|
|
|
|
|
# Capture values of old directories to be cleaned from PATH, LD_LIBRARY_PATH
|
|
|
|
foamOldDirs="$WM_PROJECT_DIR $WM_THIRD_PARTY_DIR \
|
2022-02-08 18:28:59 +01:00
|
|
|
- $HOME/$WM_PROJECT/${USER:-user} $FOAM_USER_APPBIN $FOAM_USER_LIBBIN \
|
|
|
|
+ $HOME/$WM_PROJECT/${USER:-termux} $FOAM_USER_APPBIN $FOAM_USER_LIBBIN \
|
2020-07-12 09:15:11 +02:00
|
|
|
$WM_PROJECT_SITE $FOAM_SITE_APPBIN $FOAM_SITE_LIBBIN \
|
|
|
|
$FOAM_MODULE_APPBIN $FOAM_MODULE_LIBBIN"
|
2017-11-22 19:40:17 +01:00
|
|
|
|
2022-02-08 18:28:59 +01:00
|
|
|
@@ -172,7 +172,7 @@
|
2017-11-22 19:40:17 +01:00
|
|
|
export WM_PROJECT_DIR="$projectDir"
|
|
|
|
|
|
|
|
# [WM_PROJECT_USER_DIR] - Location of user files
|
2022-02-08 18:28:59 +01:00
|
|
|
-export WM_PROJECT_USER_DIR="$HOME/$WM_PROJECT/${USER:-user}-$WM_PROJECT_VERSION"
|
|
|
|
+export WM_PROJECT_USER_DIR="$HOME/$WM_PROJECT/${USER:-termux}-$WM_PROJECT_VERSION"
|
2017-11-22 19:40:17 +01:00
|
|
|
|
|
|
|
# [WM_PROJECT_SITE] - Location of site-specific (group) files
|
|
|
|
# Default (unset) implies WM_PROJECT_DIR/site
|