diff --git a/applications/utilities/mesh/generation/foamyMesh/Allwmake b/applications/utilities/mesh/generation/foamyMesh/Allwmake index 4090d594e41a78e8f10f6d88a1edae5367ddbb0f..85f046473cbd3b9ada96efc73eaef278e9aa5be1 100755 --- a/applications/utilities/mesh/generation/foamyMesh/Allwmake +++ b/applications/utilities/mesh/generation/foamyMesh/Allwmake @@ -4,8 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Parse arguments for library compilation . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments -if [ -d "$CGAL_ARCH_PATH/include/CGAL" ] || \ - [ "${CGAL_ARCH_PATH##*-}" = system -a -d /usr/include/CGAL ] +if [ -f "$CGAL_ARCH_PATH/include/CGAL/version.h" ] || \ + [ "${CGAL_ARCH_PATH##*-}" = system -a -f /usr/include/CGAL/version.h ] then set -x diff --git a/applications/utilities/mesh/manipulation/renumberMesh/Allwmake b/applications/utilities/mesh/manipulation/renumberMesh/Allwmake index 3acf4a1da70abac63f3b9717d3da8e308f0cd901..fae482e08b088ce26faa1f02b6e63728adb3afa8 100755 --- a/applications/utilities/mesh/manipulation/renumberMesh/Allwmake +++ b/applications/utilities/mesh/manipulation/renumberMesh/Allwmake @@ -3,7 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Parse arguments for compilation (at least for error catching) . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments -set -x export COMPILE_FLAGS='' export LINK_FLAGS='' @@ -21,6 +20,7 @@ then export LINK_FLAGS="${LINK_FLAGS} -lzoltanRenumber -L${ZOLTAN_ARCH_PATH}/lib -lzoltan" fi +set -x wmake $targetType #------------------------------------------------------------------------------ diff --git a/applications/utilities/surface/surfaceBooleanFeatures/Allwmake b/applications/utilities/surface/surfaceBooleanFeatures/Allwmake index 98d3d2035c07f8b2ae3ffe6dd6e4169edc4a4a4c..660a2e59b52039d526cc498cfab408d32a4cc953 100755 --- a/applications/utilities/surface/surfaceBooleanFeatures/Allwmake +++ b/applications/utilities/surface/surfaceBooleanFeatures/Allwmake @@ -4,8 +4,8 @@ set -x unset COMPILE_FLAGS LINK_FLAGS -if [ -d "$CGAL_ARCH_PATH/include/CGAL" ] || \ - [ "${CGAL_ARCH_PATH##*-}" = system -a -d /usr/include/CGAL ] +if [ -f "$CGAL_ARCH_PATH/include/CGAL/version.h" ] || \ + [ "${CGAL_ARCH_PATH##*-}" = system -a -f /usr/include/CGAL/version.h ] then wmake PolyhedronReader export COMPILE_FLAGS='-IPolyhedronReader' diff --git a/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/Make/options b/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/Make/options index 6603adda0ff4df4762f57ce04094904a0f32664b..424f89a8aba98e7eae709757dcc68d0a3471ec1e 100644 --- a/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/Make/options +++ b/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/Make/options @@ -1,7 +1,6 @@ EXE_NDEBUG = -DNDEBUG /* EXE_NDEBUG = -g -O0 -DFULLDEBUG */ - c++CGALWARN = -Wno-old-style-cast /*-- Define CGAL_INEXACT to use inexact CGAL constructions */ @@ -21,5 +20,5 @@ EXE_INC = \ -I/usr/include/Qt LIB_LIBS = \ - -L${CGAL_ARCH_PATH}/lib \ + -L$(CGAL_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) \ -ltriSurface diff --git a/etc/config.csh/CGAL b/etc/config.csh/CGAL index 2fd06120eb67550b22e6a5ad752a89238c22abc8..84bc71bda6099e176d517c47763a95398a6d51d4 100644 --- a/etc/config.csh/CGAL +++ b/etc/config.csh/CGAL @@ -68,12 +68,12 @@ endif set ending="${BOOST_ARCH_PATH:t}" if ( "$ending" != "boost-none" && "$ending" != "boost-system" ) then - _foamAddLib $BOOST_ARCH_PATH/lib + _foamAddLib $BOOST_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH endif set ending="${CGAL_ARCH_PATH:t}" if ( "$ending" != "cgal-none" && "$ending" != "cgal-system" ) then - _foamAddLib $CGAL_ARCH_PATH/lib + _foamAddLib $CGAL_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH endif unset boost_version cgal_version ending diff --git a/etc/config.sh/CGAL b/etc/config.sh/CGAL index e23164d2c920402a636f6921a2500c5f89461434..044327109f64ec5c4762546ff1214e3c04b2c2fb 100644 --- a/etc/config.sh/CGAL +++ b/etc/config.sh/CGAL @@ -72,13 +72,13 @@ then ending="${BOOST_ARCH_PATH##*-}" if [ "$ending" != none -a "$ending" != system ] then - _foamAddLib $BOOST_ARCH_PATH/lib + _foamAddLib $BOOST_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH fi ending="${CGAL_ARCH_PATH##*-}" if [ "$ending" != none -a "$ending" != system ] then - _foamAddLib $CGAL_ARCH_PATH/lib + _foamAddLib $CGAL_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH fi unset boost_version cgal_version ending diff --git a/src/conversion/common/reader/createPolyBoundary.C b/src/conversion/common/reader/createPolyBoundary.C index 7279b73c4135b8e98aabbd9c0ff706fd882ed027..645c90f6b5a7abed22eef3509d3ccc19b8395dec 100644 --- a/src/conversion/common/reader/createPolyBoundary.C +++ b/src/conversion/common/reader/createPolyBoundary.C @@ -439,14 +439,26 @@ Foam::meshReader::polyBoundaryPatches(const polyMesh& mesh) } dictionary& patchDict = patchDicts[patchi]; - // add but not overwrite type - patchDict.add("type", patchTypes_[patchi], false); - if (patchPhysicalTypes_.size() && patchPhysicalTypes_[patchi].size()) + // Add but not override 'type' + if (!patchDict.found("type")) { - patchDict.add("startFace", patchPhysicalTypes_[patchi], false); + patchDict.add("type", patchTypes_[patchi], false); } - // overwrite sizes and start + // Add but not override 'physicalType' but only if it differs + // from 'type' + if + ( + patchi < patchPhysicalTypes_.size() + && patchPhysicalTypes_[patchi].size() + && patchPhysicalTypes_[patchi] != patchTypes_[patchi] + && !patchDict.found("physicalType") + ) + { + patchDict.add("physicalType", patchPhysicalTypes_[patchi], false); + } + + // Overwrite sizes and start patchDict.add("nFaces", patchSizes_[patchi], true); patchDict.add("startFace", patchStarts_[patchi], true); } diff --git a/src/renumber/Allwmake b/src/renumber/Allwmake index 14191c9526787f66f030515498760be4613ae226..66d9bfd5366c8f66e74b55adda50298aafeaf50e 100755 --- a/src/renumber/Allwmake +++ b/src/renumber/Allwmake @@ -20,8 +20,8 @@ set -x wmake $targetType renumberMethods -if [ -d "$BOOST_ARCH_PATH/include/boost" ] || \ - [ "${BOOST_ARCH_PATH##*-}" = system -a -d /usr/include/boost ] +if [ -f "$BOOST_ARCH_PATH/include/boost/version.hpp" ] || \ + [ "${BOOST_ARCH_PATH##*-}" = system -a -f /usr/include/boost/version.hpp ] then wmake $targetType SloanRenumber else diff --git a/src/renumber/SloanRenumber/Make/options b/src/renumber/SloanRenumber/Make/options index cf6e548615177465eba855341de032020bd5c2b4..2c8f956a611718051304f5c066175e83e469ea3c 100644 --- a/src/renumber/SloanRenumber/Make/options +++ b/src/renumber/SloanRenumber/Make/options @@ -5,7 +5,7 @@ EXE_INC = \ -I$(LIB_SRC)/renumber/renumberMethods/lnInclude LIB_LIBS = \ - -L$(BOOST_ARCH_PATH)/lib -lboost_system \ + -L$(BOOST_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -lboost_system \ -lmeshTools \ -ldecompositionMethods \ -lrenumberMethods diff --git a/wmake/rules/General/CGAL b/wmake/rules/General/CGAL index fd1965e656e351412c3d1b34cb53e89cce56e08b..83e8b1df1e9edcf44233b08cc898d79da5ff6797 100644 --- a/wmake/rules/General/CGAL +++ b/wmake/rules/General/CGAL @@ -8,6 +8,6 @@ CGAL_INC = \ CGAL_LIBS = \ -L$(MPFR_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) \ -L$(GMP_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) \ - -L$(BOOST_ARCH_PATH)/lib \ - -L$(CGAL_ARCH_PATH)/lib \ + -L$(BOOST_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) \ + -L$(CGAL_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) \ -lCGAL