mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
etc/config.sh/CGAL: updated
Patch contributed by Bruno Santos: - "etc/config.sh/CGAL": - Indented the contents of the recently added if block. - Added comment about using system versions. - Library paths are now only added if the respective version is not "boost-system" and "cgal-system". - "src/renumber/Allwmake": It now relies on the previous file to get the version for Boost (the same way as in "makeCGAL"). This is so that it will also build "SloanRenumber" if "boost_version" is set to "boost-system". - "applications/utilities/mesh/generation/Allwmake": It now also relies on the script "config.sh/CGAL" to get the version for CGAL. If "cgal_version" is set to "cgal-system", it will now also build "foamy*Mesh" utilities and respective libraries. Resolves report http://www.openfoam.org/mantisbt/view.php?id=1232
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Get CGAL and boost versions
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
_foamEval SOURCE_CGAL_VERSIONS_ONLY=yes \
|
||||||
|
$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL)
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake -all blockMesh
|
wmake -all blockMesh
|
||||||
@ -7,7 +13,7 @@ wmake -all extrude
|
|||||||
wmake -all extrude2DMesh
|
wmake -all extrude2DMesh
|
||||||
wmake -all snappyHexMesh
|
wmake -all snappyHexMesh
|
||||||
|
|
||||||
if [ -n "$CGAL_ARCH_PATH" ]
|
if [ -n "$CGAL_ARCH_PATH" -o "$cgal_version" = "cgal-system" ]
|
||||||
then
|
then
|
||||||
foamyMesh/Allwmake
|
foamyMesh/Allwmake
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -27,6 +27,12 @@
|
|||||||
# Description
|
# Description
|
||||||
# Setup file for CGAL (& boost) include/libraries.
|
# Setup file for CGAL (& boost) include/libraries.
|
||||||
# Sourced from OpenFOAM-<VERSION>/etc/bashrc
|
# Sourced from OpenFOAM-<VERSION>/etc/bashrc
|
||||||
|
#
|
||||||
|
# If using system-wide installations for either one, use the following
|
||||||
|
# version settings:
|
||||||
|
#
|
||||||
|
# boost_version=boost-system
|
||||||
|
# cgal_version=cgal-system
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
boost_version=boost-system
|
boost_version=boost-system
|
||||||
@ -47,12 +53,12 @@ then
|
|||||||
echo " $boost_version at $BOOST_ARCH_PATH" 1>&2
|
echo " $boost_version at $BOOST_ARCH_PATH" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$CGAL_ARCH_PATH" ]
|
if [ -d "$CGAL_ARCH_PATH" -a "$cgal_version" != "cgal-system" ]
|
||||||
then
|
then
|
||||||
_foamAddLib $CGAL_ARCH_PATH/lib
|
_foamAddLib $CGAL_ARCH_PATH/lib
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$BOOST_ARCH_PATH" ]
|
if [ -d "$BOOST_ARCH_PATH" -a "$boost_version" != "boost-system" ]
|
||||||
then
|
then
|
||||||
_foamAddLib $BOOST_ARCH_PATH/lib
|
_foamAddLib $BOOST_ARCH_PATH/lib
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -5,7 +5,12 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
targetType=libso
|
targetType=libso
|
||||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
||||||
|
|
||||||
## get ZOLTAN_ARCH_PATH
|
# Get CGAL and scotch versions
|
||||||
|
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||||
|
_foamEval SOURCE_CGAL_VERSIONS_ONLY=yes \
|
||||||
|
$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL)
|
||||||
|
|
||||||
|
## Get ZOLTAN_ARCH_PATH
|
||||||
#if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan`
|
#if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan`
|
||||||
#then
|
#then
|
||||||
# . $settings
|
# . $settings
|
||||||
@ -21,7 +26,7 @@ set -x
|
|||||||
|
|
||||||
wmake $targetType renumberMethods
|
wmake $targetType renumberMethods
|
||||||
|
|
||||||
if [ -n "$BOOST_ARCH_PATH" ]
|
if [ -n "$BOOST_ARCH_PATH" -o "$boost_version" = "boost-system" ]
|
||||||
then
|
then
|
||||||
wmake $targetType SloanRenumber
|
wmake $targetType SloanRenumber
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user