Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -9,7 +9,7 @@ if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/metis`
|
||||
then
|
||||
. $settings
|
||||
echo " using METIS_ARCH_PATH=$METIS_ARCH_PATH"
|
||||
if [ -r $METIS_ARCH_PATH/lib/libmetis.so ]
|
||||
if [ -r "$METIS_ARCH_PATH/lib/libmetis.so" ]
|
||||
then
|
||||
wmake $targetType
|
||||
fi
|
||||
|
||||
@ -3,16 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
||||
|
||||
# Get PARMETIS_VERSION, PARMETIS_ARCH_PATH
|
||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/parMetis`
|
||||
then
|
||||
. $settings
|
||||
echo " using PARMETIS_ARCH_PATH=$PARMETIS_ARCH_PATH"
|
||||
wcleanMpiLib $PARMETIS_VERSION parMetisDecomp
|
||||
else
|
||||
echo
|
||||
echo " Error: no config.sh/parMetis settings"
|
||||
echo
|
||||
fi
|
||||
wcleanMpiLib
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -11,9 +11,11 @@ if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/parMetis`
|
||||
then
|
||||
. $settings
|
||||
echo " using PARMETIS_ARCH_PATH=$PARMETIS_ARCH_PATH"
|
||||
if [ -r $PARMETIS_ARCH_PATH/lib/libparmetis.so ]
|
||||
if [ -r "$PARMETIS_ARCH_PATH/lib/libparmetis.so" ]
|
||||
then
|
||||
wmakeMpiLib $PARMETIS_VERSION
|
||||
wmakeMpiLib $PARMETIS_VERSION parMetis
|
||||
else
|
||||
echo " skipping parMetis"
|
||||
fi
|
||||
else
|
||||
echo
|
||||
|
||||
@ -3,16 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
||||
|
||||
# Get SCOTCH_VERSION, SCOTCH_ARCH_PATH
|
||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch`
|
||||
then
|
||||
. $settings
|
||||
echo " using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
|
||||
wcleanMpiLib $SCOTCH_VERSION
|
||||
else
|
||||
echo
|
||||
echo " Error: no config.sh/scotch settings"
|
||||
echo
|
||||
fi
|
||||
wcleanMpiLib
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -15,7 +15,9 @@ then
|
||||
&& [ -n "$WM_MPLIB" ] \
|
||||
&& [ -d "$FOAM_LIBBIN/$FOAM_MPI" ]
|
||||
then
|
||||
wmakeMpiLib $SCOTCH_VERSION
|
||||
wmakeMpiLib $SCOTCH_VERSION ptscotch
|
||||
else
|
||||
echo " skipping ptscotch"
|
||||
fi
|
||||
else
|
||||
echo
|
||||
|
||||
@ -3,6 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
||||
|
||||
wcleanMpiLib 3.90
|
||||
wcleanMpiLib
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,11 +6,11 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
|
||||
|
||||
# Get ZOLTAN_VERSION, ZOLTAN_ARCH_PATH
|
||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan`
|
||||
then
|
||||
. $settings
|
||||
echo " using ZOLTAN_ARCH_PATH=$ZOLTAN_ARCH_PATH"
|
||||
|
||||
if [ -n "$ZOLTAN_ARCH_PATH" ] \
|
||||
&& [ -r "$ZOLTAN_ARCH_PATH/include/zoltan.h" ] \
|
||||
&& { \
|
||||
@ -18,7 +18,7 @@ then
|
||||
|| [ -r "$ZOLTAN_ARCH_PATH/lib/libzoltan.a" ]; \
|
||||
}
|
||||
then
|
||||
wmakeMpiLib $ZOLTAN_VERSION
|
||||
wmakeMpiLib $ZOLTAN_VERSION zoltan
|
||||
else
|
||||
echo " skipping zoltan"
|
||||
fi
|
||||
|
||||
@ -44,9 +44,9 @@ wmakeMpiLib()
|
||||
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
|
||||
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$FOAM_MPI"
|
||||
whichtarget="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$version"
|
||||
[ -e "$whichmpi" -a -e "$whichtarget" ] || wclean $libName
|
||||
echo "wmake $targetType $libName"
|
||||
wmake $targetType $libName
|
||||
[ -e "$whichmpi" -a -e "$whichtarget" ] || wclean -noLnInclude
|
||||
echo "wmake $targetType"
|
||||
wmake $targetType
|
||||
touch "$whichmpi" "$whichtarget"
|
||||
)
|
||||
}
|
||||
@ -56,13 +56,8 @@ wmakeMpiLib()
|
||||
wcleanMpiLib()
|
||||
{
|
||||
(
|
||||
version="$1"
|
||||
libName="$2"
|
||||
|
||||
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
|
||||
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$FOAM_MPI"
|
||||
whichtarget="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$version"
|
||||
wclean $libName
|
||||
wclean
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
18
wmake/wclean
18
wmake/wclean
@ -3,7 +3,7 @@
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration | Website: https://openfoam.org
|
||||
# \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
@ -54,7 +54,8 @@ Usage: $Script [OPTION] [dir]
|
||||
|
||||
options:
|
||||
-silent | -s Ignored - for compatibility with wmake
|
||||
-help Print the usage
|
||||
-noLnInclude Don't remove lnInclude directories
|
||||
-help | -h Print the usage
|
||||
|
||||
Clean up the wmake control directory Make/\$WM_OPTIONS and remove the
|
||||
lnInclude directories generated for libraries.
|
||||
@ -77,15 +78,20 @@ USAGE
|
||||
# Parse arguments and options
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
noLnInclude=
|
||||
while [ "$#" -gt 0 ]
|
||||
do
|
||||
case "$1" in
|
||||
-h | -help)
|
||||
usage && exit 0
|
||||
;;
|
||||
-s | -silent) # Ignored - for compatibility with wmake
|
||||
shift
|
||||
;;
|
||||
-noLnInclude)
|
||||
noLnInclude=true
|
||||
shift
|
||||
;;
|
||||
-h | -help)
|
||||
usage && exit 0
|
||||
;;
|
||||
-*)
|
||||
error "unknown option: '$*'"
|
||||
;;
|
||||
@ -274,7 +280,7 @@ fi
|
||||
# Remove the lnInclude directory if present
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if [ -d lnInclude ]
|
||||
if [ "$noLnInclude" != true ] && [ -d lnInclude ]
|
||||
then
|
||||
rm -rf lnInclude 2>/dev/null
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user