Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev

This commit is contained in:
Henry Weller
2024-05-26 14:28:20 +01:00
9 changed files with 29 additions and 44 deletions

View File

@ -9,7 +9,7 @@ if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/metis`
then then
. $settings . $settings
echo " using METIS_ARCH_PATH=$METIS_ARCH_PATH" 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 then
wmake $targetType wmake $targetType
fi fi

View File

@ -3,16 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib . $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
# Get PARMETIS_VERSION, PARMETIS_ARCH_PATH wcleanMpiLib
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
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -11,9 +11,11 @@ if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/parMetis`
then then
. $settings . $settings
echo " using PARMETIS_ARCH_PATH=$PARMETIS_ARCH_PATH" 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 then
wmakeMpiLib $PARMETIS_VERSION wmakeMpiLib $PARMETIS_VERSION parMetis
else
echo " skipping parMetis"
fi fi
else else
echo echo

View File

@ -3,16 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib . $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
# Get SCOTCH_VERSION, SCOTCH_ARCH_PATH wcleanMpiLib
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
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -15,7 +15,9 @@ then
&& [ -n "$WM_MPLIB" ] \ && [ -n "$WM_MPLIB" ] \
&& [ -d "$FOAM_LIBBIN/$FOAM_MPI" ] && [ -d "$FOAM_LIBBIN/$FOAM_MPI" ]
then then
wmakeMpiLib $SCOTCH_VERSION wmakeMpiLib $SCOTCH_VERSION ptscotch
else
echo " skipping ptscotch"
fi fi
else else
echo echo

View File

@ -3,6 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib . $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
wcleanMpiLib 3.90 wcleanMpiLib
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -6,11 +6,11 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib . $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
# Get ZOLTAN_VERSION, ZOLTAN_ARCH_PATH
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan` if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan`
then then
. $settings . $settings
echo " using ZOLTAN_ARCH_PATH=$ZOLTAN_ARCH_PATH" echo " using ZOLTAN_ARCH_PATH=$ZOLTAN_ARCH_PATH"
if [ -n "$ZOLTAN_ARCH_PATH" ] \ if [ -n "$ZOLTAN_ARCH_PATH" ] \
&& [ -r "$ZOLTAN_ARCH_PATH/include/zoltan.h" ] \ && [ -r "$ZOLTAN_ARCH_PATH/include/zoltan.h" ] \
&& { \ && { \
@ -18,7 +18,7 @@ then
|| [ -r "$ZOLTAN_ARCH_PATH/lib/libzoltan.a" ]; \ || [ -r "$ZOLTAN_ARCH_PATH/lib/libzoltan.a" ]; \
} }
then then
wmakeMpiLib $ZOLTAN_VERSION wmakeMpiLib $ZOLTAN_VERSION zoltan
else else
echo " skipping zoltan" echo " skipping zoltan"
fi fi

View File

@ -44,9 +44,9 @@ wmakeMpiLib()
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB" WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$FOAM_MPI" 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" whichtarget="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$version"
[ -e "$whichmpi" -a -e "$whichtarget" ] || wclean $libName [ -e "$whichmpi" -a -e "$whichtarget" ] || wclean -noLnInclude
echo "wmake $targetType $libName" echo "wmake $targetType"
wmake $targetType $libName wmake $targetType
touch "$whichmpi" "$whichtarget" touch "$whichmpi" "$whichtarget"
) )
} }
@ -56,13 +56,8 @@ wmakeMpiLib()
wcleanMpiLib() wcleanMpiLib()
{ {
( (
version="$1"
libName="$2"
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB" WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$FOAM_MPI" wclean
whichtarget="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$version"
wclean $libName
) )
} }

View File

@ -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-2019 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
@ -54,7 +54,8 @@ Usage: $Script [OPTION] [dir]
options: options:
-silent | -s Ignored - for compatibility with wmake -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 Clean up the wmake control directory Make/\$WM_OPTIONS and remove the
lnInclude directories generated for libraries. lnInclude directories generated for libraries.
@ -77,15 +78,20 @@ USAGE
# Parse arguments and options # Parse arguments and options
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
noLnInclude=
while [ "$#" -gt 0 ] while [ "$#" -gt 0 ]
do do
case "$1" in case "$1" in
-h | -help)
usage && exit 0
;;
-s | -silent) # Ignored - for compatibility with wmake -s | -silent) # Ignored - for compatibility with wmake
shift shift
;; ;;
-noLnInclude)
noLnInclude=true
shift
;;
-h | -help)
usage && exit 0
;;
-*) -*)
error "unknown option: '$*'" error "unknown option: '$*'"
;; ;;
@ -274,7 +280,7 @@ fi
# Remove the lnInclude directory if present # Remove the lnInclude directory if present
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
if [ -d lnInclude ] if [ "$noLnInclude" != true ] && [ -d lnInclude ]
then then
rm -rf lnInclude 2>/dev/null rm -rf lnInclude 2>/dev/null
fi fi