Skip to content
Snippets Groups Projects
Commit e8646efb authored by Ondrej Vysocky's avatar Ondrej Vysocky
Browse files

compilation cleaning script

parent a9dec962
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
echo "SRY, NOT WORKING YET"
#exit 0
cd ${0%/*} || exit 1 # Run from this directory
# Parse arguments for library compilation
#. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
#
#wmakeCheckPwd "$WM_PROJECT_DIR/src" || {
# echo "Allwmake error: Current directory is not \$WM_PROJECT_DIR/src"
# echo " The environment variables are inconsistent with the installation."
# echo " Check the OpenFOAM entries in your dot-files and source them."
# exit 1
#}
#
#[ -n "$FOAM_EXT_LIBBIN" ] || {
# echo "Allwmake error: FOAM_EXT_LIBBIN not set"
# echo " Check the OpenFOAM entries in your dot-files and source them."
# exit 1
#}
#
## Update OpenFOAM version strings if required
#wmakePrintBuild -check || wrmo OpenFOAM/global/global.o 2>/dev/null
#wmakeLnInclude -u OpenFOAM
#wmakeLnInclude -u OSspecific/${WM_OSTYPE:-POSIX}
#Pstream/Allwmake $targetType $*
#OSspecific/${WM_OSTYPE:-POSIX}/Allwmake $targetType $*
wclean $targetType OpenFOAM
wclean $targetType fileFormats
wclean $targetType surfMesh
wclean $targetType triSurface
wclean $targetType meshTools
wclean $targetType edgeMesh
# Decomposition methods needed by dummyThirdParty
# (dummy metisDecomp, scotchDecomp etc) needed by e.g. meshTools
#parallel/decompose/AllwmakeLnInclude
#dummyThirdParty/Allwmake $targetType $*
#wmakeLnInclude -u fvOptions
wclean $targetType finiteVolume
wclean $targetType lagrangian/basic
wclean $targetType lagrangian/distributionModels
wclean $targetType genericPatchFields
#conversion/Allwmake $targetType $*
wclean conversion
#Allwmake ccm
wclean conversion/ccm/libso
wclean conversion/ccm
wclean $targetType mesh/extrudeModel
wclean $targetType dynamicMesh
wclean $targetType sampling
wclean $targetType dynamicFvMesh
wclean $targetType sampling
wclean $targetType topoChangerFvMesh
wclean $targetType sampling
# Compile scotchDecomp, metisDecomp etc.
#parallel/Allwmake $targetType $*
#decompose/Allwmake $targetType $*
parallel/decompose/Allwclean $targetType $*
#reconstruct/Allwmake $targetType $*
wclean $targetType parallel/reconstruct/reconstruct
wclean $targetType parallel/distributed
#randomProcesses/Allwmake $targetType $*
wclean randomProcesses
wclean $targetType ODE
wclean $targetType fvMotionSolver
#transportModels/Allwmake $targetType $*
wclean transportModels/twoPhaseMixture
wclean transportModels/interfaceProperties
wclean transportModels/twoPhaseProperties
wclean transportModels/incompressible
wclean transportModels/compressible
wclean transportModels/immiscibleIncompressibleTwoPhaseMixture
#thermophysicalModels/Allwmake $targetType $*
wclean $targetType thermophysicalModels/specie
wclean $targetType thermophysicalModels/solidSpecie
wclean $targetType thermophysicalModels/thermophysicalFunctions
#./properties/Allwmake $targetType $*
wclean thermophysicalModels/properties/liquidProperties
wclean thermophysicalModels/properties/liquidMixtureProperties
wclean thermophysicalModels/properties/solidProperties
wclean thermophysicalModels/properties/solidMixtureProperties
wclean $targetType thermophysicalModels/basic
wclean $targetType thermophysicalModels/reactionThermo
wclean $targetType thermophysicalModels/laminarFlameSpeed
wclean $targetType thermophysicalModels/chemistryModel
wclean $targetType thermophysicalModels/barotropicCompressibilityModel
wclean $targetType thermophysicalModels/SLGThermo
wclean $targetType thermophysicalModels/solidThermo
wclean $targetType thermophysicalModels/solidChemistryModel
wclean $targetType thermophysicalModels/radiation
#TurbulenceModels/Allwmake $targetType $*
./TurbulenceModels/Allwclean
wclean $targetType combustionModels
#regionModels/Allwmake $targetType $*
./regionModels/Allwclean
#lagrangian/Allwmake $targetType $*
wclean $targetType lagrangian/distributionModels
wclean $targetType lagrangian/basic
wclean $targetType lagrangian/solidParticle
wclean $targetType lagrangian/intermediate
wclean $targetType lagrangian/turbulence
wclean $targetType lagrangian/spray
wclean $targetType lagrangian/DSMC
wclean $targetType lagrangian/coalCombustion
#lagrangian/molecularDynamics/Allwmake $targetType $*
wclean $targetType lagrangian/molecularDynamics/potential
wclean $targetType lagrangian/molecularDynamics/molecularMeasurements
wclean $targetType lagrangian/molecularDynamics/molecule
#mesh/Allwmake $targetType $*
wclean $targetType mesh/snappyHexMesh
wclean $targetType mesh/blockMesh
wclean $targetType mesh/extrudeModel
#renumber/Allwmake $targetType $*
wclean $targetType renumber/renumberMethods
wclean $targetType renumber/SloanRenumber
wclean $targetType renumber/zoltanRenumber
#fvAgglomerationMethods/Allwmake $targetType $*
wclean $targetType fvAgglomerationMethods/MGridGenGamgAgglomeration
wclean $targetType fvAgglomerationMethods/pairPatchAgglomeration
wclean $targetType waveModels
wclean $targetType engine
wclean $targetType fvOptions
wclean $targetType regionCoupled
#functionObjects/Allwmake $targetType $*
wclean $targetType functionObjects/field
wclean $targetType functionObjects/forces
wclean $targetType functionObjects/lagrangian
wclean $targetType functionObjects/utilities
wclean $targetType functionObjects/solvers
#./graphics/Allwmake
./functionObjects/graphics/runTimePostProcessing/Allwclean
wclean $targetType sixDoFRigidBodyMotion
wclean $targetType rigidBodyDynamics
wclean $targetType rigidBodyMeshMotion
# Needs access to Turbulence
wclean $targetType thermophysicalModels/properties/liquidPropertiesFvPatchFields
#------------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment