Skip to content
Snippets Groups Projects
Allwmake 2.71 KiB
Newer Older
  • Learn to ignore specific revisions
  • Henry's avatar
    Henry committed
    #!/bin/sh
    
    # Run from OPENFOAM src/ directory only
    cd ${0%/*} && wmakeCheckPwd "$WM_PROJECT_DIR/src" 2>/dev/null || {
        echo "Error (${0##*/}) : not located in \$WM_PROJECT_DIR/src"
        echo "    Check your OpenFOAM environment and installation"
    
    Henry's avatar
    Henry committed
        exit 1
    }
    
    [ -d "$WM_PROJECT_DIR" -a -f "$WM_PROJECT_DIR/etc/bashrc" ] || {
        echo "Error (${0##*/}) : WM_PROJECT_DIR appears to be incorrect"
    
        echo "    Check your OpenFOAM environment and installation"
    
    Henry's avatar
    Henry committed
        exit 1
    }
    
    
    . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
    
    #------------------------------------------------------------------------------
    
    
    # Trigger update of version strings as required
    
    wmakeBuildInfo -check || wrmo OpenFOAM/global/global.o 2>/dev/null
    
    Henry's avatar
    Henry committed
    
    
    wmakeLnInclude -u OpenFOAM
    
    wmakeLnInclude -u OSspecific/"${WM_OSTYPE:-POSIX}"
    
    Pstream/Allwmake $targetType $*
    
    Henry's avatar
    Henry committed
    
    
    OSspecific/"${WM_OSTYPE:-POSIX}"/Allwmake $targetType $*
    
    Henry's avatar
    Henry committed
    
    
    wmake $targetType fileFormats
    wmake $targetType surfMesh
    wmake $targetType meshTools
    
    Henry's avatar
    Henry committed
    
    # Decomposition methods needed by dummyThirdParty
    
    # (dummy metisDecomp, scotchDecomp etc) needed by e.g. meshTools
    
    Henry's avatar
    Henry committed
    parallel/decompose/AllwmakeLnInclude
    
    dummyThirdParty/Allwmake $targetType $*
    
    
    wmakeLnInclude -u fvOptions
    
    wmake $targetType finiteVolume
    wmake $targetType lagrangian/basic
    wmake $targetType lagrangian/distributionModels
    
    wmake $targetType finiteArea
    
    wmake $targetType genericPatchFields
    
    conversion/Allwmake $targetType $*
    
    wmake $targetType mesh/extrudeModel
    wmake $targetType dynamicMesh
    wmake $targetType dynamicFvMesh
    
    wmake $targetType sampling
    
    wmake $targetType topoChangerFvMesh
    
    # Compile scotchDecomp, metisDecomp etc.
    parallel/Allwmake $targetType $*
    
    randomProcesses/Allwmake $targetType $*
    
    wmake $targetType overset
    
    transportModels/Allwmake $targetType $*
    thermophysicalModels/Allwmake $targetType $*
    TurbulenceModels/Allwmake $targetType $*
    wmake $targetType combustionModels
    regionModels/Allwmake $targetType $*
    lagrangian/Allwmake $targetType $*
    
    
    wmake $targetType fvOptions
    wmake $targetType fvMotionSolver
    
    
    mesh/Allwmake $targetType $*
    renumber/Allwmake $targetType $*
    fvAgglomerationMethods/Allwmake $targetType $*
    
    wmake $targetType waveModels
    
    
    wmake $targetType engine
    wmake $targetType regionCoupled
    
    
    functionObjects/Allwmake $targetType $*
    
    wmake $targetType lumpedPointMotion
    
    wmake $targetType sixDoFRigidBodyMotion
    
    wmake $targetType sixDoFRigidBodyState
    
    wmake $targetType rigidBodyDynamics
    
    wmake $targetType rigidBodyMeshMotion
    
    Henry's avatar
    Henry committed
    
    
    # Needs access to Turbulence
    
    
    wmake $targetType thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties
    
    Henry's avatar
    Henry committed
    
    
    #------------------------------------------------------------------------------