mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
30
src/Pstream/Allwclean
Executable file
30
src/Pstream/Allwclean
Executable 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
|
||||||
|
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user