From 5a07704c653dc666c9b49beb9ac2bd7b9f567ed7 Mon Sep 17 00:00:00 2001 From: Michael Wild Date: Sun, 20 Jun 2010 12:34:11 +0200 Subject: [PATCH] No EXECUTABLE_PREFIX for apps, install into libexec instead Prefix all app names with freefoam- and drop superfluous "Foam" in application names. Adapt tutorial scripts. Also put scripts into libexec and dynamically rename. Use bin/freefoam (based on the old ``foamExec'') as switch-yard instead. Signed-off-by: Michael Wild --- CMake/Modules/FFAddExecutableToDocIndex.cmake | 2 +- CMake/Modules/FFConfigureFiles.cmake | 24 ++-- CMakeLists.txt | 80 ++++++----- INSTALL | 17 +-- INSTALL.html | 85 ++++++------ ThirdParty/METIS/CMakeLists.txt | 2 +- ThirdParty/PARMGRIDGEN/IMlib/CMakeLists.txt | 2 +- ThirdParty/PARMGRIDGEN/mgrid/CMakeLists.txt | 2 +- ThirdParty/ParMetis/metis-parmetis/CMakeLists.txt | 2 +- ThirdParty/ParMetis/parmetis/CMakeLists.txt | 2 +- ThirdParty/SCOTCH/CMakeLists.txt | 2 +- applications/solvers/DNS/dnsFoam/CMakeLists.txt | 4 +- .../solvers/basic/laplacianFoam/CMakeLists.txt | 4 +- .../solvers/basic/potentialFoam/CMakeLists.txt | 4 +- .../basic/scalarTransportFoam/CMakeLists.txt | 4 +- .../solvers/combustion/PDRFoam/CMakeLists.txt | 4 +- .../solvers/combustion/XiFoam/CMakeLists.txt | 4 +- .../combustion/coldEngineFoam/CMakeLists.txt | 4 +- .../combustion/dieselEngineFoam/CMakeLists.txt | 4 +- .../solvers/combustion/dieselFoam/CMakeLists.txt | 4 +- .../solvers/combustion/engineFoam/CMakeLists.txt | 4 +- .../solvers/combustion/fireFoam/CMakeLists.txt | 4 +- .../solvers/combustion/reactingFoam/CMakeLists.txt | 4 +- .../combustion/rhoReactingFoam/CMakeLists.txt | 4 +- .../compressible/rhoCentralFoam/BCs/CMakeLists.txt | 2 +- .../compressible/rhoCentralFoam/CMakeLists.txt | 4 +- .../rhoCentralDyMFoam/CMakeLists.txt | 4 +- .../compressible/rhoPimpleFoam/CMakeLists.txt | 4 +- .../compressible/rhoPisoFoam/CMakeLists.txt | 4 +- .../rhoPorousMRFPimpleFoam/CMakeLists.txt | 4 +- .../rhoPorousSimpleFoam/CMakeLists.txt | 4 +- .../compressible/rhoSimpleFoam/CMakeLists.txt | 4 +- .../compressible/rhoSonicFoam/CMakeLists.txt | 4 +- .../compressible/rhopSonicFoam/BCs/CMakeLists.txt | 2 +- .../compressible/rhopSonicFoam/CMakeLists.txt | 4 +- .../compressible/sonicDyMFoam/CMakeLists.txt | 4 +- .../solvers/compressible/sonicFoam/CMakeLists.txt | 4 +- .../compressible/sonicLiquidFoam/CMakeLists.txt | 4 +- .../discreteMethods/dsmc/dsmcFoam/CMakeLists.txt | 4 +- .../mdEquilibrationFoam/CMakeLists.txt | 4 +- .../molecularDynamics/mdFoam/CMakeLists.txt | 4 +- .../electrostaticFoam/CMakeLists.txt | 4 +- .../electromagnetics/mhdFoam/CMakeLists.txt | 4 +- .../solvers/financial/financialFoam/CMakeLists.txt | 4 +- .../buoyantBoussinesqPisoFoam/CMakeLists.txt | 4 +- .../buoyantBoussinesqSimpleFoam/CMakeLists.txt | 4 +- .../heatTransfer/buoyantPisoFoam/CMakeLists.txt | 4 +- .../heatTransfer/buoyantSimpleFoam/CMakeLists.txt | 4 +- .../buoyantSimpleRadiationFoam/CMakeLists.txt | 4 +- .../heatTransfer/chtMultiRegionFoam/CMakeLists.txt | 4 +- .../chtMultiRegionSimpleFoam/CMakeLists.txt | 4 +- .../incompressible/boundaryFoam/CMakeLists.txt | 4 +- .../incompressible/channelFoam/CMakeLists.txt | 4 +- .../solvers/incompressible/icoFoam/CMakeLists.txt | 4 +- .../nonNewtonianIcoFoam/CMakeLists.txt | 4 +- .../incompressible/pimpleDyMFoam/CMakeLists.txt | 4 +- .../incompressible/pimpleFoam/CMakeLists.txt | 4 +- .../solvers/incompressible/pisoFoam/CMakeLists.txt | 4 +- .../incompressible/porousSimpleFoam/CMakeLists.txt | 4 +- .../incompressible/shallowWaterFoam/CMakeLists.txt | 4 +- .../incompressible/simpleFoam/CMakeLists.txt | 4 +- .../lagrangian/coalChemistryFoam/CMakeLists.txt | 4 +- .../CMakeLists.txt | 4 +- .../lagrangian/reactingParcelFoam/CMakeLists.txt | 4 +- .../uncoupledKinematicParcelFoam/CMakeLists.txt | 4 +- .../solvers/multiphase/bubbleFoam/CMakeLists.txt | 4 +- .../multiphase/cavitatingFoam/CMakeLists.txt | 4 +- .../compressibleInterDyMFoam/CMakeLists.txt | 4 +- .../compressibleInterFoam/CMakeLists.txt | 4 +- .../solvers/multiphase/interDyMFoam/CMakeLists.txt | 4 +- .../solvers/multiphase/interFoam/CMakeLists.txt | 4 +- .../multiphase/interMixingFoam/CMakeLists.txt | 4 +- .../multiphase/interPhaseChangeFoam/CMakeLists.txt | 4 +- .../multiphase/multiphaseInterFoam/CMakeLists.txt | 4 +- .../multiphase/porousInterFoam/CMakeLists.txt | 4 +- .../solvers/multiphase/settlingFoam/CMakeLists.txt | 4 +- .../multiphase/twoLiquidMixingFoam/CMakeLists.txt | 4 +- .../multiphase/twoPhaseEulerFoam/CMakeLists.txt | 4 +- .../interfacialModels/CMakeLists.txt | 2 +- .../kineticTheoryModels/CMakeLists.txt | 2 +- .../twoPhaseEulerFoam/phaseModel/CMakeLists.txt | 2 +- .../solidDisplacementFoam/CMakeLists.txt | 4 +- .../CMakeLists.txt | 4 +- .../estimateScalarError/CMakeLists.txt | 4 +- .../icoErrorEstimate/CMakeLists.txt | 4 +- .../errorEstimation/icoMomentError/CMakeLists.txt | 4 +- .../momentScalarError/CMakeLists.txt | 4 +- .../mesh/advanced/autoRefineMesh/CMakeLists.txt | 4 +- .../mesh/advanced/collapseEdges/CMakeLists.txt | 4 +- .../mesh/advanced/combinePatchFaces/CMakeLists.txt | 4 +- .../mesh/advanced/modifyMesh/CMakeLists.txt | 4 +- .../mesh/advanced/refineHexMesh/CMakeLists.txt | 4 +- .../mesh/advanced/refineWallLayer/CMakeLists.txt | 4 +- .../mesh/advanced/refinementLevel/CMakeLists.txt | 4 +- .../mesh/advanced/removeFaces/CMakeLists.txt | 4 +- .../mesh/advanced/selectCells/CMakeLists.txt | 4 +- .../mesh/advanced/splitCells/CMakeLists.txt | 4 +- .../conversion/Optional/ccm26ToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/ansysToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/cfx4ToFoam/CMakeLists.txt | 4 +- .../conversion/fluent3DMeshToFoam/CMakeLists.txt | 4 +- .../conversion/fluentMeshToFoam/CMakeLists.txt | 4 +- .../conversion/foamMeshToFluent/CMakeLists.txt | 4 +- .../mesh/conversion/foamToStarMesh/CMakeLists.txt | 4 +- .../mesh/conversion/gambitToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/gmshToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/ideasUnvToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/kivaToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/mshToFoam/CMakeLists.txt | 4 +- .../conversion/netgenNeutralToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/plot3dToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/polyDualMesh/CMakeLists.txt | 4 +- .../mesh/conversion/sammToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/star4ToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/starToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/tetgenToFoam/CMakeLists.txt | 4 +- .../mesh/conversion/writeMeshObj/CMakeLists.txt | 4 +- .../mesh/generation/blockMesh/CMakeLists.txt | 4 +- .../mesh/generation/extrude2DMesh/CMakeLists.txt | 4 +- .../mesh/generation/extrudeMesh/CMakeLists.txt | 4 +- .../extrudeMesh/extrudeModel/CMakeLists.txt | 2 +- .../mesh/generation/snappyHexMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/attachMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/autoPatch/CMakeLists.txt | 4 +- .../mesh/manipulation/cellSet/CMakeLists.txt | 4 +- .../mesh/manipulation/checkMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/createBaffles/CMakeLists.txt | 4 +- .../mesh/manipulation/createPatch/CMakeLists.txt | 4 +- .../mesh/manipulation/deformedGeom/CMakeLists.txt | 4 +- .../mesh/manipulation/faceSet/CMakeLists.txt | 4 +- .../mesh/manipulation/flattenMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/insideCells/CMakeLists.txt | 4 +- .../mesh/manipulation/mergeMeshes/CMakeLists.txt | 4 +- .../mergeOrSplitBaffles/CMakeLists.txt | 4 +- .../mesh/manipulation/mirrorMesh/CMakeLists.txt | 4 +- .../manipulation/moveDynamicMesh/CMakeLists.txt | 4 +- .../manipulation/moveEngineMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/moveMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/objToVTK/CMakeLists.txt | 4 +- .../mesh/manipulation/pointSet/CMakeLists.txt | 4 +- .../mesh/manipulation/refineMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/renumberMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/rotateMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/setSet/CMakeLists.txt | 4 +- .../mesh/manipulation/setsToZones/CMakeLists.txt | 4 +- .../mesh/manipulation/splitMesh/CMakeLists.txt | 4 +- .../manipulation/splitMeshRegions/CMakeLists.txt | 4 +- .../mesh/manipulation/stitchMesh/CMakeLists.txt | 4 +- .../mesh/manipulation/subsetMesh/CMakeLists.txt | 4 +- .../manipulation/transformPoints/CMakeLists.txt | 4 +- .../mesh/manipulation/zipUpMesh/CMakeLists.txt | 4 +- .../miscellaneous/expandDictionary/CMakeLists.txt | 4 +- .../miscellaneous/foamDebugSwitches/CMakeLists.txt | 4 +- .../miscellaneous/foamFormatConvert/CMakeLists.txt | 4 +- .../miscellaneous/foamInfoExec/CMakeLists.txt | 4 +- .../miscellaneous/patchSummary/CMakeLists.txt | 4 +- .../parallelProcessing/decomposePar/CMakeLists.txt | 4 +- .../reconstructPar/CMakeLists.txt | 4 +- .../reconstructParMesh/CMakeLists.txt | 4 +- .../redistributeMeshPar/CMakeLists.txt | 4 +- .../dataConversion/foamDataToFluent/CMakeLists.txt | 4 +- .../dataConversion/foamToEnsight/CMakeLists.txt | 4 +- .../foamToEnsightParts/CMakeLists.txt | 4 +- .../dataConversion/foamToFieldview9/CMakeLists.txt | 4 +- .../dataConversion/foamToGMV/CMakeLists.txt | 4 +- .../dataConversion/foamToVTK/CMakeLists.txt | 4 +- .../dataConversion/smapToFoam/CMakeLists.txt | 4 +- .../postProcessing/foamCalc/CMakeLists.txt | 4 +- .../lagrangian/particleTracks/CMakeLists.txt | 4 +- .../miscellaneous/dsmcFieldsCalc/CMakeLists.txt | 4 +- .../miscellaneous/engineCompRatio/CMakeLists.txt | 4 +- .../execFlowFunctionObjects/CMakeLists.txt | 4 +- .../miscellaneous/pdfPlot/CMakeLists.txt | 4 +- .../miscellaneous/postChannel/CMakeLists.txt | 4 +- .../miscellaneous/ptot/CMakeLists.txt | 4 +- .../miscellaneous/wdot/CMakeLists.txt | 4 +- .../miscellaneous/writeCellCentres/CMakeLists.txt | 4 +- .../patch/patchAverage/CMakeLists.txt | 4 +- .../patch/patchIntegrate/CMakeLists.txt | 4 +- .../sampling/probeLocations/CMakeLists.txt | 4 +- .../postProcessing/sampling/sample/CMakeLists.txt | 4 +- .../scalarField/pPrime2/CMakeLists.txt | 4 +- .../stressField/stressComponents/CMakeLists.txt | 4 +- .../postProcessing/turbulence/R/CMakeLists.txt | 4 +- .../createTurbulenceFields/CMakeLists.txt | 4 +- .../postProcessing/velocityField/Co/CMakeLists.txt | 4 +- .../velocityField/Lambda2/CMakeLists.txt | 4 +- .../velocityField/Mach/CMakeLists.txt | 4 +- .../postProcessing/velocityField/Pe/CMakeLists.txt | 4 +- .../postProcessing/velocityField/Q/CMakeLists.txt | 4 +- .../velocityField/enstrophy/CMakeLists.txt | 4 +- .../velocityField/flowType/CMakeLists.txt | 4 +- .../velocityField/streamFunction/CMakeLists.txt | 4 +- .../velocityField/uprime/CMakeLists.txt | 4 +- .../velocityField/vorticity/CMakeLists.txt | 4 +- .../postProcessing/wall/wallGradU/CMakeLists.txt | 4 +- .../wall/wallHeatFlux/CMakeLists.txt | 4 +- .../wall/wallShearStress/CMakeLists.txt | 4 +- .../postProcessing/wall/yPlusLES/CMakeLists.txt | 4 +- .../postProcessing/wall/yPlusRAS/CMakeLists.txt | 4 +- .../applyBoundaryLayer/CMakeLists.txt | 4 +- .../CMakeLists.txt | 4 +- .../utilities/preProcessing/boxTurb/CMakeLists.txt | 4 +- .../preProcessing/changeDictionary/CMakeLists.txt | 4 +- .../preProcessing/dsmcInitialise/CMakeLists.txt | 4 +- .../preProcessing/engineSwirl/CMakeLists.txt | 4 +- .../foamUpgradeFvSolution/CMakeLists.txt | 4 +- .../preProcessing/mapFields/CMakeLists.txt | 4 +- .../preProcessing/mdInitialise/CMakeLists.txt | 4 +- .../preProcessing/setFields/CMakeLists.txt | 4 +- .../utilities/surface/surfaceAdd/CMakeLists.txt | 4 +- .../surface/surfaceAutoPatch/CMakeLists.txt | 4 +- .../utilities/surface/surfaceCheck/CMakeLists.txt | 4 +- .../utilities/surface/surfaceClean/CMakeLists.txt | 4 +- .../surface/surfaceCoarsen/CMakeLists.txt | 4 +- .../surface/surfaceConvert/CMakeLists.txt | 4 +- .../surface/surfaceFeatureConvert/CMakeLists.txt | 4 +- .../surface/surfaceFeatureExtract/CMakeLists.txt | 4 +- .../utilities/surface/surfaceFind/CMakeLists.txt | 4 +- .../surface/surfaceMeshConvert/CMakeLists.txt | 4 +- .../surfaceMeshConvertTesting/CMakeLists.txt | 4 +- .../surface/surfaceMeshExport/CMakeLists.txt | 4 +- .../surface/surfaceMeshImport/CMakeLists.txt | 4 +- .../surface/surfaceMeshTriangulate/CMakeLists.txt | 4 +- .../utilities/surface/surfaceOrient/CMakeLists.txt | 4 +- .../surface/surfacePointMerge/CMakeLists.txt | 4 +- .../surface/surfaceRedistributePar/CMakeLists.txt | 4 +- .../surface/surfaceRefineRedGreen/CMakeLists.txt | 4 +- .../utilities/surface/surfaceSmooth/CMakeLists.txt | 4 +- .../surface/surfaceSplitByPatch/CMakeLists.txt | 4 +- .../surfaceSplitNonManifolds/CMakeLists.txt | 4 +- .../utilities/surface/surfaceSubset/CMakeLists.txt | 4 +- .../surface/surfaceToPatch/CMakeLists.txt | 4 +- .../surface/surfaceTransformPoints/CMakeLists.txt | 4 +- .../IFCLookUpTableGen/CMakeLists.txt | 4 +- .../thermophysical/adiabaticFlameT/CMakeLists.txt | 4 +- .../thermophysical/chemkinToFoam/CMakeLists.txt | 4 +- .../thermophysical/equilibriumCO/CMakeLists.txt | 4 +- .../equilibriumFlameT/CMakeLists.txt | 4 +- .../mixtureAdiabaticFlameT/CMakeLists.txt | 4 +- bin/CMakeLists.txt | 43 +++--- bin/{foamClearPolyMesh => freefoam-clearPolyMesh} | 0 bin/{foamCopySettings => freefoam-copySettings} | 0 bin/{foamGraphExecTime => freefoam-graphExecTime} | 0 bin/{foamGraphResKE => freefoam-graphResKE} | 0 bin/{foamGraphResUVWP => freefoam-graphResUVWP} | 0 bin/{foamJob.in => freefoam-job.in} | 30 ++--- bin/{foamLog.in => freefoam-log.in} | 0 bin/{paraFoam.in => freefoam-para.in} | 0 bin/{foamSolverSweeps => freefoam-solverSweeps} | 0 bin/freefoam.in | 148 +++++++++++++++++++++ data/shellFunctions/RunFunctions.in | 4 +- data/shellFunctions/doxyToAsciidoc.awk | 2 +- src/ODE/CMakeLists.txt | 2 +- src/OSspecific/POSIX/CMakeLists.txt | 2 +- src/OpenFOAM/CMakeLists.txt | 2 +- src/Pstream/dummy/CMakeLists.txt | 2 +- src/Pstream/mpi/CMakeLists.txt | 2 +- src/autoMesh/CMakeLists.txt | 2 +- src/conversion/CMakeLists.txt | 2 +- .../decompositionMethods/CMakeLists.txt | 2 +- .../parMetisDecomp/CMakeLists.txt | 2 +- src/dynamicFvMesh/CMakeLists.txt | 2 +- src/dynamicMesh/CMakeLists.txt | 2 +- src/edgeMesh/CMakeLists.txt | 2 +- src/engine/CMakeLists.txt | 2 +- src/errorEstimation/CMakeLists.txt | 2 +- src/finiteVolume/CMakeLists.txt | 2 +- .../MGridGenGamgAgglomeration/CMakeLists.txt | 2 +- src/fvMotionSolver/CMakeLists.txt | 2 +- src/lagrangian/basic/CMakeLists.txt | 2 +- src/lagrangian/coalCombustion/CMakeLists.txt | 2 +- src/lagrangian/dieselSpray/CMakeLists.txt | 2 +- src/lagrangian/dsmc/CMakeLists.txt | 2 +- src/lagrangian/intermediate/CMakeLists.txt | 2 +- .../molecularMeasurements/CMakeLists.txt | 2 +- .../molecularDynamics/molecule/CMakeLists.txt | 2 +- .../molecularDynamics/potential/CMakeLists.txt | 2 +- src/lagrangian/solidParticle/CMakeLists.txt | 2 +- src/meshTools/CMakeLists.txt | 2 +- .../foamCalcFunctions/CMakeLists.txt | 2 +- .../functionObjects/IO/CMakeLists.txt | 2 +- .../functionObjects/field/CMakeLists.txt | 2 +- .../functionObjects/forces/CMakeLists.txt | 2 +- .../functionObjects/systemCall/CMakeLists.txt | 2 +- .../functionObjects/utilities/CMakeLists.txt | 2 +- src/postProcessing/postCalc/CMakeLists.txt | 2 +- src/randomProcesses/CMakeLists.txt | 2 +- src/sampling/CMakeLists.txt | 2 +- src/surfMesh/CMakeLists.txt | 2 +- .../barotropicCompressibilityModel/CMakeLists.txt | 2 +- src/thermophysicalModels/basic/CMakeLists.txt | 2 +- .../chemistryModel/CMakeLists.txt | 2 +- .../laminarFlameSpeed/CMakeLists.txt | 2 +- .../liquidMixture/CMakeLists.txt | 2 +- src/thermophysicalModels/liquids/CMakeLists.txt | 2 +- src/thermophysicalModels/pdfs/CMakeLists.txt | 2 +- src/thermophysicalModels/radiation/CMakeLists.txt | 2 +- .../reactionThermo/CMakeLists.txt | 2 +- .../solidMixture/CMakeLists.txt | 2 +- src/thermophysicalModels/solids/CMakeLists.txt | 2 +- src/thermophysicalModels/specie/CMakeLists.txt | 2 +- .../thermophysicalFunctions/CMakeLists.txt | 2 +- src/topoChangerFvMesh/CMakeLists.txt | 2 +- src/transportModels/incompressible/CMakeLists.txt | 2 +- .../interfaceProperties/CMakeLists.txt | 2 +- src/triSurface/CMakeLists.txt | 2 +- src/turbulenceModels/LES/LESdeltas/CMakeLists.txt | 2 +- src/turbulenceModels/LES/LESfilters/CMakeLists.txt | 2 +- .../compressible/LES/CMakeLists.txt | 2 +- .../compressible/RAS/CMakeLists.txt | 2 +- .../compressible/turbulenceModel/CMakeLists.txt | 2 +- .../incompressible/LES/CMakeLists.txt | 2 +- .../incompressible/RAS/CMakeLists.txt | 2 +- .../incompressible/turbulenceModel/CMakeLists.txt | 2 +- tutorials/DNS/dnsFoam/boxTurb16/Allrun.in | 2 +- tutorials/XiFoam/moriyoshiHomogeneous/Allrun.in | 8 ++ tutorials/basic/laplacianFoam/flange/Allrun.in | 2 +- tutorials/basic/potentialFoam/cylinder/Allrun.in | 2 +- tutorials/basic/potentialFoam/pitzDaily/Allrun.in | 2 +- .../basic/scalarTransportFoam/pitzDaily/Allrun.in | 2 +- .../combustion/XiFoam/les/pitzDaily/Allrun.in | 2 +- .../combustion/XiFoam/les/pitzDaily3D/Allrun.in | 2 +- tutorials/combustion/XiFoam/ras/Allrun.in | 18 +-- .../combustion/dieselFoam/aachenBomb/Allrun.in | 2 +- tutorials/combustion/engineFoam/kivaTest/Allrun.in | 2 +- .../fireFoam/les/smallPoolFire2D/Allrun.in | 2 +- .../reactingFoam/ras/counterFlowFlame2D/Allrun.in | 2 +- tutorials/compressible/rhoCentralFoam/Allrun.in | 6 +- .../rhoCentralFoam/obliqueShock}/Allrun.in | 2 +- .../rhoCentralFoam/shockTube}/Allrun.in | 2 +- .../rhoCentralFoam/wedge15Ma5}/Allrun.in | 2 +- .../rhoPimpleFoam/angledDuct/Allrun.in | 2 +- .../rhoPisoFoam/les/pitzDaily/Allrun.in | 2 +- .../compressible/rhoPisoFoam/ras/cavity/Allrun.in | 2 +- .../rhoPorousMRFPimpleFoam/mixerVessel2D/Allrun.in | 2 +- .../angledDuctExplicit/Allrun.in | 2 +- .../angledDuctImplicit/Allrun.in | 2 +- .../rhoSonicFoam/forwardStep/Allrun.in | 2 +- .../compressible/rhoSonicFoam/shockTube/Allrun.in | 2 +- .../compressible/rhopSonicFoam/shockTube/Allrun.in | 2 +- .../rhopSonicFoam/wedge15Ma5/Allrun.in | 2 +- .../sonicFoam/laminar/forwardStep/Allrun.in | 2 +- .../sonicFoam/laminar/shockTube/Allrun.in | 4 +- .../sonicFoam/ras/nacaAirfoil/Allrun.in | 2 +- .../compressible/sonicFoam/ras/prism/Allrun.in | 2 +- tutorials/compressible/sonicLiquidFoam/Allrun.in | 2 +- .../sonicLiquidFoam/decompressionTank}/Allrun.in | 2 +- .../dsmcFoam/freeSpacePeriodic/Allrun.in | 2 +- .../dsmcFoam/freeSpaceStream/Allrun.in | 2 +- .../dsmcFoam/supersonicCorner/Allrun.in | 2 +- .../discreteMethods/dsmcFoam/wedge15Ma5/Allrun.in | 2 +- .../mdEquilibrationFoam/Allrun.in | 2 +- .../molecularDynamics/mdFoam/nanoNozzle/Allrun.in | 2 +- .../electrostaticFoam/chargedWire/Allrun.in | 2 +- tutorials/electromagnetics/mhdFoam/Allrun.in | 4 +- .../financial/financialFoam/europeanCall/Allrun.in | 2 +- .../buoyantBoussinesqPisoFoam/hotRoom/Allrun.in | 2 +- .../buoyantBoussinesqSimpleFoam/hotRoom/Allrun.in | 2 +- .../iglooWithFridges/Allrun.in | 2 +- .../heatTransfer/buoyantPisoFoam/hotRoom/Allrun.in | 2 +- .../buoyantSimpleFoam/hotRoom/Allrun.in | 2 +- .../hotRadiationRoom/Allrun.in | 2 +- .../hotRadiationRoomFvDOM/Allrun.in | 2 +- .../chtMultiRegionFoam/multiRegionHeater/Allrun.in | 6 +- .../snappyMultiRegionHeater/Allrun.in | 6 +- .../multiRegionHeater/Allrun.in | 6 +- .../MRFSimpleFoam/MRFSimpleFoam/CMakeLists.txt.in | 4 +- .../MRFSimpleFoam/mixerVessel2D/Allrun.in | 3 +- .../boundaryFoam/boundaryLaunderSharma/Allrun.in | 2 +- .../boundaryFoam/boundaryWallFunctions/Allrun.in | 2 +- .../channelFoam/channel395/Allrun.in | 2 +- tutorials/incompressible/icoFoam/Allrun.in | 2 +- .../icoFoam/cavityGrade}/Allrun.in | 2 +- .../icoFoam/elbow}/Allrun.in | 2 +- .../nonNewtonianIcoFoam/offsetCylinder/Allrun.in | 2 +- .../pimpleDyMFoam/movingCone/Allrun.in | 2 +- .../pimpleDyMFoam/wingMotion/Allrun.in | 4 +- .../incompressible/pimpleFoam/t-junction/Allrun.in | 2 +- .../pisoFoam/les/pitzDaily/Allrun.in | 2 +- .../pisoFoam/les/pitzDailyDirectMapped/Allrun.in | 2 +- .../incompressible/pisoFoam/ras/cavity/Allrun.in | 2 +- .../porousSimpleFoam/angledDuctExplicit/Allrun.in | 2 +- .../porousSimpleFoam/angledDuctImplicit/Allrun.in | 2 +- .../shallowWaterFoam/squareBump/Allrun.in | 2 +- .../incompressible/simpleFoam/airFoil2D/Allrun.in | 2 +- .../incompressible/simpleFoam/motorBike/Allrun.in | 2 +- .../incompressible/simpleFoam/pitzDaily/Allrun.in | 2 +- .../simpleFoam/pitzDailyExptInlet/Allrun.in | 2 +- .../incompressible/simpleSRFFoam/mixer/Allrun.in | 5 +- .../simpleSRFFoam/simpleSRFFoam/CMakeLists.txt.in | 4 +- .../coalChemistryFoam/simplifiedSiwek/Allrun.in | 2 +- .../filter/Allrun.in | 2 +- .../parcelInBox/Allrun.in | 2 +- .../verticalChannel/Allrun.in | 6 +- .../reactingParcelFoam/evaporationTest/Allrun.in | 2 +- .../rhoPisoTwinParcelFoam/CMakeLists.txt.in | 4 +- .../simplifiedSiwek/Allrun.in | 5 +- .../multiphase/bubbleFoam/bubbleColumn/Allrun.in | 2 +- tutorials/multiphase/cavitatingFoam/les/Allrun.in | 2 +- .../cavitatingFoam/les/throttle}/Allrun.in | 2 +- .../cavitatingFoam/les/throttle3D}/Allrun.in | 2 +- .../cavitatingFoam/ras/throttle/Allrun.in | 2 +- .../les/depthCharge2D/Allrun.in | 2 +- .../les/depthCharge3D/Allrun.in | 2 +- .../ras/damBreakWithObstacle/Allrun.in | 2 +- .../interDyMFoam/ras/floatingObject/Allrun.in | 2 +- .../interDyMFoam/ras/sloshingTank2D/Allrun.in | 2 +- .../interDyMFoam/ras/sloshingTank2D3DoF/Allrun.in | 2 +- .../interDyMFoam/ras/sloshingTank3D/Allrun.in | 2 +- .../interDyMFoam/ras/sloshingTank3D3DoF/Allrun.in | 2 +- .../interDyMFoam/ras/sloshingTank3D6DoF/Allrun.in | 2 +- .../MRFInterFoam/MRFInterFoam/CMakeLists.txt.in | 5 +- .../interFoam/MRFInterFoam/mixerVessel2D/Allrun.in | 5 +- tutorials/multiphase/interFoam/laminar/Allrun.in | 2 +- .../interFoam/laminar/damBreak}/Allrun.in | 2 +- .../interFoam/les/nozzleFlow2D/Allrun.in | 2 +- tutorials/multiphase/interFoam/ras/Allrun.in | 2 +- .../interMixingFoam/laminar/damBreak/Allrun.in | 2 +- .../cavitatingBullet/Allrun.in | 2 +- .../laminar/damBreak4phase/Allrun.in | 2 +- .../laminar/damBreak4phaseFine/Allrun.in | 2 +- .../multiphase/settlingFoam/ras/dahl/Allrun.in | 2 +- .../multiphase/settlingFoam/ras/tank3D/Allrun.in | 2 +- .../multiphase/twoPhaseEulerFoam/bed/Allrun.in | 2 +- .../multiphase/twoPhaseEulerFoam/bed2/Allrun.in | 2 +- .../twoPhaseEulerFoam/bubbleColumn/Allrun.in | 2 +- .../solidDisplacementFoam/plateHole/Allrun.in | 2 +- .../beamEndLoad/Allrun.in | 2 +- 429 files changed, 964 insertions(+), 806 deletions(-) rename bin/{foamClearPolyMesh => freefoam-clearPolyMesh} (100%) rename bin/{foamCopySettings => freefoam-copySettings} (100%) rename bin/{foamGraphExecTime => freefoam-graphExecTime} (100%) rename bin/{foamGraphResKE => freefoam-graphResKE} (100%) rename bin/{foamGraphResUVWP => freefoam-graphResUVWP} (100%) rename bin/{foamJob.in => freefoam-job.in} (87%) rename bin/{foamLog.in => freefoam-log.in} (100%) rename bin/{paraFoam.in => freefoam-para.in} (100%) rename bin/{foamSolverSweeps => freefoam-solverSweeps} (100%) create mode 100755 bin/freefoam.in create mode 100755 tutorials/XiFoam/moriyoshiHomogeneous/Allrun.in copy tutorials/{combustion/XiFoam/les/pitzDaily3D => compressible/rhoCentralFoam/obliqueShock}/Allrun.in (94%) copy tutorials/{combustion/XiFoam/les/pitzDaily3D => compressible/rhoCentralFoam/shockTube}/Allrun.in (94%) copy tutorials/{combustion/XiFoam/les/pitzDaily3D => compressible/rhoCentralFoam/wedge15Ma5}/Allrun.in (94%) copy tutorials/{combustion/dieselFoam/aachenBomb => compressible/sonicLiquidFoam/decompressionTank}/Allrun.in (93%) copy tutorials/{combustion/XiFoam/les/pitzDaily3D => incompressible/icoFoam/cavityGrade}/Allrun.in (94%) copy tutorials/{combustion/XiFoam/les/pitzDaily3D => incompressible/icoFoam/elbow}/Allrun.in (94%) copy tutorials/{combustion/XiFoam/les/pitzDaily3D => multiphase/cavitatingFoam/les/throttle}/Allrun.in (94%) copy tutorials/{combustion/XiFoam/les/pitzDaily3D => multiphase/cavitatingFoam/les/throttle3D}/Allrun.in (94%) copy tutorials/{combustion/XiFoam/les/pitzDaily3D => multiphase/interFoam/laminar/damBreak}/Allrun.in (94%) diff --git a/CMake/Modules/FFAddExecutableToDocIndex.cmake b/CMake/Modules/FFAddExecutableToDocIndex.cmake index a17ca8ce5..90f978c3d 100644 --- a/CMake/Modules/FFAddExecutableToDocIndex.cmake +++ b/CMake/Modules/FFAddExecutableToDocIndex.cmake @@ -59,7 +59,7 @@ function( FF_ADD_EXECUTABLE_TO_DOC_INDEX TARGET SOURCE ) get_filename_component( f ${SOURCE} NAME_WE ) set( files "\"${f}_8C.html\" \"${f}_8C-source.html\"" ) set( __FF_ADD_EXECUTABLE_TO_DOC_INDEX_targets - ${__FF_ADD_EXECUTABLE_TO_DOC_INDEX_targets} "${EXECUTABLE_PREFIX}${TARGET} (${files})" + ${__FF_ADD_EXECUTABLE_TO_DOC_INDEX_targets} "${TARGET} (${files})" CACHE INTERNAL "Files to include in the documentation index" FORCE ) diff --git a/CMake/Modules/FFConfigureFiles.cmake b/CMake/Modules/FFConfigureFiles.cmake index 13855a458..32f81d8b1 100644 --- a/CMake/Modules/FFConfigureFiles.cmake +++ b/CMake/Modules/FFConfigureFiles.cmake @@ -70,15 +70,11 @@ # - FF_LIB_DIR: # - build tree: ${CMAKE_BINARY_DIR}/lib/FreeFOAM-${FF_VERSION_FULL} # - install tree: ${FF_INSTALL_LIB_PATH} -# - FF_FRAMEWORK_DIR: -# - build tree: ${CMAKE_BINARY_DIR}/Library/Frameworks -# - install tree: ${FF_INSTALL_FRAMEWORK_PATH} -# - FF_PV3FOAMREADER_DIR: -# - build tree: ${FF_LIB_DIR}/plugins/PV3FoamReader -# - install tree: ${FF_INSTALL_PV3FOAMREADER_PATH} -# - FF_INCLUDE_DIR: -# - build tree: ${CMAKE_BINARY_DIR}/include -# - install tree: ${FF_INSTALL_HEADER_PATH} +# - FF_LIBEXEC_BASE_DIR: +# - build tree: ${CMAKE_BINARY_DIR}/libexec/FreeFOAM +# - install tree: ${FF_INSTALL_LIBEXEC_BASE_PATH} +# - FF_LIBEXEC_DIR: +# ${FF_LIBEXEC_BASE_DIR}/${FF_VERSION_FULL} # - FF_CONFIG_DIR: # - build tree: ${CMAKE_BINARY_DIR}/etc # - install tree: ${FF_INSTALL_CONFIG_PATH} @@ -125,9 +121,8 @@ macro( FF_CONFIGURE_FILES _buildFilesVar _installFilesVar _destDir ) # configure the script for build tree set( FF_BIN_DIR ${CMAKE_BINARY_DIR}/bin ) set( FF_LIB_DIR ${FF_LIBRARY_OUTPUT_DIRECTORY} ) - set( FF_FRAMEWORK_DIR "${FF_FRAMEWORK_OUTPUT_DIRECTORY}" ) - set( FF_PV3FOAMREADER_DIR "${FF_BIN_DIR}/plugins/PV3FoamReader" ) - set( FF_INCLUDE_DIR "${CMAKE_BINARY_DIR}/include" ) + set( FF_LIBEXEC_BASE_DIR ${CMAKE_BINARY_DIR}/libexec/FreeFOAM ) + set( FF_LIBEXEC_DIR ${FF_LIBEXEC_BASE_DIR}/${FF_VERSION_FULL} ) set( FF_DATA_DIR ${CMAKE_BINARY_DIR}/data ) set( FF_LOCAL_DOC_DIR ${CMAKE_BINARY_DIR}/doc ) if( FF_USE_LOCAL_DOXYGEN_DOCS ) @@ -144,9 +139,8 @@ macro( FF_CONFIGURE_FILES _buildFilesVar _installFilesVar _destDir ) # configure the script for install tree set( FF_BIN_DIR ${FF_INSTALL_BIN_PATH} ) set( FF_LIB_DIR ${FF_INSTALL_LIB_PATH} ) - set( FF_FRAMEWORK_DIR "${FF_INSTALL_FRAMEWORK_PATH}" ) - set( FF_PV3FOAMREADER_DIR "${FF_INSTALL_PV3FOAMREADER_PATH}" ) - set( FF_INCLUDE_DIR "${FF_INSTALL_HEADER_PATH}" ) + set( FF_LIBEXEC_BASE_DIR ${FF_INSTALL_LIBEXEC_BASE_PATH} ) + set( FF_LIBEXEC_DIR ${FF_LIBEXEC_BASE_DIR}/${FF_VERSION_FULL} ) set( FF_DATA_DIR ${FF_INSTALL_DATA_PATH} ) set( FF_LOCAL_DOC_DIR ${FF_INSTALL_DOC_PATH} ) if( FF_USE_LOCAL_DOXYGEN_DOCS ) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b526fca7..f85027ab3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,35 +68,51 @@ mark_as_advanced( FF_BUILD_FRAMEWORK ) # we want shared libraries set( BUILD_SHARED_LIBS SHARED ) -# use a prefix for executables -set (EXECUTABLE_PREFIX "ff_" CACHE STRING "Prefix prepended to all program and script names") -mark_as_advanced( EXECUTABLE_PREFIX ) -string( TOUPPER "${EXECUTABLE_PREFIX}" EXECUTABLE_PREFIX_UPPER ) - # installation directories -set( FF_INSTALL_BIN_PATH bin CACHE STRING "Executables installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) +set( FF_INSTALL_BIN_PATH bin CACHE STRING + "Executables installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) if( APPLE AND FF_BUILD_FRAMEWORK ) - set( FF_INSTALL_FRAMEWORK_PATH /Library/Frameworks CACHE STRING "Framework installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) + set( FF_INSTALL_FRAMEWORK_PATH /Library/Frameworks CACHE STRING + "Framework installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) endif( APPLE AND FF_BUILD_FRAMEWORK ) -set( FF_INSTALL_LIB_PATH lib/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} CACHE STRING "Library installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) -set( FF_INSTALL_HEADER_PATH include/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} CACHE STRING "Header installation path (absolute or relative to CMAKE_INSTALL_PREFIX, not for frameworks)" ) -set( FF_INSTALL_CONFIG_PATH etc/${CMAKE_PROJECT_NAME}/${FF_VERSION_FULL} CACHE STRING "Configuration files installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) -set( FF_INSTALL_DATA_PATH share/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} CACHE STRING "Data files installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) -set( FF_INSTALL_DOC_PATH share/doc/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} CACHE STRING "Documentation files installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) -set( FF_INSTALL_MAN_PATH share/man CACHE STRING "Man-pages installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) -set( FF_INSTALL_TUTORIALS_PATH ${FF_INSTALL_DOC_PATH} CACHE STRING "Tutorials installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) -set( FF_INSTALL_CMAKE_PATH ${FF_INSTALL_DATA_PATH}/CMake CACHE STRING "CMake configuration files installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) -set( FF_INSTALL_PVFOAMREADER_PATH ${FF_INSTALL_LIB_PATH}/plugins/PVFoamReader CACHE STRING "ParaView2 OpenFOAM-reader plugin installation path" ) -set( FF_INSTALL_PV3FOAMREADER_PATH ${FF_INSTALL_LIB_PATH}/plugins/PV3FoamReader CACHE STRING "ParaView3 OpenFOAM-reader plugin installation path" ) -set( FF_INSTALL_USERDFOAM_PATH ${FF_INSTALL_LIB_PATH}/plugins/userd-foam CACHE STRING "Ensight OpenFOAM-reader plugin installation path" ) -mark_as_advanced( FF_INSTALL_BIN_PATH FF_INSTALL_FRAMEWORK_PATH FF_INSTALL_LIB_PATH FF_INSTALL_HEADER_PATH - FF_INSTALL_CONFIG_PATH FF_INSTALL_DATA_PATH FF_INSTALL_MAN_PATH FF_INSTALL_DOC_PATH FF_INSTALL_TUTORIALS_PATH - FF_INSTALL_CMAKE_PATH FF_INSTALL_PVFOAMREADER_PATH FF_INSTALL_PV3FOAMREADER_PATH FF_INSTALL_USERDFOAM_PATH ) +set( FF_INSTALL_LIB_PATH lib/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} CACHE + STRING "Library installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) +set( FF_INSTALL_LIBEXEC_BASE_PATH libexec/${CMAKE_PROJECT_NAME} CACHE STRING + "Installation path for executables not on PATH (absolute or relative to CMAKE_INSTALL_PREFIX). The ${CMAKE_PROJECT_NAME} version number will be appended as a sub-directory." ) +set( FF_INSTALL_LIBEXEC_PATH ${FF_INSTALL_LIBEXEC_BASE_PATH}/${FF_VERSION_FULL} ) +set( FF_INSTALL_HEADER_PATH include/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} + CACHE STRING "Header installation path (absolute or relative to CMAKE_INSTALL_PREFIX, not for frameworks)" ) +set( FF_INSTALL_CONFIG_PATH etc/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} CACHE + STRING "Configuration files installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) +set( FF_INSTALL_DATA_PATH share/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} CACHE + STRING "Data files installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) +set( FF_INSTALL_DOC_PATH share/doc/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} + CACHE STRING "Documentation files installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) +set( FF_INSTALL_MAN_PATH share/man CACHE STRING + "Man-pages installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) +set( FF_INSTALL_TUTORIALS_PATH share/doc/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL} + CACHE STRING "Tutorials installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) +set( FF_INSTALL_CMAKE_PATH share/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL}/CMake + CACHE STRING "CMake configuration files installation path (absolute or relative to CMAKE_INSTALL_PREFIX)" ) +set( FF_INSTALL_PVFOAMREADER_PATH lib/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL}/plugins/PVFoamReader + CACHE STRING "ParaView2 OpenFOAM-reader plugin installation path" ) +set( FF_INSTALL_PV3FOAMREADER_PATH lib/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL}/plugins/PV3FoamReader + CACHE STRING "ParaView3 OpenFOAM-reader plugin installation path" ) +set( FF_INSTALL_USERDFOAM_PATH lib/${CMAKE_PROJECT_NAME}-${FF_VERSION_FULL}/plugins/userd-foam + CACHE STRING "Ensight OpenFOAM-reader plugin installation path" ) +mark_as_advanced( FF_INSTALL_BIN_PATH FF_INSTALL_FRAMEWORK_PATH + FF_INSTALL_LIB_PATH FF_INSTALL_LIBEXEC_BASE_PATH FF_INSTALL_LIBEXEC_PATH + FF_INSTALL_HEADER_PATH FF_INSTALL_CONFIG_PATH FF_INSTALL_DATA_PATH + FF_INSTALL_MAN_PATH FF_INSTALL_DOC_PATH FF_INSTALL_TUTORIALS_PATH + FF_INSTALL_CMAKE_PATH FF_INSTALL_PVFOAMREADER_PATH + FF_INSTALL_PV3FOAMREADER_PATH FF_INSTALL_USERDFOAM_PATH ) # make absolute paths -foreach( _p FF_INSTALL_BIN_PATH FF_INSTALL_LIB_PATH FF_INSTALL_FRAMEWORK_PATH - FF_INSTALL_HEADER_PATH FF_INSTALL_CONFIG_PATH FF_INSTALL_DATA_PATH FF_INSTALL_DOC_PATH - FF_INSTALL_MAN_PATH FF_INSTALL_TUTORIALS_PATH FF_INSTALL_CMAKE_PATH ) +foreach( _p FF_INSTALL_BIN_PATH FF_INSTALL_LIB_PATH + FF_INSTALL_LIBEXEC_BASE_PATH FF_INSTALL_LIBEXEC_PATH + FF_INSTALL_FRAMEWORK_PATH FF_INSTALL_HEADER_PATH FF_INSTALL_CONFIG_PATH + FF_INSTALL_DATA_PATH FF_INSTALL_DOC_PATH FF_INSTALL_MAN_PATH + FF_INSTALL_TUTORIALS_PATH FF_INSTALL_CMAKE_PATH ) if( NOT IS_ABSOLUTE ${${_p}} ) set( ${_p} "${CMAKE_INSTALL_PREFIX}/${${_p}}" ) endif( NOT IS_ABSOLUTE ${${_p}} ) @@ -120,7 +136,8 @@ foreach( browser open gnome-open kde-open x-www-browser www-browser endif( HTML_DOC_BROWSER ) endforeach( browser ) if( NOT HTML_DOC_BROWSER ) - message( STATUS "Failed to find a program to open HTML pages with (a.k.a a browser). Point HTML_DOC_BROWSER to a suitable program." ) + message( STATUS + "Failed to find a program to open HTML pages with (a.k.a a browser). Point HTML_DOC_BROWSER to a suitable program." ) set( HTML_DOC_BROWSER "ECHO" CACHE STRING "Command to open an HTML file (ECHO will print it to STDOUT)" FORCE ) endif( NOT HTML_DOC_BROWSER ) set( FF_HTML_DOC_BROWSER_COMMAND "\${HTML_DOC_BROWSER} %f" CACHE STRING "Command to open an HTML file" ) @@ -131,7 +148,7 @@ mark_as_advanced( HTML_DOC_BROWSER FF_HTML_DOC_BROWSER_COMMAND ) set( CMAKE_INSTALL_RPATH ${FF_INSTALL_LIB_PATH} ) # we want executables and libraries in uniform places -set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin ) +set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/libexec/FreeFOAM/${FF_VERSION_FULL} ) set( FF_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/FreeFOAM-${FF_VERSION_FULL} ) set( FF_FRAMEWORK_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Library/Frameworks ) if( FF_BUILD_FRAMEWORK ) @@ -147,10 +164,10 @@ if( FF_USE_MPI ) find_package( MPI REQUIRED ) endif( FF_USE_MPI ) if( CMAKE_SYSTEM_NAME STREQUAL Linux ) -option( FF_USE_GAMMA "Build ${CMAKE_PROJECT} against GAMMA parallel libraries" OFF ) -if( FF_USE_GAMMA ) - find_package( GAMMA REQUIRED ) -endif( FF_USE_GAMMA ) + option( FF_USE_GAMMA "Build ${CMAKE_PROJECT} against GAMMA parallel libraries" OFF ) + if( FF_USE_GAMMA ) + find_package( GAMMA REQUIRED ) + endif( FF_USE_GAMMA ) endif( CMAKE_SYSTEM_NAME STREQUAL Linux ) if( MPI_FOUND OR GAMMA_FOUND ) set( FF_USE_PARALLEL TRUE ) @@ -197,7 +214,8 @@ else( FF_BUILD_PRIVATE_METIS ) message( SEND_ERROR "metis is required! Override METIS_* settings [advanced]." ) endif( NOT METIS_FOUND ) if( METIS_REQUIRES_MPI AND NOT FF_USE_MPI ) - message( SEND_ERROR "Your metis implementation requires FF_USE_MPI to be enabled. If you don't have/want MPI, enable FF_BUILD_PRIVATE_METIS instead." ) + message( SEND_ERROR + "Your metis implementation requires FF_USE_MPI to be enabled. If you don't have/want MPI, enable FF_BUILD_PRIVATE_METIS instead." ) endif( METIS_REQUIRES_MPI AND NOT FF_USE_MPI ) endif( FF_BUILD_PRIVATE_METIS ) diff --git a/INSTALL b/INSTALL index 20ae61174..53bd09b82 100644 --- a/INSTALL +++ b/INSTALL @@ -241,17 +241,12 @@ $ cd $HOME/FreeFOAM/$LOGNAME-{shortver}/run/tutorials And try to run e.g. the 'cavity' tutorial case: --------------- $ cd icoFoam -$ ff_blockMesh -case cavity -$ ff_checkMesh -case cavity -$ ff_icoFoam -case cavity +$ freefoam blockMesh -case cavity +$ freefoam checkMesh -case cavity +$ freefoam ico -case cavity --------------- Things should run smoothly and finish without an error. -[NOTE] -The prefix 'ff_' used in above commands depends on the configuration -variable +EXECUTABLE_PREFIX+ and might be different from the default. -Adapt above invocations accordingly. - Obtaining the Source Code from the GIT repository ------------------------------------------------- - Clone the FreeFOAM repository (here the clone is placed in @@ -280,6 +275,9 @@ Build Configuration Reference +FF_INSTALL_BIN_PATH+:: Installation path of the binaries. If not absolute, it is relative to 'CMAKE_INSTALL_PREFIX'. ++FF_INSTALL_LIBEXEC_PATH+:: + Installation path of the binaries which should not be on the +PATH+. If not + absolute, it is relative to +CMAKE_INSTALL_PREFIX+. +FF_INSTALL_CONFIG_PATH+:: Installation path of the configuration files. If not absolute, it is relative to 'CMAKE_INSTALL_PREFIX'. @@ -304,9 +302,6 @@ Build Configuration Reference +FF_INSTALL_USERDFOAM_PATH+:: Installation path of the Ensight plug-in. If not absolute, it is relative to 'CMAKE_INSTALL_PREFIX'. -+EXECUTABLE_PREFIX+:: - Prefix which get prepended to the name of the executables. This defaults to - 'ff_' and serves the disambiguation of names. +FF_USE_GAMMA+:: If enabled, FreeFOAM will use the GAMMA parallel communications library. +FF_USE_MPI+:: diff --git a/INSTALL.html b/INSTALL.html index 645b75731..ed2b37d19 100644 --- a/INSTALL.html +++ b/INSTALL.html @@ -3,7 +3,7 @@ - + FreeFOAM Installation Instructions for Version 0.1.0rc4