Allwmake: Remove 'set -x' which generates a lot of noise

'set -x' should be used for debugging.

Added command printing into wmake and Allwmake as a replacement for
'set -x' to log current target.
This commit is contained in:
Henry Weller
2016-11-13 18:08:22 +00:00
parent 1d6637a81b
commit 48e3fb7805
80 changed files with 42 additions and 162 deletions

View File

@ -17,10 +17,7 @@ wmakeCheckPwd "$WM_PROJECT_DIR/applications" || {
exit 1 exit 1
} }
set -x
wmake -all $targetType solvers wmake -all $targetType solvers
wmake -all $targetType utilities wmake -all $targetType utilities
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso BCs wclean libso BCs
wclean wclean

View File

@ -3,7 +3,6 @@ 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
set -x
(wmake $targetType BCs && wmake $targetType && wmake $targetType rhoCentralDyMFoam) (wmake $targetType BCs && wmake $targetType && wmake $targetType rhoCentralDyMFoam)

View File

@ -1,7 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 cd ${0%/*} || exit 1
set -x
wclean libso DPMTurbulenceModels wclean libso DPMTurbulenceModels
wclean wclean

View File

@ -3,7 +3,6 @@ cd ${0%/*} || exit 1
# Parse arguments for library compilation # Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
set -x
wmake $targetType DPMTurbulenceModels wmake $targetType DPMTurbulenceModels

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso twoPhaseMixtureThermo wclean libso twoPhaseMixtureThermo
wclean wclean

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType twoPhaseMixtureThermo wmake $targetType twoPhaseMixtureThermo

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso multiphaseMixtureThermo wclean libso multiphaseMixtureThermo
wclean wclean

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType multiphaseMixtureThermo wmake $targetType multiphaseMixtureThermo
wmake $targetType wmake $targetType

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso mixtureViscosityModels wclean libso mixtureViscosityModels
wclean libso relativeVelocityModels wclean libso relativeVelocityModels

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType mixtureViscosityModels wmake $targetType mixtureViscosityModels
wmake $targetType relativeVelocityModels wmake $targetType relativeVelocityModels

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso phaseChangeTwoPhaseMixtures wclean libso phaseChangeTwoPhaseMixtures
wclean wclean

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType phaseChangeTwoPhaseMixtures wmake $targetType phaseChangeTwoPhaseMixtures
wmake $targetType wmake $targetType

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso multiphaseSystem wclean libso multiphaseSystem
wclean libso interfacialModels wclean libso interfacialModels

View File

@ -3,7 +3,6 @@ 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
set -x
wmakeLnInclude interfacialModels wmakeLnInclude interfacialModels
wmake $targetType multiphaseSystem wmake $targetType multiphaseSystem

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso multiphaseMixture wclean libso multiphaseMixture
wclean wclean

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType multiphaseMixture wmake $targetType multiphaseMixture
wmake $targetType wmake $targetType

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso phaseSystems wclean libso phaseSystems
wclean libso interfacialModels wclean libso interfacialModels

View File

@ -3,7 +3,6 @@ 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
set -x
wmakeLnInclude interfacialModels wmakeLnInclude interfacialModels
wmakeLnInclude interfacialCompositionModels wmakeLnInclude interfacialCompositionModels

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso multiphaseSystem wclean libso multiphaseSystem
wclean libso multiphaseCompressibleTurbulenceModels wclean libso multiphaseCompressibleTurbulenceModels

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType multiphaseSystem wmake $targetType multiphaseSystem
wmake $targetType multiphaseCompressibleTurbulenceModels wmake $targetType multiphaseCompressibleTurbulenceModels

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso twoPhaseSystem wclean libso twoPhaseSystem
wclean libso twoPhaseCompressibleTurbulenceModels wclean libso twoPhaseCompressibleTurbulenceModels

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType twoPhaseSystem wmake $targetType twoPhaseSystem
wmake $targetType twoPhaseCompressibleTurbulenceModels wmake $targetType twoPhaseCompressibleTurbulenceModels

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso twoPhaseSystem wclean libso twoPhaseSystem
wclean libso interfacialModels wclean libso interfacialModels

View File

@ -3,7 +3,6 @@ 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
set -x
wmakeLnInclude interfacialModels wmakeLnInclude interfacialModels
wmake $targetType twoPhaseSystem wmake $targetType twoPhaseSystem

View File

@ -6,7 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
# Parse arguments for compilation (at least for error catching) # Parse arguments for compilation (at least for error catching)
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
set -x
# build libccmio and create lnInclude directory # build libccmio and create lnInclude directory
$WM_THIRD_PARTY_DIR/AllwmakeLibccmio $WM_THIRD_PARTY_DIR/AllwmakeLibccmio

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso extrude2DMesh wclean libso extrude2DMesh
wclean wclean

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType extrude2DMesh wmake $targetType extrude2DMesh
wmake $targetType wmake $targetType

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean conformalVoronoiMesh wclean conformalVoronoiMesh
wclean conformalVoronoi2DMesh wclean conformalVoronoi2DMesh

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType conformalVoronoiMesh wmake $targetType conformalVoronoiMesh
wmake $targetType conformalVoronoi2DMesh wmake $targetType conformalVoronoi2DMesh

View File

@ -3,7 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
# Parse arguments for compilation (at least for error catching) # Parse arguments for compilation (at least for error catching)
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
set -x
if [ -d "${FASTDUALOCTREE_SRC_PATH}" ] if [ -d "${FASTDUALOCTREE_SRC_PATH}" ]
then then

View File

@ -11,7 +11,7 @@ unset COMP_FLAGS LINK_FLAGS
# #
if [ -f /usr/include/readline/readline.h ] if [ -f /usr/include/readline/readline.h ]
then then
echo "Found <readline/readline.h> -- enabling readline support." echo " found <readline/readline.h> -- enabling readline support."
export COMP_FLAGS="-DHAS_READLINE" export COMP_FLAGS="-DHAS_READLINE"
export LINK_FLAGS="-lreadline" export LINK_FLAGS="-lreadline"
fi fi

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType helpTypes wmake $targetType helpTypes
wmake $targetType wmake $targetType

View File

@ -4,10 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory
# Parse arguments for application compilation (at least for error control) # Parse arguments for application compilation (at least for error control)
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
if [ ! -d ${WM_THIRD_PARTY_DIR}/tecio ] if [ -d ${WM_THIRD_PARTY_DIR}/tecio ]
then then
echo "Did not find tecio in ${WM_THIRD_PARTY_DIR}. Not building foamToTecplot360."
else
wmake $targetType wmake $targetType
fi fi

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType foamToVTK wmake $targetType foamToVTK
wmake $targetType wmake $targetType

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso vtkPV3Readers wclean libso vtkPV3Readers
PV3blockMeshReader/Allwclean PV3blockMeshReader/Allwclean

View File

@ -3,7 +3,6 @@ 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
#set -x
case "$ParaView_VERSION" in case "$ParaView_VERSION" in
3*) 3*)
@ -22,12 +21,9 @@ case "$ParaView_VERSION" in
PV3blockMeshReader/Allwmake $targetType $* PV3blockMeshReader/Allwmake $targetType $*
PV3FoamReader/Allwmake $targetType $* PV3FoamReader/Allwmake $targetType $*
else else
echo "ERROR: ParaView not found in $ParaView_DIR" echo " ERROR: ParaView not found in $ParaView_DIR"
fi fi
;; ;;
*)
echo "WARN: PV3 readers not building: ParaView_VERSION=$ParaView_VERSION"
;;
esac esac
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
# deal with client/server vs combined plugins # deal with client/server vs combined plugins
rm -f $FOAM_LIBBIN/libPV3FoamReader* 2>/dev/null rm -f $FOAM_LIBBIN/libPV3FoamReader* 2>/dev/null

View File

@ -3,7 +3,6 @@ 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
set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then then

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
# deal with client/server vs combined plugins # deal with client/server vs combined plugins
rm -f $FOAM_LIBBIN/libPV3blockMeshReader* 2>/dev/null rm -f $FOAM_LIBBIN/libPV3blockMeshReader* 2>/dev/null

View File

@ -3,7 +3,6 @@ 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
set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then then

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso vtkPVReaders wclean libso vtkPVReaders
PVblockMeshReader/Allwclean PVblockMeshReader/Allwclean

View File

@ -3,7 +3,6 @@ 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
#set -x
case "$ParaView_VERSION" in case "$ParaView_VERSION" in
4* | 5*) 4* | 5*)
@ -22,12 +21,9 @@ case "$ParaView_VERSION" in
PVblockMeshReader/Allwmake $targetType $* PVblockMeshReader/Allwmake $targetType $*
PVFoamReader/Allwmake $targetType $* PVFoamReader/Allwmake $targetType $*
else else
echo "ERROR: ParaView not found in $ParaView_DIR" echo " ERROR: ParaView not found in $ParaView_DIR"
fi fi
;; ;;
*)
echo "WARN: PV readers not building: ParaView_VERSION=$ParaView_VERSION"
;;
esac esac
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
# deal with client/server vs combined plugins # deal with client/server vs combined plugins
rm -f $FOAM_LIBBIN/libPVFoamReader* 2>/dev/null rm -f $FOAM_LIBBIN/libPVFoamReader* 2>/dev/null

View File

@ -3,7 +3,6 @@ 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
set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then then

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
# deal with client/server vs combined plugins # deal with client/server vs combined plugins
rm -f $FOAM_LIBBIN/libPVblockMeshReader* 2>/dev/null rm -f $FOAM_LIBBIN/libPVblockMeshReader* 2>/dev/null

View File

@ -3,7 +3,6 @@ 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
set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then then

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType tabulatedWallFunction wmake $targetType tabulatedWallFunction
wmake $targetType wmake $targetType

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
# fix permissions (NB: '+X' and not '+x'!) # fix permissions (NB: '+X' and not '+x'!)
chmod a+rX $WM_PROJECT_DIR $WM_PROJECT_DIR/doc Doxygen chmod a+rX $WM_PROJECT_DIR $WM_PROJECT_DIR/doc Doxygen

View File

@ -2,7 +2,7 @@
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
[ -d "$WM_PROJECT_DIR" ] || { [ -d "$WM_PROJECT_DIR" ] || {
echo "Error: WM_PROJECT_DIR directory does not exist" echo " Error: WM_PROJECT_DIR directory does not exist"
echo " Check the OpenFOAM entries in your dot-files and source them." echo " Check the OpenFOAM entries in your dot-files and source them."
echo " WM_PROJECT_DIR=$WM_PROJECT_DIR" echo " WM_PROJECT_DIR=$WM_PROJECT_DIR"
exit 1 exit 1
@ -62,8 +62,6 @@ done
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
set -x
rm -rf latex man rm -rf latex man
# remove html directory in background # remove html directory in background

View File

@ -1,17 +0,0 @@
#!/bin/sh
#------------------------------------------------------------------------------
# Script
# find-its
#
# Description
# Search for files with "it's"
# This contraction (== "it is") looks too much like "its" (possesive)
# and confuses non-native (and some native) English speakers.
#
#------------------------------------------------------------------------------
set -x
cd $WM_PROJECT_DIR || exit 1
git grep -e "it's"
#------------------------------------------------------------------------------

View File

@ -7,7 +7,6 @@
# Search for files with trailing whitesapce # Search for files with trailing whitesapce
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
set -x
cd $WM_PROJECT_DIR || exit 1 cd $WM_PROJECT_DIR || exit 1
tab=$'\t' tab=$'\t'

View File

@ -17,8 +17,6 @@ wmakeCheckPwd "$WM_PROJECT_DIR/src" || {
exit 1 exit 1
} }
set -x
# Update OpenFOAM version strings if required # Update OpenFOAM version strings if required
wmakePrintBuild -check || wrmo OpenFOAM/global/global.o 2>/dev/null wmakePrintBuild -check || wrmo OpenFOAM/global/global.o 2>/dev/null

View File

@ -12,7 +12,7 @@ unset COMP_FLAGS LINK_FLAGS
# #
if [ -f /usr/include/sys/inotify.h ] if [ -f /usr/include/sys/inotify.h ]
then then
echo "Found <sys/inotify.h> -- enabling inotify for file monitoring." echo " found <sys/inotify.h> -- enabling inotify for file monitoring."
export COMP_FLAGS="-DFOAM_USE_INOTIFY" export COMP_FLAGS="-DFOAM_USE_INOTIFY"
else else
unset COMP_FLAGS unset COMP_FLAGS

View File

@ -5,7 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
# clean the qualified directory # clean the qualified directory
wcleanMpiLib() wcleanMpiLib()
{ {
set +x
for libName for libName
do do
( (
@ -13,15 +12,12 @@ wcleanMpiLib()
wclean $libName wclean $libName
) )
done done
set -x
} }
set -x
wclean dummy wclean dummy
case "$WM_MPLIB" in case "$WM_MPLIB" in
*MPI*) *MPI*)
set +x
wcleanMpiLib mpi wcleanMpiLib mpi
;; ;;
esac esac

View File

@ -10,27 +10,22 @@ cd ${0%/*} || exit 1 # Run from this directory
# use sentinel file to handle version changes # use sentinel file to handle version changes
wmakeMpiLib() wmakeMpiLib()
{ {
set +x
for libName for libName
do do
( (
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB" WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/Pstream/$libName/using:$FOAM_MPI" whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/Pstream/$libName/using:$FOAM_MPI"
[ -e "$whichmpi" ] || wclean $libName [ -e "$whichmpi" ] || wclean $libName
echo "wmake $targetType $libName"
wmake $targetType $libName wmake $targetType $libName
touch "$whichmpi" touch "$whichmpi"
) )
done done
set -x
} }
set -x
wmake $targetType dummy wmake $targetType dummy
case "$WM_MPLIB" in case "$WM_MPLIB" in
*MPI*) *MPI*)
set +x
wmakeMpiLib mpi wmakeMpiLib mpi
;; ;;
esac esac

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType turbulenceModels wmake $targetType turbulenceModels
wmake $targetType incompressible wmake $targetType incompressible

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType wmake $targetType

View File

@ -3,12 +3,10 @@ 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
set -x
wmake $targetType scotchDecomp wmake $targetType scotchDecomp
wmake $targetType ptscotchDecomp wmake $targetType ptscotchDecomp
wmake $targetType metisDecomp wmake $targetType metisDecomp
wmake $targetType MGridGen wmake $targetType MGridGen
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType field wmake $targetType field
wmake $targetType forces wmake $targetType forces

View File

@ -3,7 +3,6 @@ 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
set -x
export ParMGridGen=$WM_THIRD_PARTY_DIR/ParMGridGen-1.0 export ParMGridGen=$WM_THIRD_PARTY_DIR/ParMGridGen-1.0
@ -14,5 +13,4 @@ fi
wmake $targetType pairPatchAgglomeration wmake $targetType pairPatchAgglomeration
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType distributionModels wmake $targetType distributionModels
wmake $targetType basic wmake $targetType basic

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType potential wmake $targetType potential
wmake $targetType molecularMeasurements wmake $targetType molecularMeasurements

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType snappyHexMesh wmake $targetType snappyHexMesh
wmake $targetType blockMesh wmake $targetType blockMesh

View File

@ -3,11 +3,9 @@ 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
set -x
decompose/Allwmake $targetType $* decompose/Allwmake $targetType $*
reconstruct/Allwmake $targetType $* reconstruct/Allwmake $targetType $*
wmake $targetType distributed wmake $targetType distributed
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -5,20 +5,17 @@ cd ${0%/*} || exit 1 # Run from this directory
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch` if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch`
then then
. $settings . $settings
echo "using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH" echo " using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
else else
echo echo
echo "Error: no config.sh/scotch settings" echo " Error: no config.sh/scotch settings"
echo echo
fi fi
# # Define how to clean an mpi-versioned library
# define how to clean an mpi-versioned library
#
wcleanMpiLib() wcleanMpiLib()
{ {
set +x
for libName for libName
do do
( (
@ -28,11 +25,8 @@ wcleanMpiLib()
wclean $libName wclean $libName
) )
done done
set -x
} }
set -x
if [ -n "$SCOTCH_ARCH_PATH" ] if [ -n "$SCOTCH_ARCH_PATH" ]
then then
wclean scotchDecomp wclean scotchDecomp
@ -42,16 +36,11 @@ then
wcleanMpiLib ptscotchDecomp wcleanMpiLib ptscotchDecomp
fi fi
else else
echo echo " skipping scotchDecomp (ptscotchDecomp)"
echo "Skipping scotchDecomp (ptscotchDecomp)"
echo
fi fi
wclean metisDecomp wclean metisDecomp
wclean decompositionMethods wclean decompositionMethods
wclean decompose wclean decompose
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -4,26 +4,24 @@ 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
# Get SCOTCH_VERSION, SCOTCH_ARCH_PATH
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch` if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch`
then then
. $settings . $settings
echo "using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH" echo " using SCOTCH_ARCH_PATH=$SCOTCH_ARCH_PATH"
else else
echo echo
echo "Error: no config.sh/scotch settings" echo " Error: no config.sh/scotch settings"
echo echo
fi fi
# # 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
for libName for libName
do do
( (
@ -36,11 +34,8 @@ wmakeMpiLib()
touch "$whichmpi" "$whichscotch" touch "$whichmpi" "$whichscotch"
) )
done done
set -x
} }
set -x
wmakeLnInclude decompositionMethods wmakeLnInclude decompositionMethods
if [ -n "$SCOTCH_ARCH_PATH" ] if [ -n "$SCOTCH_ARCH_PATH" ]
@ -52,18 +47,15 @@ then
wmakeMpiLib ptscotchDecomp wmakeMpiLib ptscotchDecomp
fi fi
else else
echo echo " skipping scotchDecomp (ptscotchDecomp)"
echo "Skipping scotchDecomp (ptscotchDecomp)"
echo
fi fi
# Try and build metisDecomp (has own logic) # Try and build metisDecomp (has own logic)
(cd metisDecomp && ./Allwmake $targetType) (cd metisDecomp && ./Allwmake $targetType)
wmake $targetType decompositionMethods wmake $targetType decompositionMethods
wmake $targetType decompose wmake $targetType decompose
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
wmakeLnInclude decompositionMethods wmakeLnInclude decompositionMethods
wmakeLnInclude metisDecomp wmakeLnInclude metisDecomp

View File

@ -8,14 +8,14 @@ cd ${0%/*} || exit 1 # Run from this directory
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/metis` 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
else else
echo echo
echo "Error: no config.sh/metis settings" echo " Error: no config.sh/metis settings"
echo echo
fi fi

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType reconstruct wmake $targetType reconstruct

View File

@ -1,7 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
makeType=${1:-libso} makeType=${1:-libso}
set -x
wclean $makeType regionModel wclean $makeType regionModel
wclean $makeType pyrolysisModels wclean $makeType pyrolysisModels
@ -9,5 +8,4 @@ wclean $makeType surfaceFilmModels
wclean $makeType thermalBaffleModels wclean $makeType thermalBaffleModels
wclean $makeType regionCoupling wclean $makeType regionCoupling
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType regionModel wmake $targetType regionModel
wmake $targetType pyrolysisModels wmake $targetType pyrolysisModels
@ -12,5 +11,4 @@ wmake $targetType surfaceFilmModels/derivedFvPatchFields/wallFunctions
wmake $targetType thermalBaffleModels wmake $targetType thermalBaffleModels
wmake $targetType regionCoupling wmake $targetType regionCoupling
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -4,8 +4,6 @@ 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
wmake $targetType renumberMethods
# Deprecate SloanRenumber due to dependency on BOOST causing build and # Deprecate SloanRenumber due to dependency on BOOST causing build and
# installation problems on a range of legacy systems. # installation problems on a range of legacy systems.
# wmake $targetType SloanRenumber # wmake $targetType SloanRenumber
@ -14,9 +12,9 @@ if [ -n "$ZOLTAN_ARCH_PATH" ]
then then
wmake $targetType zoltanRenumber wmake $targetType zoltanRenumber
else else
echo echo " skipping zoltanRenumber"
echo "Skipping zoltanRenumber"
echo
fi fi
wmake $targetType renumberMethods
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType specie wmake $targetType specie
wmake $targetType solidSpecie wmake $targetType solidSpecie

View File

@ -3,12 +3,10 @@ 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
set -x
wmake $targetType liquidProperties wmake $targetType liquidProperties
wmake $targetType liquidMixtureProperties wmake $targetType liquidMixtureProperties
wmake $targetType solidProperties wmake $targetType solidProperties
wmake $targetType solidMixtureProperties wmake $targetType solidMixtureProperties
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -3,7 +3,6 @@ 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
set -x
wmake $targetType twoPhaseMixture wmake $targetType twoPhaseMixture
wmake $targetType interfaceProperties wmake $targetType interfaceProperties

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
set -x
m4 < system/blockMeshDict.m4 > system/blockMeshDict m4 < system/blockMeshDict.m4 > system/blockMeshDict
blockMesh > log.blockMesh 2>&1 blockMesh > log.blockMesh 2>&1

View File

@ -90,6 +90,14 @@ do
done done
#------------------------------------------------------------------------------
# Print command
#------------------------------------------------------------------------------
[ -z "$targetType" ] || targetSpace=" "
echo "$Script $targetType$targetSpace$(echo $PWD | sed s%$WM_PROJECT_DIR/%% )"
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Execute wmake -all if not called from wmake # Execute wmake -all if not called from wmake
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -122,8 +122,9 @@ then
} }
fi fi
# Provide some feedback # Print command
echo "$Script $targetType ${dir:-.}" [ -z "$targetType" ] || targetSpace=" "
echo "$Script $targetType$targetSpace${dir:-.}"
fi fi
@ -164,7 +165,7 @@ then
if [ -d $objectsDir ] if [ -d $objectsDir ]
then then
echo "Removing redundant object directories in $objectsDir" echo " Removing redundant object directories in $objectsDir"
find $objectsDir -name 'variables' -print | \ find $objectsDir -name 'variables' -print | \
while read variablesFile while read variablesFile
@ -253,7 +254,7 @@ unset targetType
if [ -d $MakeDir ] if [ -d $MakeDir ]
then then
objectsDir=$MakeDir/$WM_OPTIONS objectsDir=$MakeDir/$WM_OPTIONS
if echo $PWD | grep "$WM_PROJECT_DIR" if [ $(echo $PWD | grep "$WM_PROJECT_DIR") ]
then then
platformPath=$WM_PROJECT_DIR/platforms/${WM_OPTIONS} platformPath=$WM_PROJECT_DIR/platforms/${WM_OPTIONS}
objectsDir=$platformPath$(echo $PWD | sed s%$WM_PROJECT_DIR%% ) objectsDir=$platformPath$(echo $PWD | sed s%$WM_PROJECT_DIR%% )

View File

@ -268,6 +268,10 @@ then
exit 1 exit 1
} }
fi fi
# Print command
[ -z "$targetType" ] || targetSpace=" "
echo "$Script $targetType$targetSpace${dir:-.}"
fi fi
@ -386,7 +390,7 @@ fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
objectsDir=$MakeDir/$WM_OPTIONS objectsDir=$MakeDir/$WM_OPTIONS
if echo $PWD | grep "$WM_PROJECT_DIR" if [ $(echo $PWD | grep "$WM_PROJECT_DIR") ]
then then
platformPath=$WM_PROJECT_DIR/platforms/${WM_OPTIONS} platformPath=$WM_PROJECT_DIR/platforms/${WM_OPTIONS}
objectsDir=$platformPath$(echo $PWD | sed s%$WM_PROJECT_DIR%% ) objectsDir=$platformPath$(echo $PWD | sed s%$WM_PROJECT_DIR%% )