src/Pstream: Added Allwclean consistent with the Allwmake

Patch contributed by Bruno Santos
Resolves bug-report http://bugs.openfoam.org/view.php?id=2218
This commit is contained in:
Henry Weller
2016-08-25 08:25:12 +01:00
parent 22722a877c
commit 71a646e63c
3 changed files with 32 additions and 4 deletions

30
src/Pstream/Allwclean Executable file
View File

@ -0,0 +1,30 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Define how an mpi-versioned library is created
# clean the qualified directory
wcleanMpiLib()
{
set +x
for libName
do
(
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
wclean $libName
)
done
set -x
}
set -x
wclean dummy
case "$WM_MPLIB" in
*MPI*)
set +x
wcleanMpiLib mpi
;;
esac
#------------------------------------------------------------------------------

View File

@ -5,11 +5,9 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
# # Define how to create an mpi-versioned library of $targetType
# define how to create an mpi-versioned library of $targetType
# compile into qualified directory # compile into qualified directory
# use sentinel file to handle version changes # use sentinel file to handle version changes
#
wmakeMpiLib() wmakeMpiLib()
{ {
set +x set +x

View File

@ -100,7 +100,7 @@ include $(GENERAL_RULES)/general
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Include PROJECT directory tree file and # Include PROJECT directory tree file and
# source, object and dependency list files. # source, object and dependency list files.
# These are constructed by MakefileFiles # These are constructed by makefiles/files
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
include $(OBJECTS_DIR)/options include $(OBJECTS_DIR)/options