mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: change makeOption to makeType internally
- also simplify setting makeType in the Allwmake scripts
This commit is contained in:
42
src/Allwmake
42
src/Allwmake
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
|
||||
wmakeCheckPwd "$WM_PROJECT_DIR/src" || {
|
||||
echo "Error: Current directory is not \$WM_PROJECT_DIR/src"
|
||||
@ -25,49 +25,49 @@ wmakeLnInclude OSspecific/${WM_OSTYPE:-POSIX}
|
||||
Pstream/Allwmake $*
|
||||
|
||||
OSspecific/${WM_OSTYPE:-POSIX}/Allwmake
|
||||
wmake $makeOption OpenFOAM
|
||||
wmake $makeType OpenFOAM
|
||||
|
||||
wmake $makeOption fileFormats
|
||||
wmake $makeOption triSurface
|
||||
wmake $makeOption meshTools
|
||||
wmake $makeOption edgeMesh
|
||||
wmake $makeOption surfMesh
|
||||
wmake $makeType fileFormats
|
||||
wmake $makeType triSurface
|
||||
wmake $makeType meshTools
|
||||
wmake $makeType edgeMesh
|
||||
wmake $makeType surfMesh
|
||||
|
||||
# Decomposition methods needed by dummyThirdParty
|
||||
parallel/decompose/AllwmakeLnInclude
|
||||
# dummyThirdParty (dummy metisDecomp, scotchDecomp etc) needed by e.g. meshTools
|
||||
dummyThirdParty/Allwmake $*
|
||||
|
||||
wmake $makeOption finiteVolume
|
||||
wmake $makeOption lagrangian/basic
|
||||
wmake $makeOption lagrangian/distributionModels
|
||||
wmake $makeOption genericPatchFields
|
||||
wmake $makeType finiteVolume
|
||||
wmake $makeType lagrangian/basic
|
||||
wmake $makeType lagrangian/distributionModels
|
||||
wmake $makeType genericPatchFields
|
||||
|
||||
# Build the proper scotchDecomp, metisDecomp etc.
|
||||
parallel/Allwmake $*
|
||||
|
||||
wmake $makeOption conversion
|
||||
wmake $makeType conversion
|
||||
|
||||
wmake $makeOption sampling
|
||||
wmake $makeType sampling
|
||||
|
||||
wmake $makeOption dynamicMesh
|
||||
wmake $makeOption dynamicFvMesh
|
||||
wmake $makeOption topoChangerFvMesh
|
||||
wmake $makeType dynamicMesh
|
||||
wmake $makeType dynamicFvMesh
|
||||
wmake $makeType topoChangerFvMesh
|
||||
|
||||
wmake $makeOption ODE
|
||||
wmake $makeOption randomProcesses
|
||||
wmake $makeType ODE
|
||||
wmake $makeType randomProcesses
|
||||
|
||||
thermophysicalModels/Allwmake $*
|
||||
transportModels/Allwmake $*
|
||||
turbulenceModels/Allwmake $*
|
||||
wmake $makeOption surfaceFilmModels
|
||||
wmake $makeType surfaceFilmModels
|
||||
lagrangian/Allwmake $*
|
||||
postProcessing/Allwmake $*
|
||||
mesh/Allwmake $*
|
||||
|
||||
fvAgglomerationMethods/Allwmake $*
|
||||
|
||||
wmake $makeOption fvMotionSolver
|
||||
wmake $makeOption engine
|
||||
wmake $makeType fvMotionSolver
|
||||
wmake $makeType engine
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption dummy
|
||||
wmake $makeType dummy
|
||||
|
||||
case "$WM_MPLIB" in
|
||||
*MPI*)
|
||||
@ -13,11 +13,11 @@ case "$WM_MPLIB" in
|
||||
echo
|
||||
set -x
|
||||
# force compilation into qualified directory
|
||||
WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB wmake $makeOption mpi
|
||||
WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB wmake $makeType mpi
|
||||
;;
|
||||
|
||||
#GAMMA)
|
||||
# wmake $makeOption gamma
|
||||
# wmake $makeType gamma
|
||||
# ;;
|
||||
esac
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption
|
||||
wmake $makeType
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
10
src/dummyThirdParty/Allwmake
vendored
10
src/dummyThirdParty/Allwmake
vendored
@ -1,12 +1,12 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption scotchDecomp
|
||||
wmake $makeOption ptscotchDecomp
|
||||
wmake $makeOption metisDecomp
|
||||
wmake $makeOption MGridGen
|
||||
wmake $makeType scotchDecomp
|
||||
wmake $makeType ptscotchDecomp
|
||||
wmake $makeType metisDecomp
|
||||
wmake $makeType MGridGen
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
export ParMGridGen=$WM_THIRD_PARTY_DIR/ParMGridGen-1.0
|
||||
|
||||
if [ -d "$ParMGridGen/MGridGen/Lib" ]
|
||||
then
|
||||
wmake $makeOption MGridGenGamgAgglomeration
|
||||
wmake $makeType MGridGenGamgAgglomeration
|
||||
fi
|
||||
|
||||
wmake libso pairPatchAgglomeration
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption distributionModels
|
||||
wmake $makeOption basic
|
||||
wmake $makeOption solidParticle
|
||||
wmake $makeOption intermediate
|
||||
wmake $makeOption dieselSpray
|
||||
wmake $makeOption dsmc
|
||||
wmake $makeOption coalCombustion
|
||||
wmake $makeType distributionModels
|
||||
wmake $makeType basic
|
||||
wmake $makeType solidParticle
|
||||
wmake $makeType intermediate
|
||||
wmake $makeType dieselSpray
|
||||
wmake $makeType dsmc
|
||||
wmake $makeType coalCombustion
|
||||
|
||||
molecularDynamics/Allwmake $*
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption potential
|
||||
wmake $makeOption molecularMeasurements
|
||||
wmake $makeOption molecule
|
||||
wmake $makeType potential
|
||||
wmake $makeType molecularMeasurements
|
||||
wmake $makeType molecule
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption autoMesh
|
||||
wmake $makeOption blockMesh
|
||||
wmake $makeType autoMesh
|
||||
wmake $makeType blockMesh
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
decompose/Allwmake $*
|
||||
reconstruct/Allwmake $*
|
||||
wmake $makeOption distributed
|
||||
wmake $makeType distributed
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
|
||||
# get SCOTCH_VERSION, SCOTCH_ARCH_PATH
|
||||
settings=`$WM_PROJECT_DIR/bin/foamEtcFile apps/scotch/bashrc`
|
||||
@ -17,17 +17,17 @@ set -x
|
||||
|
||||
wmakeLnInclude decompositionMethods
|
||||
|
||||
wmake $makeOption scotchDecomp
|
||||
wmake $makeType scotchDecomp
|
||||
|
||||
if [ -d "$FOAM_LIBBIN/$FOAM_MPI" ]
|
||||
then
|
||||
(
|
||||
WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB
|
||||
wmake $makeOption ptscotchDecomp
|
||||
wmake $makeType ptscotchDecomp
|
||||
)
|
||||
fi
|
||||
|
||||
wmake $makeOption decompositionMethods
|
||||
wmake $makeType decompositionMethods
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption reconstruct
|
||||
wmake $makeType reconstruct
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake libo postCalc
|
||||
wmake $makeOption foamCalcFunctions
|
||||
wmake $makeType foamCalcFunctions
|
||||
|
||||
functionObjects/Allwmake $*
|
||||
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption field
|
||||
wmake $makeOption forces
|
||||
wmake $makeOption IO
|
||||
wmake $makeOption utilities
|
||||
wmake $makeOption jobControl
|
||||
wmake $makeOption systemCall
|
||||
wmake $makeType field
|
||||
wmake $makeType forces
|
||||
wmake $makeType IO
|
||||
wmake $makeType utilities
|
||||
wmake $makeType jobControl
|
||||
wmake $makeType systemCall
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,24 +1,24 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption specie
|
||||
wmake $makeOption solid
|
||||
wmake $makeOption thermophysicalFunctions
|
||||
wmake $makeType specie
|
||||
wmake $makeType solid
|
||||
wmake $makeType thermophysicalFunctions
|
||||
./properties/Allwmake $*
|
||||
|
||||
wmake $makeOption basic
|
||||
wmake $makeOption reactionThermo
|
||||
wmake $makeOption laminarFlameSpeed
|
||||
wmake $makeOption chemistryModel
|
||||
wmake $makeOption barotropicCompressibilityModel
|
||||
wmake $makeOption thermalPorousZone
|
||||
wmake $makeOption SLGThermo
|
||||
wmake $makeType basic
|
||||
wmake $makeType reactionThermo
|
||||
wmake $makeType laminarFlameSpeed
|
||||
wmake $makeType chemistryModel
|
||||
wmake $makeType barotropicCompressibilityModel
|
||||
wmake $makeType thermalPorousZone
|
||||
wmake $makeType SLGThermo
|
||||
|
||||
# Should be combined with solids&solidMixture
|
||||
wmake $makeOption basicSolidThermo
|
||||
wmake $makeType basicSolidThermo
|
||||
|
||||
wmake $makeOption radiationModels
|
||||
wmake $makeType radiationModels
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption liquidProperties
|
||||
wmake $makeOption liquidMixtureProperties
|
||||
wmake $makeOption solidProperties
|
||||
wmake $makeOption solidMixtureProperties
|
||||
wmake $makeType liquidProperties
|
||||
wmake $makeType liquidMixtureProperties
|
||||
wmake $makeType solidProperties
|
||||
wmake $makeType solidMixtureProperties
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption incompressible
|
||||
wmake $makeOption interfaceProperties
|
||||
wmake $makeOption twoPhaseInterfaceProperties
|
||||
# wmake $makeOption compressible
|
||||
wmake $makeType incompressible
|
||||
wmake $makeType interfaceProperties
|
||||
wmake $makeType twoPhaseInterfaceProperties
|
||||
# wmake $makeType compressible
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmakeLnInclude ../incompressible/LES
|
||||
|
||||
wmake $makeOption LESfilters
|
||||
wmake $makeOption LESdeltas
|
||||
wmake $makeType LESfilters
|
||||
wmake $makeType LESdeltas
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption turbulenceModel
|
||||
wmake $makeOption RAS
|
||||
wmake $makeOption LES
|
||||
wmake $makeType turbulenceModel
|
||||
wmake $makeType RAS
|
||||
wmake $makeType LES
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
||||
makeType=${1:-libso}
|
||||
set -x
|
||||
|
||||
wmake $makeOption turbulenceModel
|
||||
wmake $makeOption RAS
|
||||
wmake $makeOption LES
|
||||
wmake $makeType turbulenceModel
|
||||
wmake $makeType RAS
|
||||
wmake $makeType LES
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
14
wmake/wclean
14
wmake/wclean
@ -3,7 +3,7 @@
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
||||
# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||
# \\/ M anipulation |
|
||||
#-------------------------------------------------------------------------------
|
||||
# License
|
||||
@ -63,10 +63,10 @@ fi
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# check arguments and change to the directory in which to run wmake
|
||||
# check arguments and change to the directory in which to run wclean
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
unset dir makeOption
|
||||
unset dir makeType
|
||||
MakeDir=Make
|
||||
|
||||
if [ $# -ge 1 ]
|
||||
@ -76,7 +76,7 @@ then
|
||||
then
|
||||
dir=$1
|
||||
else
|
||||
makeOption=$1
|
||||
makeType=$1
|
||||
fi
|
||||
|
||||
# specified directory name:
|
||||
@ -101,7 +101,7 @@ fi
|
||||
# Recurse the directories tree
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if [ "$makeOption" = all ]
|
||||
if [ "$makeType" = all ]
|
||||
then
|
||||
if [ -e Allwclean ] # consistent with Allwmake
|
||||
then
|
||||
@ -121,8 +121,8 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
# makeOption is not needed beyond this point
|
||||
unset makeOption
|
||||
# makeType is not needed beyond this point
|
||||
unset makeType
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
16
wmake/wmake
16
wmake/wmake
@ -122,7 +122,7 @@ fi
|
||||
# check arguments and change to the directory in which to run wmake
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
unset dir makeOption
|
||||
unset dir makeType
|
||||
MakeDir=Make
|
||||
|
||||
if [ $# -ge 1 ]
|
||||
@ -131,7 +131,7 @@ then
|
||||
then
|
||||
dir=$1
|
||||
else
|
||||
makeOption=$1
|
||||
makeType=$1
|
||||
fi
|
||||
|
||||
# specified directory name:
|
||||
@ -154,7 +154,7 @@ fi
|
||||
# Recurse the application directories tree
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if [ "$makeOption" = all ]
|
||||
if [ "$makeType" = all ]
|
||||
then
|
||||
if [ -e Allwmake ]
|
||||
then
|
||||
@ -187,12 +187,12 @@ fi
|
||||
|
||||
# transform "all" option to "libso" if that looks appropriate or remove it
|
||||
# so that the call to make builds the application
|
||||
if [ "$makeOption" = all ]
|
||||
if [ "$makeType" = all ]
|
||||
then
|
||||
unset makeOption
|
||||
unset makeType
|
||||
if grep -e '^ *LIB *=' "$MakeDir/files" >/dev/null 2>&1
|
||||
then
|
||||
makeOption=libso
|
||||
makeType=libso
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -226,7 +226,7 @@ OBJECTS_DIR=$MakeDir/$WM_OPTIONS
|
||||
|
||||
touch $OBJECTS_DIR/dontIncludeDeps
|
||||
|
||||
case "$makeOption" in
|
||||
case "$makeType" in
|
||||
lib | libo | libso )
|
||||
$make -s -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/dontIncludeDeps lnInclude/uptodate
|
||||
;;
|
||||
@ -241,7 +241,7 @@ rc=$?
|
||||
# make the object files and link
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cmd="$make -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/includeDeps $makeOption"
|
||||
cmd="$make -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/includeDeps $makeType"
|
||||
# echo "cmd=$cmd"
|
||||
exec $cmd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user