etc: Explicit control of decomposition and ParaView installation type
*** Note that this commit depends on a corresponding change in
ThirdParty-dev. Ensure that both repositories are up to date before
re-building OpenFOAM.
New environment variables have been added to explicitly control the
installation type of the thirdparty decomposition libraries and of the
ParaView visualiation software. These are set in the etc/bashrc and can
be overridden in a ~/.OpenFOAM/<version>/prefs.sh file or similar.
The variables relating to the decomposition libraries are SCOTCH_TYPE,
METIS_TYPE, PARMETIS_TYPE and ZOLTAN_TYPE, and they can take values of
none, system, or ThirdParty. In the case of ThirdParty, a
<library>_VERSION variable can also be specified. If the version is not
specified then the configuration will search for a source directory, and
if multiple such directories are found then the one with the highest
version number will be used.
The variable relating to ParaView is ParaView_TYPE, and this can be
similarly be set to none, system, or ThirdParty, and ParaView_VERSION
can also be specified when the type is ThirdParty. If the version is not
specified then the installation with the highest version number will be
used.
An example ~/.OpenFOAM/dev/prefs.sh file, in which all decomposition
libraries are enabled, and the Scotch and ParaView versions are
explicitly set, is as follows:
export SCOTCH_TYPE=ThirdParty
export SCOTCH_VERSION=7.0.3
export METIS_TYPE=ThirdParty
export PARMETIS_TYPE=ThirdParty
export ZOLTAN_TYPE=ThirdParty
export ParaView_TYPE=ThirdParty
export ParaView_VERSION=5.11.2
*** Note that if version numbers are not set then the configuration will
search for a decomposition source directory, but it will search for a
ParaView installation directory. This is because decomposition libraries
are built as part of OpenFOAM's ./Allwmake, but ParaView is not. This
distinction remains. If a local compilation of ParaView is needed, then
'./makeParaView -version X.XX.X' should be called explicitly in the
third party directory prior to building OpenFOAM.
The name of the third party directory can now also be independently set.
This simplifies some packaging processes in that it permits third party
to be located within the OpenFOAM installation directory and therefore
bundled into the same binary package.
This commit is contained in:
@ -10,12 +10,6 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$PV_PLUGIN_PATH" ]
|
|
||||||
then
|
|
||||||
echo " Error: \$PV_PLUGIN_PATH is unset."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ensure CMake gets the correct C/C++ compilers
|
# Ensure CMake gets the correct C/C++ compilers
|
||||||
[ -n "$WM_CC" ] && export CC="$WM_CC"
|
[ -n "$WM_CC" ] && export CC="$WM_CC"
|
||||||
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
|
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -99,44 +99,33 @@ prefixDir="${projectDir%/*}"
|
|||||||
# the name used for the project directory
|
# the name used for the project directory
|
||||||
projectDirName="${projectDir##*/}"
|
projectDirName="${projectDir##*/}"
|
||||||
|
|
||||||
# version number used for debian packaging
|
# handle standard and packaged naming conventions
|
||||||
unset versionNum
|
|
||||||
|
|
||||||
#
|
|
||||||
# handle standard and debian naming convention
|
|
||||||
#
|
|
||||||
case "$projectDirName" in
|
case "$projectDirName" in
|
||||||
OpenFOAM-*) # standard naming convention OpenFOAM-<VERSION>
|
OpenFOAM-*) # standard naming convention OpenFOAM-<VERSION>
|
||||||
version="${projectDirName##OpenFOAM-}"
|
version="${projectDirName##OpenFOAM-}"
|
||||||
;;
|
|
||||||
openfoam[0-9]*) # debian naming convention
|
|
||||||
versionNum="${projectDirName##openfoam}"
|
|
||||||
case "$versionNum" in
|
|
||||||
[4-9]) # v4-9
|
|
||||||
version="$versionNum"
|
|
||||||
;;
|
;;
|
||||||
[1-2][0-9]) # v10 onwards
|
openfoam-dev) # debian naming convention for dev
|
||||||
version="$versionNum"
|
version="${projectDirName##openfoam-}"
|
||||||
;;
|
;;
|
||||||
3[0-9]) # e.g. v3.0
|
openfoam[1-2][0-9]) # debian naming convention for v10 onwards
|
||||||
version=$(echo "$versionNum" | sed -e 's@\(.\)\(.\)@\1.\2@')
|
version="${projectDirName##openfoam}"
|
||||||
;;
|
;;
|
||||||
[1-2][0-9][0-9]) # e.g. v1.7.0
|
openfoam[4-9]) # debian naming convention for v4-9
|
||||||
version=$(echo "$versionNum" | sed -e 's@\(.\)\(.\)\(.\)@\1.\2.\3@')
|
version="${projectDirName##openfoam}"
|
||||||
|
;;
|
||||||
|
openfoam3[0-9]) # debian naming convention for v3.?
|
||||||
|
version=$(echo "${projectDirName##openfoam}" | sed -e 's@\(.\)\(.\)@\1.\2@')
|
||||||
|
;;
|
||||||
|
openfoam[1-2][0-9][0-9]) # debian naming convention for v1.?.? and v2.?.?
|
||||||
|
version=$(echo "${projectDirName##openfoam}" | sed -e 's@\(.\)\(.\)\(.\)@\1.\2.\3@')
|
||||||
|
;;
|
||||||
|
app) # flatpak naming convention
|
||||||
|
version="${FLATPAK_ID##OpenFOAM-}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
version="$WM_PROJECT_VERSION"
|
echo "Error : unknown/unsupported naming convention"
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
|
||||||
;;
|
|
||||||
openfoam-dev) # debian naming convention
|
|
||||||
versionNum="${projectDirName##openfoam}"
|
|
||||||
version="${versionNum##-}"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Error : unknown/unsupported naming convention"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# default mode is 'ugo'
|
# default mode is 'ugo'
|
||||||
@ -184,11 +173,6 @@ do
|
|||||||
-v | -version)
|
-v | -version)
|
||||||
[ "$#" -ge 2 ] || error "'$1' option requires an argument"
|
[ "$#" -ge 2 ] || error "'$1' option requires an argument"
|
||||||
version="$2"
|
version="$2"
|
||||||
# convert x.y.z -> xyz version (if installation looked like debian)
|
|
||||||
if [ -n "$versionNum" ]
|
|
||||||
then
|
|
||||||
versionNum=$(echo "$version" | sed -e 's@\.@@g')
|
|
||||||
fi
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--)
|
--)
|
||||||
@ -205,15 +189,6 @@ do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# debugging:
|
|
||||||
# echo "Installed locations:"
|
|
||||||
# for i in projectDir prefixDir projectDirName version versionNum
|
|
||||||
# do
|
|
||||||
# eval echo "$i=\$$i"
|
|
||||||
# done
|
|
||||||
|
|
||||||
|
|
||||||
# Save the essential bits of information
|
# Save the essential bits of information
|
||||||
# silently remove leading ~OpenFOAM/ (used in Foam::findEtcFile)
|
# silently remove leading ~OpenFOAM/ (used in Foam::findEtcFile)
|
||||||
nArgs=$#
|
nArgs=$#
|
||||||
@ -237,14 +212,7 @@ esac
|
|||||||
|
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
*o*) # other (shipped)
|
*o*) # other (shipped)
|
||||||
if [ -n "$versionNum" ]
|
dirList="$dirList $prefixDir/$projectDirName/etc"
|
||||||
then
|
|
||||||
# debian packaging
|
|
||||||
dirList="$dirList $prefixDir/openfoam$versionNum/etc"
|
|
||||||
else
|
|
||||||
# standard packaging
|
|
||||||
dirList="$dirList $prefixDir/${WM_PROJECT:-OpenFOAM}-$version/etc"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
set -- $dirList
|
set -- $dirList
|
||||||
|
|||||||
214
bin/paraFoam
214
bin/paraFoam
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -28,9 +28,6 @@
|
|||||||
# Description
|
# Description
|
||||||
# start paraview with the OpenFOAM libraries
|
# start paraview with the OpenFOAM libraries
|
||||||
#
|
#
|
||||||
# Note
|
|
||||||
# combining -block or -builtin options with the -region option yields
|
|
||||||
# undefined behaviour
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
cat<<USAGE
|
cat<<USAGE
|
||||||
@ -61,19 +58,12 @@ error() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pvExec () {
|
pvExec () {
|
||||||
if [ "$ParaView_GL" = mesa ]
|
# For now filter out any ld.so errors. Caused by non-system compiler?
|
||||||
then
|
paraview "$@" 2>&1 | grep -v -F 'Inconsistency detected by ld.so'
|
||||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ParaView_LIB_DIR/mesa paraview "$@"
|
|
||||||
else
|
|
||||||
paraview "$@"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
noPVReader () {
|
noPV() {
|
||||||
cat<<EOF
|
cat<<EOF
|
||||||
FATAL ERROR: The official reader module for OpenFOAM data does not exist on
|
|
||||||
your system. This means that the version of ParaView you are using was not
|
|
||||||
compiled with OpenFOAM, or distributed with a packaged version of OpenFOAM.
|
|
||||||
|
|
||||||
For information on packaged versions of OpenFOAM/ParaView and compilation of
|
For information on packaged versions of OpenFOAM/ParaView and compilation of
|
||||||
OpenFOAM/ParaView, see https://openfoam.org/download
|
OpenFOAM/ParaView, see https://openfoam.org/download
|
||||||
@ -85,6 +75,25 @@ module provided with ParaView by running:
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
noPVExe () {
|
||||||
|
cat<<EOF
|
||||||
|
FATAL ERROR: A ParaView executable was not found on your system. This means
|
||||||
|
that ParaView is not installed, or that OpenFOAM has been configured to use a
|
||||||
|
different installation of ParaView from that which is installed.
|
||||||
|
EOF
|
||||||
|
noPV
|
||||||
|
}
|
||||||
|
|
||||||
|
noPVReader () {
|
||||||
|
cat<<EOF
|
||||||
|
FATAL ERROR: The reader module for OpenFOAM data was not found on your system.
|
||||||
|
This means that OpenFOAM was not built with ParaView support, or that ParaView
|
||||||
|
is not installed, or that OpenFOAM has been configured to use a different
|
||||||
|
installation of ParaView from that which is installed.
|
||||||
|
EOF
|
||||||
|
noPV
|
||||||
|
}
|
||||||
|
|
||||||
# We want to do nice exit when running paraview to give paraview opportunity
|
# We want to do nice exit when running paraview to give paraview opportunity
|
||||||
# to clean up
|
# to clean up
|
||||||
unset FOAM_ABORT
|
unset FOAM_ABORT
|
||||||
@ -99,7 +108,8 @@ export LC_ALL=C
|
|||||||
# Reader extension
|
# Reader extension
|
||||||
extension=OpenFOAM
|
extension=OpenFOAM
|
||||||
|
|
||||||
requirePV=1
|
requirePVExe=1
|
||||||
|
requirePVReader=1
|
||||||
|
|
||||||
# Parse options
|
# Parse options
|
||||||
while [ "$#" -gt 0 ]
|
while [ "$#" -gt 0 ]
|
||||||
@ -114,7 +124,8 @@ do
|
|||||||
;;
|
;;
|
||||||
-builtin)
|
-builtin)
|
||||||
extension=foam
|
extension=foam
|
||||||
requirePV=0
|
requirePVExe=1
|
||||||
|
requirePVReader=0
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-case)
|
-case)
|
||||||
@ -133,12 +144,14 @@ do
|
|||||||
;;
|
;;
|
||||||
-touch)
|
-touch)
|
||||||
optTouch=true
|
optTouch=true
|
||||||
requirePV=0
|
requirePVExe=0
|
||||||
|
requirePVReader=0
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-touchAll)
|
-touchAll)
|
||||||
optTouch=all
|
optTouch=all
|
||||||
requirePV=0
|
requirePVExe=0
|
||||||
|
requirePVReader=0
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--)
|
--)
|
||||||
@ -154,8 +167,26 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check that reader module has been built
|
# Check for incompatibility of options
|
||||||
[ $requirePV -eq 1 ] && \
|
if [ -n "$regionName" ]
|
||||||
|
then
|
||||||
|
case $extension in
|
||||||
|
blockMesh)
|
||||||
|
echo "FATAL ERROR: The builtin reader does not support blockMesh"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
foam)
|
||||||
|
echo "FATAL ERROR: The builtin reader does not support regions"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check that the executable and/or the reader module are available
|
||||||
|
[ $requirePVExe -eq 1 ] && \
|
||||||
|
! which paraview > /dev/null 2>&1 && \
|
||||||
|
noPVExe && exit 1
|
||||||
|
[ $requirePVReader -eq 1 ] && \
|
||||||
! [ -f "$PV_PLUGIN_PATH/libPVFoamReader_SM.so" ] && \
|
! [ -f "$PV_PLUGIN_PATH/libPVFoamReader_SM.so" ] && \
|
||||||
noPVReader && exit 1
|
noPVReader && exit 1
|
||||||
|
|
||||||
@ -174,14 +205,11 @@ hasDataArg()
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
hasDataArg "$@"
|
hasDataArg "$@"
|
||||||
|
|
||||||
# Get a sensible caseName from the directory name
|
# Construct a case name from the directory name
|
||||||
caseName=${PWD##*/}
|
caseName=${PWD##*/}
|
||||||
caseFile="$caseName.$extension"
|
caseFile="$caseName.$extension"
|
||||||
fvControls="system"
|
|
||||||
|
|
||||||
if [ -n "$regionName" ]
|
if [ -n "$regionName" ]
|
||||||
then
|
then
|
||||||
if [ ! -d constant/"$regionName" ]
|
if [ ! -d constant/"$regionName" ]
|
||||||
@ -190,110 +218,106 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
caseFile="$caseName{$regionName}.$extension"
|
caseFile="$caseName{$regionName}.$extension"
|
||||||
fvControls="$fvControls/$regionName"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If the touch option is set, then create files and exit
|
||||||
case "${optTouch:-false}" in
|
case "${optTouch:-false}" in
|
||||||
all)
|
all)
|
||||||
extension=OpenFOAM
|
# Block mesh
|
||||||
if [ -f system/blockMeshDict ] || [ -f constant/polyMesh/blockMeshDict ]
|
if [ -f system/blockMeshDict ] || [ -f constant/polyMesh/blockMeshDict ]
|
||||||
then
|
then
|
||||||
touch "$caseName.blockMesh"
|
touch "$caseName.blockMesh"
|
||||||
echo "Created '$caseName.blockMesh'"
|
echo "Created '$caseName.blockMesh'"
|
||||||
fi
|
fi
|
||||||
touch "$caseName.$extension"
|
|
||||||
echo "Created '$caseName.$extension'"
|
# Default region
|
||||||
# Discover probable regions
|
touch "$caseName.OpenFOAM"
|
||||||
|
echo "Created '$caseName.OpenFOAM'"
|
||||||
|
|
||||||
|
# Find other probable regions
|
||||||
for region in constant/*
|
for region in constant/*
|
||||||
do
|
do
|
||||||
[ -d "$region" ] && [ -d "${region}/polyMesh" ] && \
|
[ -d "$region/polyMesh" ] && \
|
||||||
regionName=${region##*/} && \
|
regionName=${region##*/} && \
|
||||||
touch "$caseName{$regionName}.$extension" && \
|
touch "$caseName{$regionName}.OpenFOAM" && \
|
||||||
echo "Created '$caseName{$regionName}.$extension'"
|
echo "Created '$caseName{$regionName}.OpenFOAM'"
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
true)
|
true)
|
||||||
|
# Default region
|
||||||
touch "$caseFile"
|
touch "$caseFile"
|
||||||
echo "Created '$caseFile'"
|
echo "Created '$caseFile'"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
# Parent directory for normal or parallel results
|
# Parent directory for normal or parallel results
|
||||||
case "$caseName" in
|
case "$caseName" in
|
||||||
processor*) parentDir=".." ;;
|
processor*) parentDir=".." ;;
|
||||||
*) parentDir="." ;;
|
*) parentDir="." ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# If we have a --data=... argument, then send this directly to paraview
|
||||||
if [ "${hasData:-false}" = true ]
|
if [ "${hasData:-false}" = true ]
|
||||||
then
|
then
|
||||||
|
|
||||||
# Has --data=.., send directly to paraview
|
|
||||||
pvExec "$@"
|
pvExec "$@"
|
||||||
|
exit 0
|
||||||
else
|
|
||||||
|
|
||||||
# Check existence of essential files
|
|
||||||
warn="WARN file does not exist:"
|
|
||||||
case $extension in
|
|
||||||
blockMesh)
|
|
||||||
blockMeshDictDir=system/blockMeshDict
|
|
||||||
if [ -f constant/polyMesh/blockMeshDict ]
|
|
||||||
then
|
|
||||||
blockMeshDictDir=constant/polyMesh/blockMeshDict
|
|
||||||
fi
|
|
||||||
for check in \
|
|
||||||
system/controlDict \
|
|
||||||
$blockMeshDictDir \
|
|
||||||
;
|
|
||||||
do
|
|
||||||
[ -s "$parentDir/$check" ] || [ -s "$parentDir/$check.orig" ] ||
|
|
||||||
{
|
|
||||||
[ -n "$warn" ] && echo "$warn" 1>&2
|
|
||||||
echo " $parentDir/$check" 1>&2
|
|
||||||
unset warn
|
|
||||||
}
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
|
|
||||||
builtin | OpenFOAM)
|
|
||||||
for check in \
|
|
||||||
system/controlDict \
|
|
||||||
;
|
|
||||||
do
|
|
||||||
[ -s "$parentDir/$check" ] || [ -s "$parentDir/$check.orig" ] ||
|
|
||||||
{
|
|
||||||
[ -n "$warn" ] && echo "$warn" 1>&2
|
|
||||||
echo " $parentDir/$check" 1>&2
|
|
||||||
unset warn
|
|
||||||
}
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
[ -n "$warn" ] || {
|
|
||||||
echo "Cannot locate OpenFOAM-format case files"
|
|
||||||
printf "Would you like to open ParaView anyway <Y|n>:"
|
|
||||||
read open
|
|
||||||
[ "$open" = "" ] || echo "$open" | grep -iqE "^y" && pvExec
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
# Only create/remove caseFile if it didn't already exist
|
|
||||||
[ -e "$caseFile" ] || {
|
|
||||||
trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT
|
|
||||||
touch "$caseFile"
|
|
||||||
echo "Created temporary '$caseFile'"
|
|
||||||
}
|
|
||||||
|
|
||||||
# For now filter out any ld.so errors. Caused by non-system compiler?
|
|
||||||
pvExec --data="$caseFile" "$@" 2>&1 \
|
|
||||||
| grep -v -F 'Inconsistency detected by ld.so'
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check existence of essential files
|
||||||
|
warn="WARN file does not exist:"
|
||||||
|
case $extension in
|
||||||
|
blockMesh)
|
||||||
|
blockMeshDictDir=system/blockMeshDict
|
||||||
|
if [ -f constant/polyMesh/blockMeshDict ]
|
||||||
|
then
|
||||||
|
blockMeshDictDir=constant/polyMesh/blockMeshDict
|
||||||
|
fi
|
||||||
|
|
||||||
|
for check in system/controlDict $blockMeshDictDir
|
||||||
|
do
|
||||||
|
[ -s "$parentDir/$check" ] || [ -s "$parentDir/$check.orig" ] ||
|
||||||
|
{
|
||||||
|
[ -n "$warn" ] && echo "$warn" 1>&2
|
||||||
|
echo " $parentDir/$check" 1>&2
|
||||||
|
unset warn
|
||||||
|
}
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
|
||||||
|
OpenFOAM | foam)
|
||||||
|
for check in system/controlDict
|
||||||
|
do
|
||||||
|
[ -s "$parentDir/$check" ] || [ -s "$parentDir/$check.orig" ] ||
|
||||||
|
{
|
||||||
|
[ -n "$warn" ] && echo "$warn" 1>&2
|
||||||
|
echo " $parentDir/$check" 1>&2
|
||||||
|
unset warn
|
||||||
|
}
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Warn if essential files do not exist
|
||||||
|
[ -n "$warn" ] || {
|
||||||
|
echo "Cannot locate OpenFOAM-format case files"
|
||||||
|
printf "Would you like to open ParaView anyway <Y|n>:"
|
||||||
|
read open
|
||||||
|
[ "$open" = "" ] || echo "$open" | grep -iqE "^y" && pvExec
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
# Only create/remove the caseFile if it didn't already exist
|
||||||
|
[ -e "$caseFile" ] || {
|
||||||
|
trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT
|
||||||
|
touch "$caseFile"
|
||||||
|
echo "Created temporary '$caseFile'"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Run paraview
|
||||||
|
pvExec --data="$caseFile" "$@"
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -26,7 +26,7 @@
|
|||||||
# foamConfigurePaths
|
# foamConfigurePaths
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# hardcode installation directory
|
# Hard-code installation directories
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
usage() {
|
usage() {
|
||||||
@ -35,16 +35,12 @@ usage() {
|
|||||||
cat<<USAGE
|
cat<<USAGE
|
||||||
|
|
||||||
usage: ${0##*/}
|
usage: ${0##*/}
|
||||||
--foamInstall dir specify installation directory (e.g. /opt)
|
--foamInstall dir specify installation directory (e.g. /opt)
|
||||||
--projectName name specify project name (e.g. openfoam220)
|
--projectName name specify project name (e.g. openfoam11)
|
||||||
--projectVersion ver specify project version (e.g. 2.2.0)
|
--thirdPartyName name specify third-party name (e.g. openfoam11/thirdparty)
|
||||||
--archOption arch specify architecture option (only 32 or 64 applicable)
|
--projectVersion ver specify project version (e.g. 11)
|
||||||
--paraviewInstall dir specify ParaView_DIR (e.g. /opt/paraviewopenfoam3120)
|
--archOption arch specify architecture option (only 32 or 64 applicable)
|
||||||
--paraviewVersion ver specify ParaView_VERSION (e.g. 3.12.0)
|
--dependency name:type:ver specify dependency (e.g. SCOTCH=ThirdParty:6.0.9)
|
||||||
--scotchArchPath dir specify SCOTCH_ARCH_PATH (e.g. /opt/OpenFOAM-scotch-6.0.0/)
|
|
||||||
--scotchVersion ver specify SCOTCH_VERSION (e.g. 6.0.0)
|
|
||||||
|
|
||||||
* hardcode paths to installation
|
|
||||||
|
|
||||||
USAGE
|
USAGE
|
||||||
exit 1
|
exit 1
|
||||||
@ -77,10 +73,10 @@ _inlineSed()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[ -f etc/bashrc ] || usage "Please run from top-level directory of installation"
|
[ -d etc ] || usage "Please run from top-level directory of installation"
|
||||||
|
|
||||||
unset foamInstDir projectName projectVersion archOption
|
unset foamInstDir projectName thirdPartyName projectVersion archOption
|
||||||
unset paraviewInstall scotchArchPath
|
unset paraviewType paraviewVersion
|
||||||
|
|
||||||
# Parse options
|
# Parse options
|
||||||
while [ "$#" -gt 0 ]
|
while [ "$#" -gt 0 ]
|
||||||
@ -95,14 +91,14 @@ do
|
|||||||
# Replace FOAM_INST_DIR=...
|
# Replace FOAM_INST_DIR=...
|
||||||
_inlineSed \
|
_inlineSed \
|
||||||
etc/bashrc \
|
etc/bashrc \
|
||||||
'\(.*BASH_SOURCE.*\)' \
|
'export FOAM_INST_DIR=.*' \
|
||||||
'#\1' \
|
|
||||||
"Removing default FOAM_INST_DIR setting"
|
|
||||||
_inlineSed \
|
|
||||||
etc/bashrc \
|
|
||||||
'^export FOAM_INST_DIR=.*' \
|
|
||||||
'export FOAM_INST_DIR='"$foamInstDir" \
|
'export FOAM_INST_DIR='"$foamInstDir" \
|
||||||
"Setting FOAM_INST_DIR to '$foamInstDir'"
|
"Setting FOAM_INST_DIR to '$foamInstDir'"
|
||||||
|
_inlineSed \
|
||||||
|
etc/cshrc \
|
||||||
|
'setenv FOAM_INST_DIR .*' \
|
||||||
|
'setenv FOAM_INST_DIR '"$foamInstDir" \
|
||||||
|
"Setting FOAM_INST_DIR to '$foamInstDir'"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
-projectName | --projectName)
|
-projectName | --projectName)
|
||||||
@ -111,9 +107,30 @@ do
|
|||||||
# replace WM_PROJECT_DIR=...
|
# replace WM_PROJECT_DIR=...
|
||||||
_inlineSed \
|
_inlineSed \
|
||||||
etc/bashrc \
|
etc/bashrc \
|
||||||
'WM_PROJECT_DIR=.*' \
|
'export WM_PROJECT_DIR=.*' \
|
||||||
'WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/'"$projectName" \
|
'export WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/'"$projectName" \
|
||||||
"Replacing WM_PROJECT_DIR setting by $projectName"
|
"Replacing WM_PROJECT_DIR setting by $projectName"
|
||||||
|
_inlineSed \
|
||||||
|
etc/cshrc \
|
||||||
|
'setenv WM_PROJECT_DIR .*' \
|
||||||
|
'setenv WM_PROJECT_DIR $WM_PROJECT_INST_DIR/'"$projectName" \
|
||||||
|
"Replacing WM_PROJECT_DIR setting by $projectName"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-thirdPartyName | --thirdPartyName)
|
||||||
|
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
||||||
|
thirdPartyName="$2"
|
||||||
|
# replace WM_PROJECT_DIR=...
|
||||||
|
_inlineSed \
|
||||||
|
etc/bashrc \
|
||||||
|
'export WM_THIRD_PARTY_DIR=.*' \
|
||||||
|
'export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/'"$thirdPartyName" \
|
||||||
|
"Replacing WM_THIRD_PARTY_DIR setting by $thirdPartyName"
|
||||||
|
_inlineSed \
|
||||||
|
etc/cshrc \
|
||||||
|
'setenv WM_THIRD_PARTY_DIR .*' \
|
||||||
|
'setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/'"$thirdPartyName" \
|
||||||
|
"Replacing WM_THIRD_PARTY_DIR setting by $thirdPartyName"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--projectVersion)
|
--projectVersion)
|
||||||
@ -123,69 +140,72 @@ do
|
|||||||
echo "Replacing WM_PROJECT_VERSION setting by $projectVersion"
|
echo "Replacing WM_PROJECT_VERSION setting by $projectVersion"
|
||||||
_inlineSed \
|
_inlineSed \
|
||||||
etc/bashrc \
|
etc/bashrc \
|
||||||
'WM_PROJECT_VERSION=.*' \
|
'export WM_PROJECT_VERSION=.*' \
|
||||||
'WM_PROJECT_VERSION='"$projectVersion" \
|
'export WM_PROJECT_VERSION='"$projectVersion" \
|
||||||
|
"Replacing WM_PROJECT_VERSION setting by $projectVersion"
|
||||||
|
_inlineSed \
|
||||||
|
etc/cshrc \
|
||||||
|
'setenv WM_PROJECT_VERSION .*' \
|
||||||
|
'setenv WM_PROJECT_VERSION '"$projectVersion" \
|
||||||
"Replacing WM_PROJECT_VERSION setting by $projectVersion"
|
"Replacing WM_PROJECT_VERSION setting by $projectVersion"
|
||||||
|
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
-archOption | --archOption)
|
-archOption | --archOption)
|
||||||
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
||||||
archOption="$2"
|
archOption="$2"
|
||||||
current_archOption=`grep WM_ARCH_OPTION= etc/bashrc | sed "s/export WM_ARCH_OPTION=//"`
|
# replace WM_ARCH_OPTION=...
|
||||||
if [ "$archOption" != "$current_archOption" ]
|
_inlineSed \
|
||||||
|
etc/bashrc \
|
||||||
|
'export WM_ARCH_OPTION=.*' \
|
||||||
|
'export WM_ARCH_OPTION='"$archOption" \
|
||||||
|
"Replacing WM_ARCH_OPTION setting by '$archOption'"
|
||||||
|
_inlineSed \
|
||||||
|
etc/cshrc \
|
||||||
|
'setenv WM_ARCH_OPTION .*' \
|
||||||
|
'setenv WM_ARCH_OPTION '"$archOption" \
|
||||||
|
"Replacing WM_ARCH_OPTION setting by '$archOption'"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
|
||||||
|
-dependency | --dependency)
|
||||||
|
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
||||||
|
dependencyNameTypeVersion=$2
|
||||||
|
dependencyNameType=${dependencyNameTypeVersion%:*}
|
||||||
|
dependencyName=${dependencyNameType%=*}
|
||||||
|
dependencyVersion=${dependencyNameTypeVersion#$dependencyNameType*}
|
||||||
|
dependencyVersion=${dependencyVersion#:}
|
||||||
|
dependencyType=${dependencyNameType#$dependencyName*}
|
||||||
|
dependencyType=${dependencyType#=}
|
||||||
|
# replace ${dependencyName}_TYPE...
|
||||||
|
if [ -n "$dependencyType" ]
|
||||||
then
|
then
|
||||||
# replace WM_ARCH_OPTION=...
|
|
||||||
_inlineSed \
|
_inlineSed \
|
||||||
etc/bashrc \
|
etc/bashrc \
|
||||||
'WM_ARCH_OPTION=.*' \
|
'export '"$dependencyName"'_TYPE=.*' \
|
||||||
'WM_ARCH_OPTION='"$archOption" \
|
'export '"$dependencyName"'_TYPE='"$dependencyType" \
|
||||||
"Replacing WM_ARCH_OPTION setting by '$archOption'"
|
"Replacing ${dependencyName}_TYPE setting by '$dependencyType'"
|
||||||
else
|
_inlineSed \
|
||||||
echo "WM_ARCH_OPTION already set to $archOption"
|
etc/cshrc \
|
||||||
|
'setenv '"$dependencyName"'_TYPE .*' \
|
||||||
|
'setenv '"$dependencyName"'_TYPE '"$dependencyType" \
|
||||||
|
"Replacing ${dependencyName}_TYPE setting by '$dependencyType'"
|
||||||
|
fi
|
||||||
|
# add/replace ${dependencyName}_VERSION...
|
||||||
|
if [ -n "$dependencyVersion" ]
|
||||||
|
then
|
||||||
|
sed -i '/export '"$dependencyName"'_VERSION=.*/d' etc/bashrc
|
||||||
|
_inlineSed \
|
||||||
|
etc/bashrc \
|
||||||
|
'\(export '"$dependencyName"'_TYPE=.*\)' \
|
||||||
|
'\1\nexport '"$dependencyName"'_VERSION='"$dependencyVersion" \
|
||||||
|
"Adding ${dependencyName}_VERSION setting '$dependencyVersion'"
|
||||||
|
sed -i '/setenv '"$dependencyName"'_VERSION .*/d' etc/cshrc
|
||||||
|
_inlineSed \
|
||||||
|
etc/cshrc \
|
||||||
|
'\(setenv '"$dependencyName"'_TYPE .*\)' \
|
||||||
|
'\1\nsetenv '"$dependencyName"'_VERSION '"$dependencyVersion" \
|
||||||
|
"Adding ${dependencyName}_VERSION setting '$dependencyVersion'"
|
||||||
fi
|
fi
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
-paraviewInstall | --paraviewInstall)
|
|
||||||
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
|
||||||
paraviewInstall="$2"
|
|
||||||
# replace ParaView_DIR=...
|
|
||||||
_inlineSed \
|
|
||||||
etc/config.sh/paraview \
|
|
||||||
'ParaView_DIR=.*' \
|
|
||||||
'ParaView_DIR='"$paraviewInstall" \
|
|
||||||
"Replacing ParaView_DIR setting by '$paraviewInstall'"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
-paraviewVersion | --paraviewVersion)
|
|
||||||
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
|
||||||
paraviewVersion="$2"
|
|
||||||
# replace ParaView_VERSION=...
|
|
||||||
_inlineSed \
|
|
||||||
etc/config.sh/paraview \
|
|
||||||
'ParaView_VERSION=.*' \
|
|
||||||
'ParaView_VERSION='"$paraviewVersion" \
|
|
||||||
"Replacing ParaView_VERSION setting by '$paraviewVersion'"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
-scotchVersion | --scotchVersion)
|
|
||||||
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
|
||||||
scotchVersion="$2"
|
|
||||||
_inlineSed \
|
|
||||||
etc/config.sh/scotch \
|
|
||||||
'SCOTCH_VERSION=.*' \
|
|
||||||
'SCOTCH_VERSION='"$scotchVersion" \
|
|
||||||
"Replacing SCOTCH_VERSION setting by '$scotchVersion'"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
-scotchArchPath | --scotchArchPath)
|
|
||||||
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
|
||||||
scotchArchPath="$2"
|
|
||||||
_inlineSed \
|
|
||||||
etc/config.sh/scotch \
|
|
||||||
'SCOTCH_ARCH_PATH=.*' \
|
|
||||||
'SCOTCH_ARCH_PATH='"$scotchArchPath" \
|
|
||||||
"Replacing SCOTCH_ARCH_PATH setting by '$scotchArchPath'"
|
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -194,26 +214,9 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
[ -n "$foamInstDir" -o -n "$projectName" -o -n "$projectVersion" -o -n "$archOption" \
|
[ -n "$foamInstDir" -o -n "$projectName" -o -n "$thirdPartyName" \
|
||||||
-o -n "$paraviewInstall" -o -n "$paraviewVersion" \
|
-o -n "$projectVersion" -o -n "$archOption" \
|
||||||
-o -n "$scotchVersion" -o -n "$scotchArchPath" \
|
-o -n "$dependencyNameTypeVersion" \
|
||||||
] || usage "Please specify at least one configure option"
|
] || usage "Please specify at least one configure option"
|
||||||
|
|
||||||
#echo "Replacing WM_PROJECT setting by '$projectName'"
|
|
||||||
#sed -i -e 's@WM_PROJECT=.*@WM_PROJECT='"$projectName@" etc/bashrc
|
|
||||||
|
|
||||||
# Set WM_MPLIB=SYSTEMOPENMPI always
|
|
||||||
_inlineSed \
|
|
||||||
etc/bashrc \
|
|
||||||
'export WM_MPLIB=.*' \
|
|
||||||
'export WM_MPLIB=SYSTEMOPENMPI' \
|
|
||||||
"Replacing WM_MPLIB setting by 'SYSTEMOPENMPI'"
|
|
||||||
|
|
||||||
## set WM_COMPILER_TYPE=system always
|
|
||||||
#_inlineSed \
|
|
||||||
# etc/bashrc \
|
|
||||||
# 'WM_COMPILER_TYPE=.*' \
|
|
||||||
# 'WM_COMPILER_TYPE=system' \
|
|
||||||
# "Replacing WM_COMPILER_TYPE setting by 'system'"
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -31,8 +31,6 @@
|
|||||||
# Note
|
# Note
|
||||||
# Not normally called directly by the user.
|
# Not normally called directly by the user.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
toolsDir="${0%/*}" # this script is already located in the tools/ directory
|
|
||||||
|
|
||||||
[ $# -eq 1 -o $# -eq 2 ] || {
|
[ $# -eq 1 -o $# -eq 2 ] || {
|
||||||
cat <<USAGE 1>&2
|
cat <<USAGE 1>&2
|
||||||
Usage : ${0##*/} <packDir> [archOptions]
|
Usage : ${0##*/} <packDir> [archOptions]
|
||||||
@ -57,9 +55,11 @@ archOptions="${2:-$WM_OPTIONS}"
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# base arch (w/o precision, optimisation, etc)
|
# same as "$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION"
|
||||||
|
archOSCompilerTypes=$(echo "$archOptions" | sed -e 's@\(Int[0-9]\+\).*$@\1@')
|
||||||
|
|
||||||
# same as "$WM_ARCH$WM_COMPILER"
|
# same as "$WM_ARCH$WM_COMPILER"
|
||||||
archCompiler=$(echo "$archOptions" | sed -e 's@[DS]P.*$@@')
|
archOSCompiler=$(echo "$archOptions" | sed -e 's@[DSL]P.*$@@')
|
||||||
|
|
||||||
# same as $WM_ARCH - eg, 'linux64'
|
# same as $WM_ARCH - eg, 'linux64'
|
||||||
# TODO: only works for Gcc, Icc, Clang
|
# TODO: only works for Gcc, Icc, Clang
|
||||||
@ -89,10 +89,10 @@ dirList=$(
|
|||||||
for dir in \
|
for dir in \
|
||||||
$packDir/platforms/$archOptions/bin \
|
$packDir/platforms/$archOptions/bin \
|
||||||
$packDir/platforms/$archOptions/lib \
|
$packDir/platforms/$archOptions/lib \
|
||||||
$packDir/wmake/platforms/$archCompiler \
|
$packDir/wmake/platforms/$archOSCompiler \
|
||||||
$packDir/wmake/platforms/$archOS \
|
$packDir/wmake/platforms/$archOS \
|
||||||
$packDir/wmake/rules/General \
|
$packDir/wmake/rules/General \
|
||||||
$packDir/wmake/rules/$archCompiler \
|
$packDir/wmake/rules/$archOSCompiler \
|
||||||
$packDir/wmake/rules/$archOS \
|
$packDir/wmake/rules/$archOS \
|
||||||
;
|
;
|
||||||
do
|
do
|
||||||
@ -103,7 +103,7 @@ dirList=$(
|
|||||||
|
|
||||||
cat <<INFO 1>&2
|
cat <<INFO 1>&2
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Packing $archOptions ($archCompiler) port of $packDir
|
Packing $archOptions port of $packDir
|
||||||
archOS = $archOS
|
archOS = $archOS
|
||||||
32bit archOS = $arch3264
|
32bit archOS = $arch3264
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -31,8 +31,6 @@
|
|||||||
# Note
|
# Note
|
||||||
# Not normally called directly by the user.
|
# Not normally called directly by the user.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
toolsDir="${0%/*}" # this script is already located in the tools/ directory
|
|
||||||
|
|
||||||
[ $# -eq 1 -o $# -eq 2 ] || {
|
[ $# -eq 1 -o $# -eq 2 ] || {
|
||||||
cat <<USAGE 1>&2
|
cat <<USAGE 1>&2
|
||||||
Usage : ${0##*/} <packDir> [archOptions]
|
Usage : ${0##*/} <packDir> [archOptions]
|
||||||
@ -57,9 +55,11 @@ archOptions="${2:-$WM_OPTIONS}"
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# base arch (w/o precision, optimisation, etc)
|
# same as "$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION"
|
||||||
|
archOSCompilerTypes=$(echo "$archOptions" | sed -e 's@\(Int[0-9]\+\).*$@\1@')
|
||||||
|
|
||||||
# same as "$WM_ARCH$WM_COMPILER"
|
# same as "$WM_ARCH$WM_COMPILER"
|
||||||
archCompiler=$(echo "$archOptions" | sed -e 's@[DS]P.*$@@')
|
archOSCompiler=$(echo "$archOptions" | sed -e 's@[DSL]P.*$@@')
|
||||||
|
|
||||||
# same as $WM_ARCH - eg, 'linux64'
|
# same as $WM_ARCH - eg, 'linux64'
|
||||||
# TODO: only works for Gcc, Icc, Clang
|
# TODO: only works for Gcc, Icc, Clang
|
||||||
@ -73,7 +73,6 @@ arch3264=$(echo "$archOS" | sed -e 's@64@-64@')
|
|||||||
# check for essential directories
|
# check for essential directories
|
||||||
for dir in \
|
for dir in \
|
||||||
$packDir \
|
$packDir \
|
||||||
$packDir/platforms/$archOptions/lib \
|
|
||||||
;
|
;
|
||||||
do
|
do
|
||||||
[ -d $dir ] || {
|
[ -d $dir ] || {
|
||||||
@ -87,7 +86,8 @@ done
|
|||||||
dirList=$(
|
dirList=$(
|
||||||
for dir in \
|
for dir in \
|
||||||
$packDir/platforms/$archOptions \
|
$packDir/platforms/$archOptions \
|
||||||
$packDir/platforms/$archCompiler \
|
$packDir/platforms/$archOSCompilerTypes \
|
||||||
|
$packDir/platforms/$archOSCompiler \
|
||||||
$packDir/platforms/$archOS \
|
$packDir/platforms/$archOS \
|
||||||
;
|
;
|
||||||
do
|
do
|
||||||
@ -109,7 +109,7 @@ dirList=$(
|
|||||||
|
|
||||||
cat <<INFO 1>&2
|
cat <<INFO 1>&2
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Packing $archOptions ($archCompiler) port of $packDir
|
Packing $archOptions port of $packDir
|
||||||
archOS = $archOS
|
archOS = $archOS
|
||||||
32bit archOS = $arch3264
|
32bit archOS = $arch3264
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2020-2021 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2020-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -59,7 +59,7 @@ error() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Comparison functions
|
# Define comparison functions
|
||||||
_foamVersionCompare_eq=0
|
_foamVersionCompare_eq=0
|
||||||
_foamVersionCompare_lt=1
|
_foamVersionCompare_lt=1
|
||||||
_foamVersionCompare_gt=2
|
_foamVersionCompare_gt=2
|
||||||
@ -121,9 +121,14 @@ _foamVersionGe()
|
|||||||
# Parse arguments
|
# Parse arguments
|
||||||
[ $# -eq 3 ] || error "Incorrect arguments specified"
|
[ $# -eq 3 ] || error "Incorrect arguments specified"
|
||||||
|
|
||||||
v1=${1##*-}
|
# Extraction pattern
|
||||||
|
extract='s/^.*\([^0-9]\.\|[_-]\)[vV]\?\([0-9][0-9.]*[0-9]\)\(\|[._-].*\)$/\2/g'
|
||||||
|
|
||||||
|
# Get the first version number
|
||||||
|
v1=$(echo $1 | sed $extract)
|
||||||
shift 1
|
shift 1
|
||||||
|
|
||||||
|
# Get the comparison operator
|
||||||
case $1 in
|
case $1 in
|
||||||
-h | -help)
|
-h | -help)
|
||||||
usage && exit 0
|
usage && exit 0
|
||||||
@ -149,7 +154,8 @@ case $1 in
|
|||||||
esac
|
esac
|
||||||
shift 1
|
shift 1
|
||||||
|
|
||||||
v2=${1##*-}
|
# Get the second version number
|
||||||
|
v2=$(echo $1 | sed $extract)
|
||||||
shift 1
|
shift 1
|
||||||
|
|
||||||
# Perform comparison and return
|
# Perform comparison and return
|
||||||
|
|||||||
67
etc/bashrc
67
etc/bashrc
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -32,19 +32,28 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
export WM_PROJECT=OpenFOAM
|
export WM_PROJECT=OpenFOAM
|
||||||
|
export WM_THIRD_PARTY=ThirdParty
|
||||||
export WM_PROJECT_VERSION=dev
|
export WM_PROJECT_VERSION=dev
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||||
#
|
#
|
||||||
# FOAM_INST_DIR is the location of the OpenFOAM installation which defaults to
|
# FOAM_INST_DIR is the location of the OpenFOAM installation which defaults to
|
||||||
# the directory containing this file if sourced by a bash shell.
|
# the directory two levels below this file, or $HOME/$WM_PROJECT if that
|
||||||
|
# directory cannot be determined.
|
||||||
#
|
#
|
||||||
# Please set to the appropriate path if the default is not correct.
|
[ "$BASH" ] && bashrcFile=${BASH_SOURCE}
|
||||||
|
[ "$ZSH_NAME" ] && bashrcFile=$0
|
||||||
|
if [ -n "$bashrcFile" ]
|
||||||
|
then
|
||||||
|
export FOAM_INST_DIR=$(cd $(dirname $bashrcFile)/../.. && pwd -P)
|
||||||
|
else
|
||||||
|
export FOAM_INST_DIR=$HOME/$WM_PROJECT
|
||||||
|
fi
|
||||||
|
unset bashrcFile
|
||||||
|
#
|
||||||
|
# Please set to the appropriate path if the above default is not correct. E.g.,
|
||||||
#
|
#
|
||||||
[ "$BASH" -o "$ZSH_NAME" ] && \
|
|
||||||
export FOAM_INST_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../.. && pwd -P) || \
|
|
||||||
export FOAM_INST_DIR=$HOME/$WM_PROJECT
|
|
||||||
# export FOAM_INST_DIR=~$WM_PROJECT
|
# export FOAM_INST_DIR=~$WM_PROJECT
|
||||||
# export FOAM_INST_DIR=/opt/$WM_PROJECT
|
# export FOAM_INST_DIR=/opt/$WM_PROJECT
|
||||||
# export FOAM_INST_DIR=/usr/local/$WM_PROJECT
|
# export FOAM_INST_DIR=/usr/local/$WM_PROJECT
|
||||||
@ -57,7 +66,7 @@ export FOAM_INST_DIR=$HOME/$WM_PROJECT
|
|||||||
# $FOAM_INST_DIR/site/$WM_PROJECT_VERSION or $FOAM_INST_DIR/site
|
# $FOAM_INST_DIR/site/$WM_PROJECT_VERSION or $FOAM_INST_DIR/site
|
||||||
|
|
||||||
#- Compiler location:
|
#- Compiler location:
|
||||||
# WM_COMPILER_TYPE= system | ThirdParty (OpenFOAM)
|
# WM_COMPILER_TYPE = system | ThirdParty (OpenFOAM)
|
||||||
export WM_COMPILER_TYPE=system
|
export WM_COMPILER_TYPE=system
|
||||||
|
|
||||||
#- Compiler:
|
#- Compiler:
|
||||||
@ -92,11 +101,21 @@ export WM_MPLIB=SYSTEMOPENMPI
|
|||||||
# WM_OSTYPE = POSIX | ???
|
# WM_OSTYPE = POSIX | ???
|
||||||
export WM_OSTYPE=POSIX
|
export WM_OSTYPE=POSIX
|
||||||
|
|
||||||
|
#- Decomposition libraries:
|
||||||
|
# <library>_TYPE = none | system | ThirdParty (OpenFOAM)
|
||||||
|
export SCOTCH_TYPE=ThirdParty
|
||||||
|
export METIS_TYPE=none
|
||||||
|
export PARMETIS_TYPE=none
|
||||||
|
export ZOLTAN_TYPE=none
|
||||||
|
|
||||||
|
# ParaView_TYPE = none | system | paraviewopenfoam | ThirdParty (OpenFOAM)
|
||||||
|
export ParaView_TYPE=ThirdParty
|
||||||
|
|
||||||
#- Floating-point signal handling:
|
#- Floating-point signal handling:
|
||||||
# set or unset
|
# set or unset
|
||||||
export FOAM_SIGFPE=
|
export FOAM_SIGFPE=
|
||||||
|
|
||||||
#- memory initialisation:
|
#- Memory initialisation:
|
||||||
# set or unset
|
# set or unset
|
||||||
#export FOAM_SETNAN=
|
#export FOAM_SETNAN=
|
||||||
|
|
||||||
@ -123,9 +142,26 @@ then
|
|||||||
unset WM_PROJECT_DIR_REAL
|
unset WM_PROJECT_DIR_REAL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Source initialisation functions
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
|
# Add in preset user or site preferences:
|
||||||
|
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.sh`
|
||||||
|
|
||||||
|
# Evaluate command-line parameters of the form "param=keyword" or unset
|
||||||
|
# parameters with "param="
|
||||||
|
export FOAM_SETTINGS="$@"
|
||||||
|
_foamParams $@
|
||||||
|
|
||||||
# Location of third-party software
|
# Location of third-party software
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION
|
if [ ${WM_THIRD_PARTY%%/*} = ${WM_PROJECT_DIR##*/} ]
|
||||||
|
then
|
||||||
|
export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/$WM_THIRD_PARTY
|
||||||
|
else
|
||||||
|
export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/$WM_THIRD_PARTY-$WM_PROJECT_VERSION
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d "$WM_THIRD_PARTY_DIR" ]
|
if [ -d "$WM_THIRD_PARTY_DIR" ]
|
||||||
then
|
then
|
||||||
@ -151,18 +187,6 @@ fi
|
|||||||
# ~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION
|
export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION
|
||||||
|
|
||||||
# Source initialisation functions
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
|
||||||
|
|
||||||
# Add in preset user or site preferences:
|
|
||||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.sh`
|
|
||||||
|
|
||||||
# Evaluate command-line parameters of the form "param=keyword" or unset
|
|
||||||
# parameters with "param="
|
|
||||||
export FOAM_SETTINGS="$@"
|
|
||||||
_foamParams $@
|
|
||||||
|
|
||||||
# Clean standard environment variables (PATH, LD_LIBRARY_PATH, MANPATH)
|
# Clean standard environment variables (PATH, LD_LIBRARY_PATH, MANPATH)
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
foamClean=$WM_PROJECT_DIR/bin/foamCleanPath
|
foamClean=$WM_PROJECT_DIR/bin/foamCleanPath
|
||||||
@ -219,7 +243,6 @@ fi
|
|||||||
# ~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
unset cleaned foamClean foamOldDirs
|
unset cleaned foamClean foamOldDirs
|
||||||
|
|
||||||
|
|
||||||
# Unload initialisation functions:
|
# Unload initialisation functions:
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -84,7 +84,7 @@ alias foamVersion \
|
|||||||
# Change ParaView version
|
# Change ParaView version
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
alias foamPV \
|
alias foamPV \
|
||||||
'source $WM_PROJECT_DIR/etc/config.csh/paraview ParaView_VERSION=\!*; echo paraview-$ParaView_VERSION'
|
'source $WM_PROJECT_DIR/etc/config.csh/functions source $WM_PROJECT_DIR/etc/config.csh/paraview ParaView_VERSION=\!*; source $WM_PROJECT_DIR/etc/config.csh/functions; echo paraview-$ParaView_VERSION'
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
83
etc/config.csh/compiler
Normal file
83
etc/config.csh/compiler
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
#----------------------------------*-sh-*--------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
|
# \\/ M anipulation |
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of OpenFOAM.
|
||||||
|
#
|
||||||
|
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
# for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# File
|
||||||
|
# etc/config.csh/settings
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Startup file for OpenFOAM
|
||||||
|
# Sourced from OpenFOAM-<VERSION>/etc/cshrc
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
switch ("$WM_COMPILER_TYPE")
|
||||||
|
case OpenFOAM:
|
||||||
|
case ThirdParty:
|
||||||
|
|
||||||
|
# Default versions of GMP, MPFR and MPC, override as necessary
|
||||||
|
set gmp_version=gmp-5.1.2
|
||||||
|
set mpfr_version=mpfr-3.1.2
|
||||||
|
set mpc_version=mpc-1.0.1
|
||||||
|
|
||||||
|
switch ("$WM_COMPILER")
|
||||||
|
case Gcc55:
|
||||||
|
set gcc_version=gcc-5.5.0
|
||||||
|
breaksw
|
||||||
|
case Gcc65:
|
||||||
|
set gcc_version=gcc-6.5.0
|
||||||
|
breaksw
|
||||||
|
case Gcc74:
|
||||||
|
set gcc_version=gcc-7.4.0
|
||||||
|
breaksw
|
||||||
|
case Gcc82:
|
||||||
|
set gcc_version=gcc-8.2.0
|
||||||
|
breaksw
|
||||||
|
case Gcc95:
|
||||||
|
set gcc_version=gcc-9.5.0
|
||||||
|
breaksw
|
||||||
|
case Gcc111:
|
||||||
|
set gcc_version=gcc-11.1.0
|
||||||
|
breaksw
|
||||||
|
case Gcc121:
|
||||||
|
set gcc_version=gcc-12.1.0
|
||||||
|
breaksw
|
||||||
|
case Clang:
|
||||||
|
# Using clang - not gcc
|
||||||
|
setenv WM_CC 'clang'
|
||||||
|
setenv WM_CXX 'clang++'
|
||||||
|
set clang_version=llvm-3.7.0
|
||||||
|
breaksw
|
||||||
|
default:
|
||||||
|
/bin/cat <<USAGE
|
||||||
|
|
||||||
|
Warning in $WM_PROJECT_DIR/etc/config.csh/settings:
|
||||||
|
Unknown OpenFOAM compiler type '$WM_COMPILER'
|
||||||
|
Please check your settings
|
||||||
|
|
||||||
|
USAGE
|
||||||
|
breaksw
|
||||||
|
endsw
|
||||||
|
breaksw
|
||||||
|
endsw
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -31,7 +31,7 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Fallback value
|
# Fallback value
|
||||||
if (! $?CEI_HOME) then
|
if ( ! $?CEI_HOME ) then
|
||||||
setenv CEI_HOME /usr/local/ensight/CEI
|
setenv CEI_HOME /usr/local/ensight/CEI
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@ -1,46 +0,0 @@
|
|||||||
#----------------------------------*-sh-*--------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
|
||||||
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
|
||||||
# \\/ M anipulation |
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# License
|
|
||||||
# This file is part of OpenFOAM.
|
|
||||||
#
|
|
||||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
# for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# File
|
|
||||||
# config.csh/example/paraview
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Example of chaining to the standard config.csh/paraview with a
|
|
||||||
# different ParaView_VERSION
|
|
||||||
#
|
|
||||||
# Note
|
|
||||||
# This file could be copied to a user or site location, but should never
|
|
||||||
# replace the default shipped version as this will cause an infinite loop
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#
|
|
||||||
# Use other (shipped) paraview.csh with a different ParaView_VERSION
|
|
||||||
#
|
|
||||||
|
|
||||||
set foamFile=`$WM_PROJECT_DIR/bin/foamEtcFile -mode o config.csh/paraview`
|
|
||||||
if ( $status == 0 ) source $foamFile ParaView_VERSION=3.12.0
|
|
||||||
|
|
||||||
unset foamFile
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
## Specify OpenFOAM ThirdParty compiler
|
## Specify OpenFOAM ThirdParty compiler
|
||||||
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
# set WM_COMPILER_TYPE=ThirdParty
|
#setenv WM_COMPILER_TYPE ThirdParty
|
||||||
|
|
||||||
## Specify compiler type
|
## Specify compiler type
|
||||||
## ~~~~~~~~~~~~~~~~~~~~~
|
## ~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -46,7 +46,17 @@
|
|||||||
|
|
||||||
## Specify system openmpi
|
## Specify system openmpi
|
||||||
## ~~~~~~~~~~~~~~~~~~~~~~
|
## ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
# setenv WM_MPLIB SYSTEMOPENMPI
|
#setenv WM_MPLIB SYSTEMOPENMPI
|
||||||
|
|
||||||
|
## Specify options for decomposition libraries
|
||||||
|
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#setenv SCOTCH_TYPE system
|
||||||
|
#setenv METIS_TYPE ThirdParty
|
||||||
|
#setenv METIS_VERSION 5.1.0
|
||||||
|
#setenv PARMETIS_TYPE ThirdParty
|
||||||
|
#setenv ZOLTAN_TYPE ThirdParty
|
||||||
|
|
||||||
|
## Specify system ParaView
|
||||||
|
#setenv ParaView_TYPE system
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
103
etc/config.csh/functions
Normal file
103
etc/config.csh/functions
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
#----------------------------------*-sh-*--------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
|
# \\/ M anipulation |
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of OpenFOAM.
|
||||||
|
#
|
||||||
|
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
# for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# File
|
||||||
|
# etc/config.csh/functions
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Initialisation script functions for the cshrc environment
|
||||||
|
# Sourced from OpenFOAM-<VERSION>/etc/cshrc
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
if ( ! $?WM_CSH_FUNCTIONS ) then
|
||||||
|
|
||||||
|
# Temporary environment variable for automatically (un)loading functions
|
||||||
|
set WM_CSH_FUNCTIONS loaded
|
||||||
|
|
||||||
|
# Source files, possibly with some verbosity
|
||||||
|
alias _foamSource 'if ($?FOAM_VERBOSE && $?prompt) echo "Sourcing: \!*"; if (\!* != "") source \!*'
|
||||||
|
|
||||||
|
# Evaluate command-line parameters
|
||||||
|
alias _foamParams 'foreach arg (\!*)\
|
||||||
|
switch ($arg)\
|
||||||
|
case -*:\
|
||||||
|
# stray option (not meant for us here) -> get out\
|
||||||
|
break\
|
||||||
|
breaksw\
|
||||||
|
case *=:\
|
||||||
|
# name= -> unsetenv name\
|
||||||
|
if ($?FOAM_VERBOSE && $?prompt) echo "unsetenv $arg:s/=//"\
|
||||||
|
eval "unsetenv $arg:s/=//"\
|
||||||
|
breaksw\
|
||||||
|
case *=*:\
|
||||||
|
# name=value -> setenv name value\
|
||||||
|
if ($?FOAM_VERBOSE && $?prompt) echo "setenv $arg:s/=/ /"\
|
||||||
|
eval "setenv $arg:s/=/ /"\
|
||||||
|
breaksw\
|
||||||
|
default:\
|
||||||
|
# ignore non-parameter arguments, e.g. filenames\
|
||||||
|
break\
|
||||||
|
breaksw\
|
||||||
|
endsw\
|
||||||
|
end'
|
||||||
|
|
||||||
|
# Prefix to PATH
|
||||||
|
alias _foamAddPath 'setenv PATH \!*\:${PATH}'
|
||||||
|
|
||||||
|
# Prefix to LD_LIBRARY_PATH
|
||||||
|
alias _foamAddLib 'setenv LD_LIBRARY_PATH \!*\:${LD_LIBRARY_PATH}'
|
||||||
|
|
||||||
|
# Prefix to MANPATH
|
||||||
|
alias _foamAddMan 'setenv MANPATH \!*\:${MANPATH}'
|
||||||
|
|
||||||
|
# Find the most recent of a list of versioned directories
|
||||||
|
alias _foamMostRecentDir 'foreach dir (\!* /dev/nul[l])\
|
||||||
|
if ( -d "$dir" ) then\
|
||||||
|
if ( $?_mostRecentDir ) then\
|
||||||
|
$WM_PROJECT_DIR/bin/tools/foamVersionCompare $_mostRecentDir lt $dir\
|
||||||
|
if ( $status == 0 ) then\
|
||||||
|
set _mostRecentDir=$dir\
|
||||||
|
endif\
|
||||||
|
else\
|
||||||
|
set _mostRecentDir=$dir\
|
||||||
|
endif\
|
||||||
|
endif\
|
||||||
|
end\
|
||||||
|
if ( $?_mostRecentDir ) then\
|
||||||
|
echo $_mostRecentDir\
|
||||||
|
endif\
|
||||||
|
unset _mostRecentDir'
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
# Cleanup environment:
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
|
unset WM_CSH_FUNCTIONS
|
||||||
|
unset _foamSource
|
||||||
|
unset _foamAddPath _foamAddLib _foamAddMan
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -30,9 +30,6 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Communications library
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
unsetenv MPI_ARCH_PATH MPI_HOME FOAM_MPI_LIBBIN
|
unsetenv MPI_ARCH_PATH MPI_HOME FOAM_MPI_LIBBIN
|
||||||
|
|
||||||
switch ("$WM_MPLIB")
|
switch ("$WM_MPLIB")
|
||||||
@ -43,7 +40,7 @@ case SYSTEMOPENMPI:
|
|||||||
set libDir=`mpicc --showme:link | sed -e 's/.*-L\([^ ]*\).*/\1/'`
|
set libDir=`mpicc --showme:link | sed -e 's/.*-L\([^ ]*\).*/\1/'`
|
||||||
|
|
||||||
# Bit of a hack: strip off 'lib' and hope this is the path to openmpi
|
# Bit of a hack: strip off 'lib' and hope this is the path to openmpi
|
||||||
# Include files and libraries.
|
# include files and libraries.
|
||||||
setenv MPI_ARCH_PATH "${libDir:h}"
|
setenv MPI_ARCH_PATH "${libDir:h}"
|
||||||
|
|
||||||
_foamAddLib $libDir
|
_foamAddLib $libDir
|
||||||
@ -266,7 +263,6 @@ if ( "$FOAM_MPI" != dummy ) then
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( ! $?minBufferSize ) set minBufferSize=20000000
|
if ( ! $?minBufferSize ) set minBufferSize=20000000
|
||||||
@ -279,4 +275,9 @@ else
|
|||||||
setenv MPI_BUFFER_SIZE $minBufferSize
|
setenv MPI_BUFFER_SIZE $minBufferSize
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
# Cleanup environment:
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
|
unset minBufferSize
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -28,14 +28,8 @@
|
|||||||
# Setup file for paraview-[4-5].x
|
# Setup file for paraview-[4-5].x
|
||||||
# Sourced from OpenFOAM-<VERSION>/etc/cshrc or from foamPV alias
|
# Sourced from OpenFOAM-<VERSION>/etc/cshrc or from foamPV alias
|
||||||
#
|
#
|
||||||
# Note
|
|
||||||
# The env. variables 'ParaView_DIR' and 'ParaView_MAJOR'
|
|
||||||
# are required for building plugins
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if ( ! $?ParaView_DIR ) setenv ParaView_DIR
|
|
||||||
|
|
||||||
# Clean the PATH
|
# Clean the PATH
|
||||||
set cleaned=`$WM_PROJECT_DIR/bin/foamCleanPath "$PATH" \
|
set cleaned=`$WM_PROJECT_DIR/bin/foamCleanPath "$PATH" \
|
||||||
"/opt/paraviewopenfoam \
|
"/opt/paraviewopenfoam \
|
||||||
@ -44,106 +38,128 @@ set cleaned=`$WM_PROJECT_DIR/bin/foamCleanPath "$PATH" \
|
|||||||
`
|
`
|
||||||
if ( $status == 0 ) setenv PATH $cleaned
|
if ( $status == 0 ) setenv PATH $cleaned
|
||||||
|
|
||||||
# Determine the cmake to be used. Take the most recent.
|
# Detect the most recent version of cmake available and add to the PATH
|
||||||
unsetenv CMAKE_HOME CMAKE_ROOT
|
set cmakeDir=`eval _foamMostRecentDir "$WM_THIRD_PARTY_DIR"/platforms/$WM_ARCH$WM_COMPILER/cmake-*`
|
||||||
set nonomatch
|
if ( "$cmakeDir" != "" ) then
|
||||||
foreach cmake ( $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/cmake-* )
|
setenv PATH $cmakeDir/bin:$PATH
|
||||||
if ( -d $cmake ) then
|
|
||||||
if ( $?CMAKE_HOME ) then
|
|
||||||
$WM_PROJECT_DIR/bin/tools/foamVersionCompare $CMAKE_HOME lt $cmake
|
|
||||||
endif
|
|
||||||
if ( ! $?CMAKE_HOME || $status == 0 ) then
|
|
||||||
setenv CMAKE_HOME $cmake
|
|
||||||
setenv CMAKE_ROOT $cmake
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
end
|
|
||||||
if ( $?CMAKE_HOME ) then
|
|
||||||
setenv PATH $cmake/bin:${PATH}
|
|
||||||
endif
|
endif
|
||||||
|
unset cmakeDir
|
||||||
|
|
||||||
#- ParaView version, automatically determine major version:
|
# Set up the paraview environment
|
||||||
#setenv ParaView_VERSION 5.6.3
|
switch ("$ParaView_TYPE")
|
||||||
setenv ParaView_VERSION 5.10.1
|
case none:
|
||||||
setenv ParaView_MAJOR detect
|
|
||||||
|
|
||||||
#setenv ParaView_GL system
|
unset PV_PLUGIN_PATH
|
||||||
setenv ParaView_GL mesa
|
|
||||||
|
|
||||||
# Evaluate command-line parameters for ParaView
|
|
||||||
while ( $#argv > 0 )
|
|
||||||
switch ($argv[1])
|
|
||||||
case ParaView*=*:
|
|
||||||
# name=value -> setenv name value
|
|
||||||
eval "setenv $argv[1]:s/=/ /"
|
|
||||||
breaksw
|
|
||||||
endsw
|
|
||||||
shift
|
|
||||||
end
|
|
||||||
|
|
||||||
# Set MAJOR version to correspond to VERSION
|
|
||||||
# ParaView_MAJOR is "<digits>.<digits>" from ParaView_VERSION
|
|
||||||
switch ("$ParaView_VERSION")
|
|
||||||
case "$ParaView_MAJOR".*:
|
|
||||||
# Version and major appear to correspond
|
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case [0-9]*:
|
case system:
|
||||||
# Extract major from the version
|
|
||||||
setenv ParaView_MAJOR `echo ${ParaView_VERSION} | \
|
# Look for a paraview installation
|
||||||
sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
|
set pvserverExe=`which pvserver 2> /dev/null`
|
||||||
|
if ( $status == 0 ) then
|
||||||
|
set pvserverBinDir=`dirname $pvserverExe`
|
||||||
|
set paraviewBinDir=`cd $pvserverBinDir && pwd -P`
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Set the environment
|
||||||
|
if ( $?paraviewBinDir ) then
|
||||||
|
if ( -d "$paraviewBinDir" ) then
|
||||||
|
setenv ParaView_DIR `dirname paraviewBinDir`
|
||||||
|
export ParaView_LIB_DIR `unset LD_LIBRARY_PATH && \
|
||||||
|
ldd $paraviewBinDir/paraview | \
|
||||||
|
grep -o "/.*/libpqCore-pv.*.so" | \
|
||||||
|
xargs dirname`
|
||||||
|
setenv ParaView_VERSION `unset LD_LIBRARY_PATH && \
|
||||||
|
pvserver --version 2> /dev/null | \
|
||||||
|
awk '{print $NF}'`
|
||||||
|
setenv ParaView_MAJOR `echo $ParaView_VERSION | sed 's/\.[^\.]\+$//g'`
|
||||||
|
setenv ParaView_INCLUDE_DIR $ParaView_DIR/include/paraview-$ParaView_MAJOR
|
||||||
|
setenv PV_PLUGIN_PATH $FOAM_LIBBIN/paraview-$ParaView_MAJOR
|
||||||
|
|
||||||
|
# Add to the library path
|
||||||
|
setenv LD_LIBRARY_PATH ${ParaView_LIB_DIR}:${PV_PLUGIN_PATH}:${LD_LIBRARY_PATH}
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
unset pvserverExe paraviewBinDir
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
|
case paraviewopenfoam:
|
||||||
|
|
||||||
|
# Look for a paraview installation. The version should be set externally.
|
||||||
|
if ( $?ParaView_VERSION ) then
|
||||||
|
setenv ParaView_MAJOR `echo $ParaView_VERSION | sed 's/\.[^\.]\+$//g'`
|
||||||
|
set paraviewDir=/opt/paraviewopenfoam`echo $ParaView_MAJOR | tr -d '.'`
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Set the environment
|
||||||
|
if ( $?paraviewDir ) then
|
||||||
|
if ( -d "$paraviewDir" ) then
|
||||||
|
setenv ParaView_DIR $paraviewDir
|
||||||
|
setenv ParaView_LIB_DIR `echo "$ParaView_DIR"/lib* | tr ' ' ':'`
|
||||||
|
setenv ParaView_INCLUDE_DIR $ParaView_DIR/include/paraview-$ParaView_MAJOR
|
||||||
|
setenv PV_PLUGIN_PATH $FOAM_LIBBIN/paraview-$ParaView_MAJOR
|
||||||
|
|
||||||
|
# Add to the path and the library path
|
||||||
|
setenv PATH $ParaView_DIR/bin:${PATH}
|
||||||
|
setenv LD_LIBRARY_PATH ${ParaView_LIB_DIR}:${PV_PLUGIN_PATH}:${LD_LIBRARY_PATH}
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
unset paraviewDir
|
||||||
|
breaksw
|
||||||
|
|
||||||
|
case OpenFOAM:
|
||||||
|
case ThirdParty:
|
||||||
|
|
||||||
|
# Look for a paraview installation
|
||||||
|
if ( ! $?ParaView_VERSION ) then
|
||||||
|
set paraviewDir=`eval _foamMostRecentDir "$WM_THIRD_PARTY_DIR"/platforms/$WM_ARCH$WM_COMPILER/ParaView-*`
|
||||||
|
else
|
||||||
|
set paraviewDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/ParaView-$ParaView_VERSION
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Set the environment
|
||||||
|
if ( -d "$paraviewDir" ) then
|
||||||
|
setenv ParaView_DIR $paraviewDir
|
||||||
|
setenv ParaView_LIB_DIR `echo "$ParaView_DIR"/lib* | tr ' ' ':'`
|
||||||
|
setenv ParaView_VERSION `echo $ParaView_DIR | sed 's/.*ParaView-//g'`
|
||||||
|
setenv ParaView_MAJOR `echo $ParaView_VERSION | sed 's/\.[^\.]\+$//g'`
|
||||||
|
setenv ParaView_INCLUDE_DIR $ParaView_DIR/include/paraview-$ParaView_MAJOR
|
||||||
|
setenv PV_PLUGIN_PATH $FOAM_LIBBIN/paraview-$ParaView_MAJOR
|
||||||
|
|
||||||
|
# Add to the path and the library path
|
||||||
|
setenv PATH $ParaView_DIR/bin:${PATH}
|
||||||
|
setenv LD_LIBRARY_PATH ${ParaView_LIB_DIR}:${PV_PLUGIN_PATH}:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
|
# Add in python libraries if required
|
||||||
|
set paraviewPython=$ParaView_DIR/Utilities/VTKPythonWrapping
|
||||||
|
if ( -r $paraviewPython ) then
|
||||||
|
if ( $?PYTHONPATH ) then
|
||||||
|
setenv PYTHONPATH $PYTHONPATH:$paraviewPython:$ParaView_LIB_DIR
|
||||||
|
else
|
||||||
|
setenv PYTHONPATH $paraviewPython:$ParaView_LIB_DIR
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
unset paraviewPython
|
||||||
|
endif
|
||||||
|
|
||||||
|
unset paraviewDir
|
||||||
|
breaksw
|
||||||
|
|
||||||
endsw
|
endsw
|
||||||
|
|
||||||
# Set the binary and source directories
|
# Report
|
||||||
setenv ParaView_DIR $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/ParaView-$ParaView_VERSION
|
if ( $?ParaView_DIR ) then
|
||||||
set paraviewSrcDir=$WM_THIRD_PARTY_DIR/ParaView-${ParaView_VERSION}
|
if ( -d "$ParaView_DIR" && $?FOAM_VERBOSE && $?prompt ) then
|
||||||
|
echo "Using paraview"
|
||||||
# Set paths if binaries or source are present
|
echo " ParaView_DIR : $ParaView_DIR"
|
||||||
if ( -d $ParaView_DIR || -d $paraviewSrcDir ) then
|
echo " ParaView_LIB_DIR : $ParaView_LIB_DIR"
|
||||||
setenv ParaView_INCLUDE_DIR $ParaView_DIR/include/paraview-${ParaView_MAJOR}
|
echo " ParaView_INCLUDE_DIR : $ParaView_INCLUDE_DIR"
|
||||||
|
echo " PV_PLUGIN_PATH : $PV_PLUGIN_PATH"
|
||||||
set paraviewArch=
|
endif
|
||||||
if ( -d $ParaView_DIR/lib64 ) then
|
|
||||||
set paraviewArch=64
|
|
||||||
endif
|
|
||||||
set paraviewLibSubDir=
|
|
||||||
$WM_PROJECT_DIR/bin/tools/foamVersionCompare $ParaView_VERSION lt 5.5.0
|
|
||||||
if ( $status == 0 ) then
|
|
||||||
set paraviewLibSubDir=/paraview-$ParaView_MAJOR
|
|
||||||
endif
|
|
||||||
setenv ParaView_LIB_DIR $ParaView_DIR/lib$paraviewArch$paraviewLibSubDir
|
|
||||||
|
|
||||||
setenv PATH ${ParaView_DIR}/bin:${PATH}
|
|
||||||
setenv LD_LIBRARY_PATH "${ParaView_LIB_DIR}:${LD_LIBRARY_PATH}"
|
|
||||||
setenv PV_PLUGIN_PATH $FOAM_LIBBIN/paraview-${ParaView_MAJOR}
|
|
||||||
|
|
||||||
if ($?FOAM_VERBOSE && $?prompt) then
|
|
||||||
echo "Using paraview"
|
|
||||||
echo " ParaView_DIR : $ParaView_DIR"
|
|
||||||
echo " ParaView_LIB_DIR : $ParaView_LIB_DIR"
|
|
||||||
echo " ParaView_INCLUDE_DIR : $ParaView_INCLUDE_DIR"
|
|
||||||
echo " PV_PLUGIN_PATH : $PV_PLUGIN_PATH"
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Add in python libraries if required
|
|
||||||
set paraviewPython=$ParaView_DIR/Utilities/VTKPythonWrapping
|
|
||||||
if ( -r $paraviewPython ) then
|
|
||||||
if ($?PYTHONPATH) then
|
|
||||||
setenv PYTHONPATH ${PYTHONPATH}:${paraviewPython}:$ParaView_LIB_DIR
|
|
||||||
else
|
|
||||||
setenv PYTHONPATH ${paraviewPython}:$ParaView_LIB_DIR
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Alias paraview to launch with mesa if necessary
|
|
||||||
if ("$ParaView_GL" == mesa) then
|
|
||||||
alias paraview 'env LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ParaView_LIB_DIR}/mesa paraview'
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
unsetenv PV_PLUGIN_PATH
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
unset cleaned cmake paraviewInstDir paraviewPython
|
unset cleaned
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -30,27 +30,26 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Prefix to PATH
|
|
||||||
alias _foamAddPath 'setenv PATH \!*\:${PATH}'
|
|
||||||
# Prefix to LD_LIBRARY_PATH
|
|
||||||
alias _foamAddLib 'setenv LD_LIBRARY_PATH \!*\:${LD_LIBRARY_PATH}'
|
|
||||||
# Prefix to MANPATH
|
|
||||||
alias _foamAddMan 'setenv MANPATH \!*\:${MANPATH}'
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Set environment variables according to system type
|
# Set environment variables according to system type
|
||||||
setenv WM_ARCH `uname -s`
|
setenv WM_ARCH `uname -s`
|
||||||
|
|
||||||
# Default WM_COMPILER_LIB_ARCH for 32bit
|
# Default WM_COMPILER_LIB_ARCH for 32bit
|
||||||
setenv WM_COMPILER_LIB_ARCH
|
setenv WM_COMPILER_LIB_ARCH
|
||||||
|
|
||||||
|
# Define compilation flags for the given system type
|
||||||
switch ($WM_ARCH)
|
switch ($WM_ARCH)
|
||||||
case Linux:
|
case Linux:
|
||||||
setenv WM_ARCH linux
|
setenv WM_ARCH linux
|
||||||
|
|
||||||
|
# Compiler specifics
|
||||||
switch (`uname -m`)
|
switch (`uname -m`)
|
||||||
case i686:
|
case i686:
|
||||||
setenv WM_ARCH_OPTION 32
|
setenv WM_ARCH_OPTION 32
|
||||||
|
setenv WM_CC 'gcc'
|
||||||
|
setenv WM_CXX 'g++'
|
||||||
|
setenv WM_CFLAGS '-fPIC'
|
||||||
|
setenv WM_CXXFLAGS '-fPIC -std=c++0x'
|
||||||
|
setenv WM_LDFLAGS
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case x86_64:
|
case x86_64:
|
||||||
@ -91,6 +90,17 @@ case Linux:
|
|||||||
setenv WM_LDFLAGS ''
|
setenv WM_LDFLAGS ''
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
|
case armv7l:
|
||||||
|
setenv WM_ARCH linuxARM7
|
||||||
|
setenv WM_ARCH_OPTION 32
|
||||||
|
setenv WM_COMPILER_LIB_ARCH 32
|
||||||
|
setenv WM_CC 'gcc'
|
||||||
|
setenv WM_CXX 'g++'
|
||||||
|
setenv WM_CFLAGS '-fPIC'
|
||||||
|
setenv WM_CXXFLAGS '-fPIC -std=c++0x'
|
||||||
|
setenv WM_LDFLAGS
|
||||||
|
breaksw
|
||||||
|
|
||||||
case ppc64:
|
case ppc64:
|
||||||
setenv WM_ARCH linuxPPC64
|
setenv WM_ARCH linuxPPC64
|
||||||
setenv WM_COMPILER_LIB_ARCH 64
|
setenv WM_COMPILER_LIB_ARCH 64
|
||||||
@ -129,13 +139,14 @@ case SunOS:
|
|||||||
setenv WM_LDFLAGS '-mabi=64 -G0'
|
setenv WM_LDFLAGS '-mabi=64 -G0'
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
default:
|
default: # An unsupported operating system
|
||||||
echo
|
/bin/cat <<USAGE
|
||||||
echo "Your '$WM_ARCH' operating system is not supported by this release"
|
|
||||||
echo "of OpenFOAM. For further assistance, please contact https://openfoam.org"
|
|
||||||
echo
|
|
||||||
breaksw
|
|
||||||
|
|
||||||
|
Your "$WM_ARCH" operating system is not supported by this release
|
||||||
|
of OpenFOAM. For further assistance, please contact https://openfoam.org
|
||||||
|
|
||||||
|
USAGE
|
||||||
|
breaksw
|
||||||
endsw
|
endsw
|
||||||
|
|
||||||
|
|
||||||
@ -213,59 +224,23 @@ _foamAddLib ${FOAM_USER_LIBBIN}:${FOAM_SITE_LIBBIN}:${FOAM_LIBBIN}:${FOAM_EXT_L
|
|||||||
unset gcc_version gmp_version mpfr_version mpc_version
|
unset gcc_version gmp_version mpfr_version mpc_version
|
||||||
unsetenv MPFR_ARCH_PATH GMP_ARCH_PATH
|
unsetenv MPFR_ARCH_PATH GMP_ARCH_PATH
|
||||||
|
|
||||||
|
|
||||||
# Location of compiler installation
|
# Location of compiler installation
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( ! $?WM_COMPILER_TYPE ) then
|
if ( ! $?WM_COMPILER_TYPE ) then
|
||||||
set WM_COMPILER_TYPE=system
|
set WM_COMPILER_TYPE=system
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/config.csh/settings:"
|
/bin/cat <<USAGE
|
||||||
echo " WM_COMPILER_TYPE not set, using '$WM_COMPILER_TYPE'"
|
Warning in $WM_PROJECT_DIR/etc/config.sh/settings:
|
||||||
|
WM_COMPILER_TYPE not set, using '$WM_COMPILER_TYPE'
|
||||||
|
USAGE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Load configured compiler versions, regardless of the compiler type
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/compiler`
|
||||||
|
|
||||||
switch ("$WM_COMPILER_TYPE")
|
switch ("$WM_COMPILER_TYPE")
|
||||||
case OpenFOAM:
|
case OpenFOAM:
|
||||||
case ThirdParty:
|
case ThirdParty:
|
||||||
# Default versions of GMP, MPFR and MPC, override as necessary
|
|
||||||
set gmp_version=gmp-5.1.2
|
|
||||||
set mpfr_version=mpfr-3.1.2
|
|
||||||
set mpc_version=mpc-1.0.1
|
|
||||||
|
|
||||||
switch ("$WM_COMPILER")
|
|
||||||
case Gcc55:
|
|
||||||
set gcc_version=gcc-5.5.0
|
|
||||||
breaksw
|
|
||||||
case Gcc65:
|
|
||||||
set gcc_version=gcc-6.5.0
|
|
||||||
breaksw
|
|
||||||
case Gcc74:
|
|
||||||
set gcc_version=gcc-7.4.0
|
|
||||||
breaksw
|
|
||||||
case Gcc82:
|
|
||||||
set gcc_version=gcc-8.2.0
|
|
||||||
breaksw
|
|
||||||
case Gcc111:
|
|
||||||
set gcc_version=gcc-11.1.0
|
|
||||||
breaksw
|
|
||||||
case Gcc121:
|
|
||||||
set gcc_version=gcc-12.1.0
|
|
||||||
breaksw
|
|
||||||
case Clang:
|
|
||||||
# Using clang - not gcc
|
|
||||||
setenv WM_CC 'clang'
|
|
||||||
setenv WM_CXX 'clang++'
|
|
||||||
set clang_version=llvm-3.7.0
|
|
||||||
breaksw
|
|
||||||
default:
|
|
||||||
echo
|
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/config.csh/settings:"
|
|
||||||
echo " Unknown OpenFOAM compiler type '$WM_COMPILER'"
|
|
||||||
echo " Please check your settings"
|
|
||||||
echo
|
|
||||||
breaksw
|
|
||||||
endsw
|
|
||||||
|
|
||||||
# Optional configuration tweaks:
|
|
||||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/compiler`
|
|
||||||
|
|
||||||
if ( $?gcc_version ) then
|
if ( $?gcc_version ) then
|
||||||
set gccDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$gcc_version
|
set gccDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$gcc_version
|
||||||
@ -277,13 +252,14 @@ case ThirdParty:
|
|||||||
|
|
||||||
# Check that the compiler directory can be found
|
# Check that the compiler directory can be found
|
||||||
if ( ! -d "$gccDir" ) then
|
if ( ! -d "$gccDir" ) then
|
||||||
echo
|
/bin/cat <<USAGE
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/config.csh/settings:"
|
|
||||||
echo " Cannot find $gccDir installation."
|
Warning in $WM_PROJECT_DIR/etc/config.csh/settings:
|
||||||
echo " Please install this compiler version or if you wish to" \
|
Cannot find $gccDir installation.
|
||||||
" use the system compiler,"
|
Please install this compiler version or if you wish to use the system compiler,
|
||||||
echo " change the 'WM_COMPILER_TYPE' setting to 'system'"
|
change the 'WM_COMPILER_TYPE' setting to 'system'
|
||||||
echo
|
|
||||||
|
USAGE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
_foamAddMan $gccDir/man
|
_foamAddMan $gccDir/man
|
||||||
@ -302,27 +278,27 @@ case ThirdParty:
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
unset gcc_version gccDir
|
unset gcc_version gccDir
|
||||||
unset gmp_version gmpDir mpfr_version mpfrDir mpc_version mpcDir
|
unset gmp_version gmpDir mpfr_version mpfrDir mpc_version mpcDir
|
||||||
|
|
||||||
if ( $?clang_version ) then
|
if ( $?clang_version ) then
|
||||||
set clangDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$clang_version
|
set clangDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$clang_version
|
||||||
|
|
||||||
# Check that the compiler directory can be found
|
# Check that the compiler directory can be found
|
||||||
if ( ! -d "$clangDir" ) then
|
if ( ! -d "$clangDir" ) then
|
||||||
echo
|
/bin/cat <<USAGE
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/config.csh/settings:"
|
|
||||||
echo " Cannot find $clangDir installation."
|
Warning in $WM_PROJECT_DIR/etc/config.csh/settings:
|
||||||
echo " Please install this compiler version or if you wish to" \
|
Cannot find $clangDir installation.
|
||||||
" use the system compiler,"
|
Please install this compiler version or if you wish to use the system compiler,
|
||||||
echo " change the 'WM_COMPILER_TYPE' setting to 'system'"
|
change the 'WM_COMPILER_TYPE' setting to 'system'
|
||||||
echo
|
|
||||||
|
USAGE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
_foamAddMan $clangDir/man
|
_foamAddMan $clangDir/share/man
|
||||||
_foamAddPath $clangDir/bin
|
_foamAddPath $clangDir/bin
|
||||||
endif
|
endif
|
||||||
unset clang_version clangDir
|
unset clang_version clangDir
|
||||||
|
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case system:
|
case system:
|
||||||
@ -330,16 +306,16 @@ case system:
|
|||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
default:
|
default:
|
||||||
echo "Warn: WM_COMPILER_TYPE='$WM_COMPILER_TYPE' is unsupported"
|
/bin/cat <<USAGE
|
||||||
echo " treating as 'system' instead"
|
Warn: WM_COMPILER_TYPE='$WM_COMPILER_TYPE' is unsupported
|
||||||
|
treating as 'system' instead
|
||||||
|
USAGE
|
||||||
breaksw
|
breaksw
|
||||||
endsw
|
endsw
|
||||||
|
|
||||||
|
|
||||||
# Cleanup environment:
|
# Cleanup environment:
|
||||||
# ~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
#- keep _foamAddPath _foamAddLib _foamAddMan
|
|
||||||
unset minBufferSize
|
|
||||||
unsetenv WM_COMPILER_TYPE
|
unsetenv WM_COMPILER_TYPE
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -30,7 +30,6 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Clean standard environment variables (PATH, LD_LIBRARY_PATH, MANPATH)
|
# Clean standard environment variables (PATH, LD_LIBRARY_PATH, MANPATH)
|
||||||
|
|
||||||
unset foamClean
|
unset foamClean
|
||||||
if ( $?WM_PROJECT_DIR ) then
|
if ( $?WM_PROJECT_DIR ) then
|
||||||
set foamClean=$WM_PROJECT_DIR/bin/foamCleanPath
|
set foamClean=$WM_PROJECT_DIR/bin/foamCleanPath
|
||||||
@ -78,6 +77,7 @@ unsetenv WM_PROJECT_SITE
|
|||||||
unsetenv WM_PROJECT_USER_DIR
|
unsetenv WM_PROJECT_USER_DIR
|
||||||
unsetenv WM_PROJECT_VERSION
|
unsetenv WM_PROJECT_VERSION
|
||||||
unsetenv WM_SCHEDULER
|
unsetenv WM_SCHEDULER
|
||||||
|
unsetenv WM_THIRD_PARTY
|
||||||
unsetenv WM_THIRD_PARTY_DIR
|
unsetenv WM_THIRD_PARTY_DIR
|
||||||
|
|
||||||
|
|
||||||
@ -106,6 +106,9 @@ unsetenv FOAM_TUTORIALS
|
|||||||
unsetenv FOAM_USER_APPBIN
|
unsetenv FOAM_USER_APPBIN
|
||||||
unsetenv FOAM_USER_LIBBIN
|
unsetenv FOAM_USER_LIBBIN
|
||||||
unsetenv FOAM_UTILITIES
|
unsetenv FOAM_UTILITIES
|
||||||
|
unsetenv FOAM_SETNAN
|
||||||
|
unsetenv FOAM_VERBOSE
|
||||||
|
unsetenv FOAM_ABORT
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -113,20 +116,28 @@ unsetenv FOAM_UTILITIES
|
|||||||
|
|
||||||
unsetenv MPI_ARCH_PATH
|
unsetenv MPI_ARCH_PATH
|
||||||
unsetenv MPI_BUFFER_SIZE
|
unsetenv MPI_BUFFER_SIZE
|
||||||
|
|
||||||
unsetenv OPAL_PREFIX
|
unsetenv OPAL_PREFIX
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Unset Ensight/ParaView-related environment variables
|
# Unset Ensight/Decomposition/ParaView-related environment variables
|
||||||
|
|
||||||
unsetenv ENSIGHT9_READER
|
unsetenv ENSIGHT9_READER
|
||||||
unsetenv CMAKE_HOME
|
unsetenv SCOTCH_TYPE
|
||||||
|
unsetenv SCOTCH_VERSION
|
||||||
|
unsetenv METIS_TYPE
|
||||||
|
unsetenv METIS_VERSION
|
||||||
|
unsetenv PARMETIS_TYPE
|
||||||
|
unsetenv PARMETIS_VERSION
|
||||||
|
unsetenv ZOLTAN_TYPE
|
||||||
|
unsetenv ZOLTAN_VERSION
|
||||||
|
unsetenv ParaView_TYPE
|
||||||
unsetenv ParaView_DIR
|
unsetenv ParaView_DIR
|
||||||
unsetenv ParaView_INCLUDE_DIR
|
unsetenv ParaView_INCLUDE_DIR
|
||||||
unsetenv ParaView_LIB_DIR
|
unsetenv ParaView_LIB_DIR
|
||||||
unsetenv ParaView_MAJOR
|
unsetenv ParaView_MAJOR
|
||||||
unsetenv ParaView_VERSION
|
unsetenv ParaView_VERSION
|
||||||
unsetenv ParaView_GL
|
|
||||||
unsetenv PV_PLUGIN_PATH
|
unsetenv PV_PLUGIN_PATH
|
||||||
|
|
||||||
|
|
||||||
@ -158,6 +169,7 @@ endif
|
|||||||
|
|
||||||
unset cleaned foamClean foamOldDirs
|
unset cleaned foamClean foamOldDirs
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Cleanup aliases
|
# Cleanup aliases
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -110,7 +110,9 @@ foamVersion()
|
|||||||
unset foamPV
|
unset foamPV
|
||||||
foamPV()
|
foamPV()
|
||||||
{
|
{
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
. $WM_PROJECT_DIR/etc/config.sh/paraview ParaView_VERSION=$1
|
. $WM_PROJECT_DIR/etc/config.sh/paraview ParaView_VERSION=$1
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
echo "paraview-$ParaView_VERSION (major: $ParaView_MAJOR)" 1>&2
|
echo "paraview-$ParaView_VERSION (major: $ParaView_MAJOR)" 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -67,12 +67,16 @@ OpenFOAM | ThirdParty)
|
|||||||
clang_version=llvm-3.7.0
|
clang_version=llvm-3.7.0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 1>&2
|
/bin/cat <<USAGE 1>&2
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/config.sh/compiler:" 1>&2
|
|
||||||
echo " Unknown OpenFOAM compiler type '$WM_COMPILER'" 1>&2
|
Warning in $WM_PROJECT_DIR/etc/config.sh/compiler:
|
||||||
echo " Please check your settings" 1>&2
|
Unknown OpenFOAM compiler type '$WM_COMPILER'
|
||||||
echo 1>&2
|
Please check your settings
|
||||||
|
|
||||||
|
USAGE
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,46 +0,0 @@
|
|||||||
#----------------------------------*-sh-*--------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
|
||||||
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
|
||||||
# \\/ M anipulation |
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# License
|
|
||||||
# This file is part of OpenFOAM.
|
|
||||||
#
|
|
||||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
# for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# File
|
|
||||||
# config.sh/example/paraview
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Example of chaining to the standard config.sh/paraview with a
|
|
||||||
# different ParaView_VERSION
|
|
||||||
#
|
|
||||||
# Note
|
|
||||||
# This file could be copied to a user or site location, but should never
|
|
||||||
# replace the default shipped version as this will cause an infinite loop.
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#
|
|
||||||
# Use other (shipped) paraview with a different ParaView_VERSION
|
|
||||||
#
|
|
||||||
|
|
||||||
foamFile=$($WM_PROJECT_DIR/bin/foamEtcFile -mode o config.sh/paraview 2>/dev/null)
|
|
||||||
[ $? -eq 0 ] && . $foamFile ParaView_VERSION=3.12.0
|
|
||||||
|
|
||||||
unset foamFile
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
## Specify OpenFOAM ThirdParty compiler
|
## Specify OpenFOAM ThirdParty compiler
|
||||||
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
#WM_COMPILER_TYPE=ThirdParty
|
#export WM_COMPILER_TYPE=ThirdParty
|
||||||
|
|
||||||
## Specify compiler type
|
## Specify compiler type
|
||||||
## ~~~~~~~~~~~~~~~~~~~~~
|
## ~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -48,5 +48,15 @@
|
|||||||
## ~~~~~~~~~~~~~~~~~~~~~~
|
## ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
#export WM_MPLIB=SYSTEMOPENMPI
|
#export WM_MPLIB=SYSTEMOPENMPI
|
||||||
|
|
||||||
|
## Specify options for decomposition libraries
|
||||||
|
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#export SCOTCH_TYPE=system
|
||||||
|
#export METIS_TYPE=ThirdParty
|
||||||
|
#export METIS_VERSION=5.1.0
|
||||||
|
#export PARMETIS_TYPE=ThirdParty
|
||||||
|
#export ZOLTAN_TYPE=ThirdParty
|
||||||
|
|
||||||
|
## Specify system ParaView
|
||||||
|
#export ParaView_TYPE=system
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -26,7 +26,7 @@
|
|||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Initialisation script functions for the bashrc environment
|
# Initialisation script functions for the bashrc environment
|
||||||
# Sourced from OpenFOAM-<VERSION>/etc/config.sh/bashrc
|
# Sourced from OpenFOAM-<VERSION>/etc/bashrc
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -102,12 +102,44 @@ then
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Find the most recent of a list of versioned directories
|
||||||
|
_foamMostRecentDir()
|
||||||
|
{
|
||||||
|
_mostRecentDir=
|
||||||
|
|
||||||
|
while [ $# -gt 0 ]
|
||||||
|
do
|
||||||
|
if [ -d "$1" ]
|
||||||
|
then
|
||||||
|
if [ -z "$_mostRecentDir" ] ||
|
||||||
|
"$WM_PROJECT_DIR"/bin/tools/foamVersionCompare \
|
||||||
|
"$_mostRecentDir" lt $1
|
||||||
|
then
|
||||||
|
_mostRecentDir=$1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -n "$_mostRecentDir" ]
|
||||||
|
then
|
||||||
|
echo "$_mostRecentDir"
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset _mostRecentDir
|
||||||
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
# Cleanup environment:
|
# Cleanup environment:
|
||||||
# ~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
unset WM_BASH_FUNCTIONS
|
unset WM_BASH_FUNCTIONS
|
||||||
|
unset _foamSource
|
||||||
|
unset _foamParams
|
||||||
unset _foamAddPath _foamAddLib _foamAddMan
|
unset _foamAddPath _foamAddLib _foamAddMan
|
||||||
unset _foamSource _foamParams
|
unset _foamMostRecentDir
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2013-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -34,7 +34,37 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
export METIS_VERSION=metis-5.1.0
|
# Load functions
|
||||||
export METIS_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/$METIS_VERSION
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
|
# Find the path to the metis installation
|
||||||
|
case "$METIS_TYPE" in
|
||||||
|
none)
|
||||||
|
;;
|
||||||
|
system)
|
||||||
|
export METIS_VERSION=system
|
||||||
|
export METIS_ARCH_PATH=/usr
|
||||||
|
;;
|
||||||
|
OpenFOAM | ThirdParty)
|
||||||
|
# Look for the source directory
|
||||||
|
if [ -z "$METIS_VERSION" ]
|
||||||
|
then
|
||||||
|
metisSrcDir=$(_foamMostRecentDir "$WM_THIRD_PARTY_DIR"/metis-*)
|
||||||
|
else
|
||||||
|
metisSrcDir=$WM_THIRD_PARTY_DIR/metis-$METIS_VERSION
|
||||||
|
fi
|
||||||
|
# Set the version and the installation path
|
||||||
|
if [ -d "$metisSrcDir" ]
|
||||||
|
then
|
||||||
|
export METIS_VERSION=${metisSrcDir##*metis-}
|
||||||
|
export METIS_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/metis-$METIS_VERSION
|
||||||
|
fi
|
||||||
|
# Clean up
|
||||||
|
unset metisSrcDir
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Unload functions
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -267,7 +267,6 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
: ${minBufferSize:=20000000}
|
: ${minBufferSize:=20000000}
|
||||||
|
|||||||
@ -34,7 +34,38 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
export PARMETIS_VERSION=parmetis-4.0.3
|
# Load functions
|
||||||
export PARMETIS_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/$PARMETIS_VERSION
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
|
# Find the path to the parMetis installation
|
||||||
|
case "$PARMETIS_TYPE" in
|
||||||
|
none)
|
||||||
|
;;
|
||||||
|
system)
|
||||||
|
export PARMETIS_VERSION=system
|
||||||
|
export PARMETIS_ARCH_PATH=/usr
|
||||||
|
;;
|
||||||
|
OpenFOAM | ThirdParty)
|
||||||
|
# Look for the source directory
|
||||||
|
if [ -z "$PARMETIS_VERSION" ]
|
||||||
|
then
|
||||||
|
parMetisSrcDir=$(_foamMostRecentDir "$WM_THIRD_PARTY_DIR"/parmetis-*)
|
||||||
|
else
|
||||||
|
parMetisSrcDir=$WM_THIRD_PARTY_DIR/parmetis-$PARMETIS_VERSION
|
||||||
|
fi
|
||||||
|
# Set the version and the installation path
|
||||||
|
if [ -d "$parMetisSrcDir" ]
|
||||||
|
then
|
||||||
|
export PARMETIS_VERSION=${parMetisSrcDir##*parmetis-}
|
||||||
|
export PARMETIS_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/parmetis-$PARMETIS_VERSION
|
||||||
|
fi
|
||||||
|
# Clean up
|
||||||
|
unset parMetisSrcDir
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Unload functions
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -28,135 +28,138 @@
|
|||||||
# Setup file for paraview-[4-5].x
|
# Setup file for paraview-[4-5].x
|
||||||
# Sourced from OpenFOAM-<VERSION>/etc/bashrc or from foamPV alias
|
# Sourced from OpenFOAM-<VERSION>/etc/bashrc or from foamPV alias
|
||||||
#
|
#
|
||||||
# Note
|
|
||||||
# The env. variables 'ParaView_DIR' and 'ParaView_MAJOR'
|
|
||||||
# are required for building plugins
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Clean the PATH
|
# Clean the PATH
|
||||||
cleaned=$($WM_PROJECT_DIR/bin/foamCleanPath "$PATH" \
|
cleaned=$("$WM_PROJECT_DIR"/bin/foamCleanPath "$PATH" \
|
||||||
"/opt/paraviewopenfoam \
|
"/opt/paraviewopenfoam \
|
||||||
$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/cmake- \
|
$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/cmake- \
|
||||||
$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/ParaView-" \
|
$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/ParaView-" \
|
||||||
) \
|
) \
|
||||||
&& PATH="$cleaned"
|
&& PATH="$cleaned"
|
||||||
|
|
||||||
# Determine the cmake to be used. Take the most recent.
|
# Detect the most recent version of cmake available and add to the PATH
|
||||||
unset CMAKE_HOME CMAKE_ROOT
|
cmakeDir=$(_foamMostRecentDir "$WM_THIRD_PARTY_DIR"/platforms/$WM_ARCH$WM_COMPILER/cmake-*)
|
||||||
for cmake in $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/cmake-*
|
if [ -n "$cmakeDir" ]
|
||||||
do
|
|
||||||
if [ -d $cmake ]
|
|
||||||
then
|
|
||||||
if [ -z $CMAKE_HOME ] || \
|
|
||||||
$WM_PROJECT_DIR/bin/tools/foamVersionCompare $CMAKE_HOME lt $cmake
|
|
||||||
then
|
|
||||||
export CMAKE_HOME=$cmake
|
|
||||||
export CMAKE_ROOT=$cmake
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ -n $CMAKE_HOME ]
|
|
||||||
then
|
then
|
||||||
export PATH=$cmake/bin:$PATH
|
export PATH=$cmakeDir/bin:$PATH
|
||||||
fi
|
fi
|
||||||
|
unset cmakeDir
|
||||||
|
|
||||||
#- ParaView version, automatically determine major version
|
# Set up the paraview environment
|
||||||
#export ParaView_VERSION=5.6.3
|
case "$ParaView_TYPE" in
|
||||||
export ParaView_VERSION=5.10.1
|
none)
|
||||||
export ParaView_MAJOR=detect
|
|
||||||
|
|
||||||
#export ParaView_GL=system
|
|
||||||
export ParaView_GL=mesa
|
|
||||||
|
|
||||||
# Evaluate command-line parameters for ParaView
|
|
||||||
_foamParaviewEval()
|
|
||||||
{
|
|
||||||
while [ $# -gt 0 ]
|
|
||||||
do
|
|
||||||
case "$1" in
|
|
||||||
ParaView*=*)
|
|
||||||
# name=value -> export name=value
|
|
||||||
eval "export $1"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Evaluate command-line parameters
|
|
||||||
_foamParaviewEval $@
|
|
||||||
|
|
||||||
# Set MAJOR version to correspond to VERSION
|
|
||||||
# ParaView_MAJOR is "<digits>.<digits>" from ParaView_VERSION
|
|
||||||
case "$ParaView_VERSION" in
|
|
||||||
"$ParaView_MAJOR".* )
|
|
||||||
# Version and major appear to correspond
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
[0-9]*)
|
system)
|
||||||
# Extract major from the version
|
|
||||||
ParaView_MAJOR=$(echo $ParaView_VERSION | \
|
# Look for a paraview installation
|
||||||
sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/')
|
if pvserverExe=$(which pvserver 2> /dev/null)
|
||||||
|
then
|
||||||
|
paraviewBinDir=$(dirname $pvserverExe)
|
||||||
|
paraviewBinDir=$(cd $paraviewBinDir && pwd -P)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set the environment
|
||||||
|
if [ -d "$paraviewBinDir" ]
|
||||||
|
then
|
||||||
|
export ParaView_DIR=$(dirname $paraviewBinDir)
|
||||||
|
export ParaView_LIB_DIR=$(unset LD_LIBRARY_PATH && \
|
||||||
|
ldd $paraviewBinDir/paraview | \
|
||||||
|
grep -o "/.*/libpqCore-pv.*.so" | \
|
||||||
|
xargs dirname)
|
||||||
|
export ParaView_VERSION=$(unset LD_LIBRARY_PATH && \
|
||||||
|
pvserver --version 2> /dev/null | \
|
||||||
|
awk '{print $NF}')
|
||||||
|
export ParaView_MAJOR=${ParaView_VERSION%.*}
|
||||||
|
export ParaView_INCLUDE_DIR=$ParaView_DIR/include/paraview-$ParaView_MAJOR
|
||||||
|
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-$ParaView_MAJOR
|
||||||
|
|
||||||
|
# Add to the library path
|
||||||
|
export LD_LIBRARY_PATH=$ParaView_LIB_DIR:$PV_PLUGIN_PATH:$LD_LIBRARY_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset pvserverExe paraviewBinDir
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
paraviewopenfoam)
|
||||||
|
|
||||||
|
# Look for a paraview installation. The version should be set externally.
|
||||||
|
if [ -n "$ParaView_VERSION" ]
|
||||||
|
then
|
||||||
|
export ParaView_MAJOR=${ParaView_VERSION%.*}
|
||||||
|
paraviewDir=/opt/paraviewopenfoam$(echo "$ParaView_MAJOR" | tr -d '.')
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set the environment
|
||||||
|
if [ -d "$paraviewDir" ]
|
||||||
|
then
|
||||||
|
export ParaView_DIR=$paraviewDir
|
||||||
|
export ParaView_LIB_DIR=$(echo "$ParaView_DIR"/lib* | tr ' ' ':')
|
||||||
|
export ParaView_INCLUDE_DIR=$ParaView_DIR/include/paraview-$ParaView_MAJOR
|
||||||
|
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-$ParaView_MAJOR
|
||||||
|
|
||||||
|
# Add to the path and the library path
|
||||||
|
export PATH=$ParaView_DIR/bin:$PATH
|
||||||
|
export LD_LIBRARY_PATH=$ParaView_LIB_DIR:$PV_PLUGIN_PATH:$LD_LIBRARY_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset paraviewDir
|
||||||
|
;;
|
||||||
|
|
||||||
|
OpenFOAM | ThirdParty)
|
||||||
|
|
||||||
|
# Look for a paraview installation
|
||||||
|
if [ -z "$ParaView_VERSION" ]
|
||||||
|
then
|
||||||
|
paraviewDir=$(_foamMostRecentDir "$WM_THIRD_PARTY_DIR"/platforms/$WM_ARCH$WM_COMPILER/ParaView-*)
|
||||||
|
else
|
||||||
|
paraviewDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/ParaView-$ParaView_VERSION
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set the environment
|
||||||
|
if [ -d "$paraviewDir" ]
|
||||||
|
then
|
||||||
|
export ParaView_DIR=$paraviewDir
|
||||||
|
export ParaView_LIB_DIR=$(echo "$ParaView_DIR"/lib* | tr ' ' ':')
|
||||||
|
export ParaView_VERSION=${paraviewDir##*ParaView-}
|
||||||
|
export ParaView_MAJOR=${ParaView_VERSION%.*}
|
||||||
|
export ParaView_INCLUDE_DIR=$paraviewDir/include/paraview-$ParaView_MAJOR
|
||||||
|
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-$ParaView_MAJOR
|
||||||
|
|
||||||
|
# Add to the path and the library path
|
||||||
|
export PATH=$ParaView_DIR/bin:$PATH
|
||||||
|
export LD_LIBRARY_PATH=$ParaView_LIB_DIR:$PV_PLUGIN_PATH:$LD_LIBRARY_PATH
|
||||||
|
|
||||||
|
# Add in python libraries if required
|
||||||
|
paraviewPython=$ParaView_DIR/Utilities/VTKPythonWrapping
|
||||||
|
if [ -r "$paraviewPython" ]
|
||||||
|
then
|
||||||
|
if [ "$PYTHONPATH" ]
|
||||||
|
then
|
||||||
|
export PYTHONPATH=$PYTHONPATH:$paraviewPython:$ParaView_LIB_DIR
|
||||||
|
else
|
||||||
|
export PYTHONPATH=$paraviewPython:$ParaView_LIB_DIR
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
unset paraviewPython
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset paraviewDir
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
export ParaView_VERSION ParaView_MAJOR
|
|
||||||
|
|
||||||
# Set the binary and source directories
|
# Report
|
||||||
export ParaView_DIR=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/ParaView-$ParaView_VERSION
|
if [ "$FOAM_VERBOSE" ] && [ "$PS1" ] && [ -d "$ParaView_DIR" ]
|
||||||
paraviewSrcDir=$WM_THIRD_PARTY_DIR/ParaView-$ParaView_VERSION
|
|
||||||
|
|
||||||
# Set paths if binaries or source are present
|
|
||||||
if [ -d $ParaView_DIR -o -d $paraviewSrcDir ]
|
|
||||||
then
|
then
|
||||||
export ParaView_INCLUDE_DIR=$ParaView_DIR/include/paraview-$ParaView_MAJOR
|
echo "Using paraview"
|
||||||
|
echo " ParaView_DIR : $ParaView_DIR"
|
||||||
paraviewArch=
|
echo " ParaView_LIB_DIR : $ParaView_LIB_DIR"
|
||||||
if [ -d $ParaView_DIR/lib64 ]
|
echo " ParaView_INCLUDE_DIR : $ParaView_INCLUDE_DIR"
|
||||||
then
|
echo " PV_PLUGIN_PATH : $PV_PLUGIN_PATH"
|
||||||
paraviewArch=64
|
|
||||||
fi
|
|
||||||
paraviewLibSubDir=
|
|
||||||
if $WM_PROJECT_DIR/bin/tools/foamVersionCompare $ParaView_VERSION lt 5.5.0
|
|
||||||
then
|
|
||||||
paraviewLibSubDir=/paraview-$ParaView_MAJOR
|
|
||||||
fi
|
|
||||||
export ParaView_LIB_DIR=$ParaView_DIR/lib$paraviewArch$paraviewLibSubDir
|
|
||||||
|
|
||||||
export PATH=$ParaView_DIR/bin:$PATH
|
|
||||||
export LD_LIBRARY_PATH=$ParaView_LIB_DIR:$LD_LIBRARY_PATH
|
|
||||||
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-$ParaView_MAJOR
|
|
||||||
|
|
||||||
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
|
||||||
then
|
|
||||||
echo "Using paraview"
|
|
||||||
echo " ParaView_DIR : $ParaView_DIR"
|
|
||||||
echo " ParaView_LIB_DIR : $ParaView_LIB_DIR"
|
|
||||||
echo " ParaView_INCLUDE_DIR : $ParaView_INCLUDE_DIR"
|
|
||||||
echo " PV_PLUGIN_PATH : $PV_PLUGIN_PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add in python libraries if required
|
|
||||||
paraviewPython=$ParaView_DIR/Utilities/VTKPythonWrapping
|
|
||||||
if [ -r $paraviewPython ]
|
|
||||||
then
|
|
||||||
if [ "$PYTHONPATH" ]
|
|
||||||
then
|
|
||||||
export PYTHONPATH=$PYTHONPATH:$paraviewPython:$ParaView_LIB_DIR
|
|
||||||
else
|
|
||||||
export PYTHONPATH=$paraviewPython:$ParaView_LIB_DIR
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Alias paraview to launch with mesa if necessary
|
|
||||||
if [ "$ParaView_GL" = mesa ]
|
|
||||||
then
|
|
||||||
alias paraview='LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ParaView_LIB_DIR/mesa paraview'
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
unset PV_PLUGIN_PATH
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset _foamParaviewEval
|
unset cleaned
|
||||||
unset cleaned cmake paraviewInstDir paraviewPython
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -32,12 +32,39 @@
|
|||||||
# A csh version is not needed, since the values here are only sourced
|
# A csh version is not needed, since the values here are only sourced
|
||||||
# during the wmake process
|
# during the wmake process
|
||||||
#
|
#
|
||||||
# If Scotch is to be entirely disabled, either rename this file or create
|
|
||||||
# an empty one with the same name at a user or site location.
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
export SCOTCH_VERSION=scotch_6.0.9
|
# Load functions
|
||||||
export SCOTCH_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/$SCOTCH_VERSION
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
|
# Find the path to the scotch installation
|
||||||
|
case "$SCOTCH_TYPE" in
|
||||||
|
none)
|
||||||
|
;;
|
||||||
|
system)
|
||||||
|
export SCOTCH_VERSION=system
|
||||||
|
export SCOTCH_ARCH_PATH=/usr
|
||||||
|
;;
|
||||||
|
OpenFOAM | ThirdParty)
|
||||||
|
# Look for the source directory
|
||||||
|
if [ -z "$SCOTCH_VERSION" ]
|
||||||
|
then
|
||||||
|
scotchSrcDir=$(_foamMostRecentDir "$WM_THIRD_PARTY_DIR"/scotch_*)
|
||||||
|
else
|
||||||
|
scotchSrcDir=$WM_THIRD_PARTY_DIR/scotch_$SCOTCH_VERSION
|
||||||
|
fi
|
||||||
|
# Set the version and the installation path
|
||||||
|
if [ -d "$scotchSrcDir" ]
|
||||||
|
then
|
||||||
|
export SCOTCH_VERSION=${scotchSrcDir##*scotch_}
|
||||||
|
export SCOTCH_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/scotch_$SCOTCH_VERSION
|
||||||
|
fi
|
||||||
|
# Clean up
|
||||||
|
unset scotchSrcDir
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Unload functions
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -33,20 +33,21 @@
|
|||||||
# Set environment variables according to system type
|
# Set environment variables according to system type
|
||||||
export WM_ARCH=`uname -s`
|
export WM_ARCH=`uname -s`
|
||||||
|
|
||||||
|
# Define compilation flags for the system type
|
||||||
case "$WM_ARCH" in
|
case "$WM_ARCH" in
|
||||||
Linux)
|
Linux)
|
||||||
WM_ARCH=linux
|
WM_ARCH=linux
|
||||||
|
|
||||||
# Compiler specifics
|
# Compiler specifics
|
||||||
case `uname -m` in
|
case `uname -m` in
|
||||||
i686)
|
i686)
|
||||||
export WM_ARCH_OPTION=32
|
export WM_ARCH_OPTION=32
|
||||||
export WM_CC='gcc'
|
export WM_CC='gcc'
|
||||||
export WM_CXX='g++'
|
export WM_CXX='g++'
|
||||||
export WM_CFLAGS='-fPIC'
|
export WM_CFLAGS='-fPIC'
|
||||||
export WM_CXXFLAGS='-fPIC -std=c++0x'
|
export WM_CXXFLAGS='-fPIC -std=c++0x'
|
||||||
export WM_LDFLAGS=
|
export WM_LDFLAGS=
|
||||||
;;
|
;;
|
||||||
|
|
||||||
x86_64)
|
x86_64)
|
||||||
case "$WM_ARCH_OPTION" in
|
case "$WM_ARCH_OPTION" in
|
||||||
@ -58,6 +59,7 @@ Linux)
|
|||||||
export WM_CXXFLAGS='-m32 -fPIC -std=c++0x'
|
export WM_CXXFLAGS='-m32 -fPIC -std=c++0x'
|
||||||
export WM_LDFLAGS='-m32'
|
export WM_LDFLAGS='-m32'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
64)
|
64)
|
||||||
WM_ARCH=linux64
|
WM_ARCH=linux64
|
||||||
export WM_COMPILER_LIB_ARCH=64
|
export WM_COMPILER_LIB_ARCH=64
|
||||||
@ -67,10 +69,11 @@ Linux)
|
|||||||
export WM_CXXFLAGS='-m64 -fPIC -std=c++0x'
|
export WM_CXXFLAGS='-m64 -fPIC -std=c++0x'
|
||||||
export WM_LDFLAGS='-m64'
|
export WM_LDFLAGS='-m64'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Unknown WM_ARCH_OPTION '$WM_ARCH_OPTION', should be 32 or 64"\
|
echo "Unknown WM_ARCH_OPTION '$WM_ARCH_OPTION', should be 32 or 64" 1>&2
|
||||||
1>&2
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -132,7 +135,7 @@ SunOS)
|
|||||||
export WM_LDFLAGS='-mabi=64 -G0'
|
export WM_LDFLAGS='-mabi=64 -G0'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*) # An unsupported operating system
|
*) # An unsupported operating system
|
||||||
/bin/cat <<USAGE 1>&2
|
/bin/cat <<USAGE 1>&2
|
||||||
|
|
||||||
Your "$WM_ARCH" operating system is not supported by this release
|
Your "$WM_ARCH" operating system is not supported by this release
|
||||||
@ -220,8 +223,10 @@ unset MPFR_ARCH_PATH GMP_ARCH_PATH
|
|||||||
if [ -z "$WM_COMPILER_TYPE" ]
|
if [ -z "$WM_COMPILER_TYPE" ]
|
||||||
then
|
then
|
||||||
WM_COMPILER_TYPE=system
|
WM_COMPILER_TYPE=system
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/config.sh/settings:" 1>&2
|
/bin/cat <<USAGE 1>&2
|
||||||
echo " WM_COMPILER_TYPE not set, using '$WM_COMPILER_TYPE'" 1>&2
|
Warning in $WM_PROJECT_DIR/etc/config.sh/settings:
|
||||||
|
WM_COMPILER_TYPE not set, using '$WM_COMPILER_TYPE'
|
||||||
|
USAGE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load configured compiler versions, regardless of the compiler type
|
# Load configured compiler versions, regardless of the compiler type
|
||||||
@ -236,18 +241,23 @@ OpenFOAM | ThirdParty)
|
|||||||
gccDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$gcc_version
|
gccDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$gcc_version
|
||||||
gmpDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$gmp_version
|
gmpDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$gmp_version
|
||||||
mpfrDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$mpfr_version
|
mpfrDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$mpfr_version
|
||||||
mpcDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$mpc_version
|
if [ -n "$mpc_version" ]
|
||||||
|
then
|
||||||
|
mpcDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$mpc_version
|
||||||
|
fi
|
||||||
|
|
||||||
# Check that the compiler directory can be found
|
# Check that the compiler directory can be found
|
||||||
[ -d "$gccDir" ] || {
|
if [ ! -d "$gccDir" ]
|
||||||
echo 1>&2
|
then
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/config.sh/settings:" 1>&2
|
/bin/cat <<USAGE 1>&2
|
||||||
echo " Cannot find $gccDir installation." 1>&2
|
|
||||||
echo " Please install this compiler version or if you wish to" \
|
Warning in $WM_PROJECT_DIR/etc/config.sh/settings:
|
||||||
" use the system compiler," 1>&2
|
Cannot find $gccDir installation.
|
||||||
echo " change the 'WM_COMPILER_TYPE' setting to 'system'" 1>&2
|
Please install this compiler version or if you wish to use the system compiler,
|
||||||
echo
|
change the 'WM_COMPILER_TYPE' setting to 'system'
|
||||||
}
|
|
||||||
|
USAGE
|
||||||
|
fi
|
||||||
|
|
||||||
_foamAddMan $gccDir/man
|
_foamAddMan $gccDir/man
|
||||||
_foamAddPath $gccDir/bin
|
_foamAddPath $gccDir/bin
|
||||||
@ -266,35 +276,45 @@ OpenFOAM | ThirdParty)
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unset gcc_version gccDir
|
unset gcc_version gccDir
|
||||||
unset gmp_version gmpDir mpfr_version mpfrDir mpc_version mpcDir
|
unset gmp_version gmpDir mpfr_version mpfrDir mpc_version mpcDir
|
||||||
|
|
||||||
if [ -n "$clang_version" ]
|
if [ -n "$clang_version" ]
|
||||||
then
|
then
|
||||||
clangDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$clang_version
|
clangDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$clang_version
|
||||||
|
|
||||||
# Check that the compiler directory can be found
|
# Check that the compiler directory can be found
|
||||||
[ -d "$clangDir" ] || {
|
if [ ! -d "$clangDir" ]
|
||||||
echo 1>&2
|
then
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/config.sh/settings:" 1>&2
|
/bin/cat <<USAGE 1>&2
|
||||||
echo " Cannot find $clangDir installation." 1>&2
|
|
||||||
echo " Please install this compiler version or if you wish to" \
|
Warning in $WM_PROJECT_DIR/etc/config.sh/settings:
|
||||||
" use the system compiler," 1>&2
|
Cannot find $clangDir installation.
|
||||||
echo " change the 'WM_COMPILER_TYPE' setting to 'system'" 1>&2
|
Please install this compiler version or if you wish to use the system compiler,
|
||||||
echo 1>&2
|
change the 'WM_COMPILER_TYPE' setting to 'system'
|
||||||
}
|
|
||||||
|
USAGE
|
||||||
|
fi
|
||||||
|
|
||||||
_foamAddMan $clangDir/share/man
|
_foamAddMan $clangDir/share/man
|
||||||
_foamAddPath $clangDir/bin
|
_foamAddPath $clangDir/bin
|
||||||
fi
|
fi
|
||||||
unset clang_version clangDir
|
unset clang_version clangDir
|
||||||
;;
|
;;
|
||||||
|
|
||||||
system)
|
system)
|
||||||
# Use system compiler
|
# Use system compiler
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Warn: WM_COMPILER_TYPE='$WM_COMPILER_TYPE' is unsupported" 1>&2
|
/bin/cat <<USAGE 1>&2
|
||||||
echo " treating as 'system' instead" 1>&2
|
Warn: WM_COMPILER_TYPE='$WM_COMPILER_TYPE' is unsupported
|
||||||
|
treating as 'system' instead
|
||||||
|
USAGE
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Cleanup environment:
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
|
unset WM_COMPILER_TYPE
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -69,6 +69,7 @@ unset WM_PROJECT_SITE
|
|||||||
unset WM_PROJECT_USER_DIR
|
unset WM_PROJECT_USER_DIR
|
||||||
unset WM_PROJECT_VERSION
|
unset WM_PROJECT_VERSION
|
||||||
unset WM_SCHEDULER
|
unset WM_SCHEDULER
|
||||||
|
unset WM_THIRD_PARTY
|
||||||
unset WM_THIRD_PARTY_DIR
|
unset WM_THIRD_PARTY_DIR
|
||||||
|
|
||||||
|
|
||||||
@ -97,6 +98,9 @@ unset FOAM_TUTORIALS
|
|||||||
unset FOAM_USER_APPBIN
|
unset FOAM_USER_APPBIN
|
||||||
unset FOAM_USER_LIBBIN
|
unset FOAM_USER_LIBBIN
|
||||||
unset FOAM_UTILITIES
|
unset FOAM_UTILITIES
|
||||||
|
unset FOAM_SETNAN
|
||||||
|
unset FOAM_VERBOSE
|
||||||
|
unset FOAM_ABORT
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -113,16 +117,23 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Unset Ensight/ParaView-related environment variables
|
# Unset Ensight/Decomposition/ParaView-related environment variables
|
||||||
|
|
||||||
unset ENSIGHT9_READER
|
unset ENSIGHT9_READER
|
||||||
unset CMAKE_HOME
|
unset SCOTCH_TYPE
|
||||||
|
unset SCOTCH_VERSION
|
||||||
|
unset METIS_TYPE
|
||||||
|
unset METIS_VERSION
|
||||||
|
unset PARMETIS_TYPE
|
||||||
|
unset PARMETIS_VERSION
|
||||||
|
unset ZOLTAN_TYPE
|
||||||
|
unset ZOLTAN_VERSION
|
||||||
|
unset ParaView_TYPE
|
||||||
unset ParaView_DIR
|
unset ParaView_DIR
|
||||||
unset ParaView_INCLUDE_DIR
|
unset ParaView_INCLUDE_DIR
|
||||||
unset ParaView_LIB_DIR
|
unset ParaView_LIB_DIR
|
||||||
unset ParaView_MAJOR
|
unset ParaView_MAJOR
|
||||||
unset ParaView_VERSION
|
unset ParaView_VERSION
|
||||||
unset ParaView_GL
|
|
||||||
unset PV_PLUGIN_PATH
|
unset PV_PLUGIN_PATH
|
||||||
|
|
||||||
|
|
||||||
@ -155,6 +166,7 @@ unalias wm32
|
|||||||
unalias wmSP
|
unalias wmSP
|
||||||
unalias wmDP
|
unalias wmDP
|
||||||
|
|
||||||
|
unset wmRefresh
|
||||||
unalias wmUnset
|
unalias wmUnset
|
||||||
|
|
||||||
unalias wmSchedOn
|
unalias wmSchedOn
|
||||||
@ -171,7 +183,6 @@ unalias util
|
|||||||
unalias tut
|
unalias tut
|
||||||
unalias run
|
unalias run
|
||||||
|
|
||||||
unset wmRefresh
|
|
||||||
unset foamVersion
|
unset foamVersion
|
||||||
unset foamPV
|
unset foamPV
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2021 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2021-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -34,7 +34,38 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
export ZOLTAN_VERSION=Zoltan-3.90
|
# Load functions
|
||||||
export ZOLTAN_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/$ZOLTAN_VERSION
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
|
# Find the path to the zoltan installation
|
||||||
|
case "$ZOLTAN_TYPE" in
|
||||||
|
none)
|
||||||
|
;;
|
||||||
|
system)
|
||||||
|
export ZOLTAN_VERSION=system
|
||||||
|
export ZOLTAN_ARCH_PATH=/usr
|
||||||
|
;;
|
||||||
|
OpenFOAM | ThirdParty)
|
||||||
|
# Look for the source directory
|
||||||
|
if [ -z "$ZOLTAN_VERSION" ]
|
||||||
|
then
|
||||||
|
zoltanSrcDir=$(_foamMostRecentDir "$WM_THIRD_PARTY_DIR"/Zoltan-*)
|
||||||
|
else
|
||||||
|
zoltanSrcDir=$WM_THIRD_PARTY_DIR/Zoltan-$ZOLTAN_VERSION
|
||||||
|
fi
|
||||||
|
# Set the version and the installation path
|
||||||
|
if [ -d "$zoltanSrcDir" ]
|
||||||
|
then
|
||||||
|
export ZOLTAN_VERSION=${zoltanSrcDir##*Zoltan-}
|
||||||
|
export ZOLTAN_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION/Zoltan-$ZOLTAN_VERSION
|
||||||
|
fi
|
||||||
|
# Clean up
|
||||||
|
unset zoltanSrcDir
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Unload functions
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
97
etc/cshrc
97
etc/cshrc
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -31,19 +31,26 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
setenv WM_PROJECT OpenFOAM
|
setenv WM_PROJECT OpenFOAM
|
||||||
|
setenv WM_THIRD_PARTY ThirdParty
|
||||||
setenv WM_PROJECT_VERSION dev
|
setenv WM_PROJECT_VERSION dev
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||||
#
|
#
|
||||||
# FOAM_INST_DIR is the location of the OpenFOAM installation which defaults to
|
# FOAM_INST_DIR is the location of the OpenFOAM installation which defaults to
|
||||||
# the directory containing this file.
|
# the directory two levels below this file, or $HOME/$WM_PROJECT if that
|
||||||
|
# directory cannot be determined.
|
||||||
#
|
#
|
||||||
# Please set to the appropriate path if the default is not correct.
|
set foamInstDir=`lsof +p $$ |& sed -n 's%.* \(/.*\)/[^/]\+/etc/cshrc$%\1%p'`
|
||||||
|
if ( -d "$foamInstDir" ) then
|
||||||
|
setenv FOAM_INST_DIR $foamInstDir
|
||||||
|
else
|
||||||
|
setenv FOAM_INST_DIR $HOME/$WM_PROJECT
|
||||||
|
endif
|
||||||
|
unset foamInstDir
|
||||||
|
#
|
||||||
|
# Please set to the appropriate path if the above default is not correct. E.g.,
|
||||||
#
|
#
|
||||||
setenv FOAM_INST_DIR `lsof +p $$ |& grep -oE '/.*'$WM_PROJECT'[^/]*/etc/cshrc' | \
|
|
||||||
sed 's%/'$WM_PROJECT'[^/]*/etc/cshrc%%'`
|
|
||||||
# setenv FOAM_INST_DIR $HOME/$WM_PROJECT
|
|
||||||
# setenv FOAM_INST_DIR ~$WM_PROJECT
|
# setenv FOAM_INST_DIR ~$WM_PROJECT
|
||||||
# setenv FOAM_INST_DIR /opt/$WM_PROJECT
|
# setenv FOAM_INST_DIR /opt/$WM_PROJECT
|
||||||
# setenv FOAM_INST_DIR /usr/local/$WM_PROJECT
|
# setenv FOAM_INST_DIR /usr/local/$WM_PROJECT
|
||||||
@ -51,7 +58,7 @@ setenv FOAM_INST_DIR `lsof +p $$ |& grep -oE '/.*'$WM_PROJECT'[^/]*/etc/cshrc' |
|
|||||||
# END OF (NORMAL) USER EDITABLE PART
|
# END OF (NORMAL) USER EDITABLE PART
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# The default environment variables below can be overridden in a prefs.sh file
|
# The default environment variables below can be overridden in a prefs.csh file
|
||||||
# located in ~/.OpenFOAM/$WM_PROJECT_VERSION, ~/.OpenFOAM,
|
# located in ~/.OpenFOAM/$WM_PROJECT_VERSION, ~/.OpenFOAM,
|
||||||
# $FOAM_INST_DIR/site/$WM_PROJECT_VERSION or $FOAM_INST_DIR/site
|
# $FOAM_INST_DIR/site/$WM_PROJECT_VERSION or $FOAM_INST_DIR/site
|
||||||
|
|
||||||
@ -91,11 +98,22 @@ setenv WM_MPLIB SYSTEMOPENMPI
|
|||||||
# WM_OSTYPE = POSIX | ???
|
# WM_OSTYPE = POSIX | ???
|
||||||
setenv WM_OSTYPE POSIX
|
setenv WM_OSTYPE POSIX
|
||||||
|
|
||||||
|
#- Decomposition libraries:
|
||||||
|
# <library>_TYPE = none | system | ThirdParty (OpenFOAM)
|
||||||
|
setenv SCOTCH_TYPE ThirdParty
|
||||||
|
setenv METIS_TYPE none
|
||||||
|
setenv PARMETIS_TYPE none
|
||||||
|
setenv ZOLTAN_TYPE none
|
||||||
|
|
||||||
|
#- ParaView installation:
|
||||||
|
# ParaView_TYPE = none | system | paraviewopenfoam | ThirdParty (OpenFOAM)
|
||||||
|
setenv ParaView_TYPE ThirdParty
|
||||||
|
|
||||||
#- Floating-point signal handling:
|
#- Floating-point signal handling:
|
||||||
# set or unset
|
# set or unset
|
||||||
setenv FOAM_SIGFPE
|
setenv FOAM_SIGFPE
|
||||||
|
|
||||||
#- memory initialisation:
|
#- Memory initialisation:
|
||||||
# set or unset
|
# set or unset
|
||||||
#setenv FOAM_SETNAN
|
#setenv FOAM_SETNAN
|
||||||
|
|
||||||
@ -125,9 +143,25 @@ endif
|
|||||||
setenv WM_PROJECT_INST_DIR $FOAM_INST_DIR
|
setenv WM_PROJECT_INST_DIR $FOAM_INST_DIR
|
||||||
setenv WM_PROJECT_DIR $WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION
|
setenv WM_PROJECT_DIR $WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION
|
||||||
|
|
||||||
|
# Source initialisation functions
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
source $WM_PROJECT_DIR/etc/config.csh/functions
|
||||||
|
|
||||||
|
# Add in preset user or site preferences:
|
||||||
|
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.csh`
|
||||||
|
|
||||||
|
# Evaluate command-line parameters of the form "param=keyword" or unset
|
||||||
|
# parameters with "param="
|
||||||
|
setenv FOAM_SETTINGS "${*}"
|
||||||
|
_foamParams ${*}
|
||||||
|
|
||||||
# Location of third-party software
|
# Location of third-party software
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION
|
if ( `echo $WM_PROJECT_DIR | sed 's/.*\///g'` == `echo $WM_THIRD_PARTY | sed 's/\/.*//g'` ) then
|
||||||
|
setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/$WM_THIRD_PARTY
|
||||||
|
else
|
||||||
|
setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/$WM_THIRD_PARTY-$WM_PROJECT_VERSION
|
||||||
|
endif
|
||||||
|
|
||||||
# Location of site-specific templates etc
|
# Location of site-specific templates etc
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -143,43 +177,7 @@ endif
|
|||||||
# ~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
setenv WM_PROJECT_USER_DIR $HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION
|
setenv WM_PROJECT_USER_DIR $HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION
|
||||||
|
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
# Source files, possibly with some verbosity
|
|
||||||
alias _foamSource 'if ($?FOAM_VERBOSE && $?prompt) echo "Sourcing: \!*"; if (\!* != "") source \!*'
|
|
||||||
|
|
||||||
# Add in preset user or site preferences:
|
|
||||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.csh`
|
|
||||||
|
|
||||||
# Evaluate command-line parameters of the form "param=keyword" or unset
|
|
||||||
# parameters with "param="
|
|
||||||
setenv FOAM_SETTINGS "${*}"
|
|
||||||
while ( $#argv > 0 )
|
|
||||||
switch ($argv[1])
|
|
||||||
case -*:
|
|
||||||
# stray option (not meant for us here) -> get out
|
|
||||||
break
|
|
||||||
breaksw
|
|
||||||
case *=:
|
|
||||||
# name= -> unsetenv name
|
|
||||||
if ($?FOAM_VERBOSE && $?prompt) echo "unsetenv $argv[1]:s/=//"
|
|
||||||
eval "unsetenv $argv[1]:s/=//"
|
|
||||||
breaksw
|
|
||||||
case *=*:
|
|
||||||
# name=value -> setenv name value
|
|
||||||
if ($?FOAM_VERBOSE && $?prompt) echo "setenv $argv[1]:s/=/ /"
|
|
||||||
eval "setenv $argv[1]:s/=/ /"
|
|
||||||
breaksw
|
|
||||||
default:
|
|
||||||
# ignore non-parameter arguments, e.g. filenames
|
|
||||||
break
|
|
||||||
breaksw
|
|
||||||
endsw
|
|
||||||
shift
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
# Clean standard environment variables (PATH, LD_LIBRARY_PATH, MANPATH)
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
set foamClean=$WM_PROJECT_DIR/bin/foamCleanPath
|
set foamClean=$WM_PROJECT_DIR/bin/foamCleanPath
|
||||||
|
|
||||||
#- prevent local variables from shadowing setenv variables
|
#- prevent local variables from shadowing setenv variables
|
||||||
@ -234,9 +232,12 @@ if ( $?LD_PRELOAD ) then
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# cleanup environment:
|
# Cleanup environment:
|
||||||
# ~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
unset cleaned foamClean foamOldDirs
|
unset cleaned foamClean foamOldDirs
|
||||||
unalias _foamSource
|
|
||||||
|
# Unload initialisation functions:
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
source $WM_PROJECT_DIR/etc/config.csh/functions
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,20 +4,15 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
# Parse arguments for library compilation
|
# Parse arguments for library compilation
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
||||||
|
|
||||||
# get METIS_VERSION, METIS_ARCH_PATH
|
# Build if Metis is enabled
|
||||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/metis`
|
case $METIS_TYPE in
|
||||||
then
|
none)
|
||||||
. $settings
|
;;
|
||||||
|
*)
|
||||||
|
. $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/metis)
|
||||||
echo " using METIS_ARCH_PATH=$METIS_ARCH_PATH"
|
echo " using METIS_ARCH_PATH=$METIS_ARCH_PATH"
|
||||||
if [ -r "$METIS_ARCH_PATH/lib/libmetis.so" ]
|
wmake $targetType
|
||||||
then
|
;;
|
||||||
wmake $targetType
|
esac
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo
|
|
||||||
echo " Error: no config.sh/metis settings"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,23 +4,16 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
# Parse arguments for library compilation
|
# Parse arguments for library compilation
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
# Build if ParMetis is enabled
|
||||||
|
case $PARMETIS_TYPE in
|
||||||
# get PARMETIS_VERSION, PARMETIS_ARCH_PATH
|
none)
|
||||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/parMetis`
|
;;
|
||||||
then
|
*)
|
||||||
. $settings
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
||||||
|
. $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/parMetis)
|
||||||
echo " using PARMETIS_ARCH_PATH=$PARMETIS_ARCH_PATH"
|
echo " using PARMETIS_ARCH_PATH=$PARMETIS_ARCH_PATH"
|
||||||
if [ -r "$PARMETIS_ARCH_PATH/lib/libparmetis.so" ]
|
wmakeMpiLib parmetis-$PARMETIS_VERSION parMetis
|
||||||
then
|
;;
|
||||||
wmakeMpiLib $PARMETIS_VERSION parMetis
|
esac
|
||||||
else
|
|
||||||
echo " skipping parMetis"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo
|
|
||||||
echo " Error: no config.sh/parMetis settings"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,25 +4,21 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
# Parse arguments for library compilation
|
# Parse arguments for library compilation
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
# Build if Scotch is enabled and MPI is available
|
||||||
|
if [ -n "$WM_MPLIB" ] && [ -d "$FOAM_LIBBIN/$FOAM_MPI" ]
|
||||||
# Get SCOTCH_VERSION, SCOTCH_ARCH_PATH
|
|
||||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch`
|
|
||||||
then
|
then
|
||||||
. $settings
|
case $SCOTCH_TYPE in
|
||||||
echo " using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
|
none)
|
||||||
if [ -n "$SCOTCH_ARCH_PATH" ] \
|
;;
|
||||||
&& [ -n "$WM_MPLIB" ] \
|
*)
|
||||||
&& [ -d "$FOAM_LIBBIN/$FOAM_MPI" ]
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
||||||
then
|
. $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch)
|
||||||
wmakeMpiLib $SCOTCH_VERSION ptscotch
|
echo " using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
|
||||||
else
|
wmakeMpiLib scotch_$SCOTCH_VERSION ptscotch
|
||||||
echo " skipping ptscotch"
|
;;
|
||||||
fi
|
esac
|
||||||
else
|
else
|
||||||
echo
|
echo " skipping ptscotch"
|
||||||
echo " Error: no config.sh/scotch settings"
|
|
||||||
echo
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,19 +4,15 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
# Parse arguments for library compilation
|
# Parse arguments for library compilation
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
||||||
|
|
||||||
# Get SCOTCH_VERSION, SCOTCH_ARCH_PATH
|
# Build if Scotch is enabled
|
||||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch`
|
case $SCOTCH_TYPE in
|
||||||
then
|
none)
|
||||||
. $settings
|
;;
|
||||||
|
*)
|
||||||
|
. $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch)
|
||||||
echo " using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
|
echo " using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
|
||||||
if [ -n "$SCOTCH_ARCH_PATH" ]
|
wmake $targetType
|
||||||
then
|
;;
|
||||||
wmake $targetType
|
esac
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo
|
|
||||||
echo " Error: no config.sh/scotch settings"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,28 +4,16 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
# Parse arguments for library compilation
|
# Parse arguments for library compilation
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
# Build if Zoltan is enabled
|
||||||
|
case $ZOLTAN_TYPE in
|
||||||
# Get ZOLTAN_VERSION, ZOLTAN_ARCH_PATH
|
none)
|
||||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan`
|
;;
|
||||||
then
|
*)
|
||||||
. $settings
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
||||||
|
. $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan)
|
||||||
echo " using ZOLTAN_ARCH_PATH=$ZOLTAN_ARCH_PATH"
|
echo " using ZOLTAN_ARCH_PATH=$ZOLTAN_ARCH_PATH"
|
||||||
if [ -n "$ZOLTAN_ARCH_PATH" ] \
|
wmakeMpiLib Zoltan-$ZOLTAN_VERSION zoltan
|
||||||
&& [ -r "$ZOLTAN_ARCH_PATH/include/zoltan.h" ] \
|
;;
|
||||||
&& { \
|
esac
|
||||||
[ -r "$FOAM_EXT_LIBBIN/$FOAM_MPI/libzoltan.a" ] \
|
|
||||||
|| [ -r "$ZOLTAN_ARCH_PATH/lib/libzoltan.a" ]; \
|
|
||||||
}
|
|
||||||
then
|
|
||||||
wmakeMpiLib $ZOLTAN_VERSION zoltan
|
|
||||||
else
|
|
||||||
echo " skipping zoltan"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo
|
|
||||||
echo " Error: no config.sh/zoltan settings"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user