Automated merge with git+ssh://git.code.sf.net/p/openfoam-extend/OpenFOAM-1.6-ext

--HG--
branch : bgschaid/minorAdditionsBranch
This commit is contained in:
Bernhard F.W. Gschaider 2013-07-12 01:01:57 +02:00
commit 164b6639fe
5 changed files with 92 additions and 32 deletions

View file

@ -88,3 +88,13 @@ testHarness/OpenFOAM/1.6-ext/runDir/CTestTestfile.cmake
testHarness/OpenFOAM/1.6-ext/runDir/DartConfiguration.tcl testHarness/OpenFOAM/1.6-ext/runDir/DartConfiguration.tcl
testHarness/OpenFOAM/1.6-ext/runDir/Makefile testHarness/OpenFOAM/1.6-ext/runDir/Makefile
testHarness/OpenFOAM/1.6-ext/runDir/cmake_install.cmake testHarness/OpenFOAM/1.6-ext/runDir/cmake_install.cmake
# The following files are blacklisted because of a DMCA complaint by ANSYS.
src/lduSolvers/tools/PriorityArray.C
src/lduSolvers/tools/PriorityArray.H
src/lduSolvers/amg/amgPolicy/samgPolicy.C
src/lduSolvers/amg/amgPolicy/samgPolicy.H
src/lduSolvers/amg/amgPolicy/aamgPolicy.C
src/lduSolvers/amg/amgPolicy/aamgPolicy.H
# end-of-file

View file

@ -265,26 +265,74 @@ Darwin)
# We need to get rid of the revision number from this string. eg turn "10.7.5" into "10.7" # We need to get rid of the revision number from this string. eg turn "10.7.5" into "10.7"
export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion | sed -e "s/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2/g"` export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion | sed -e "s/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2/g"`
# this gives strange results with some shells
# v=(`sw_vers -productVersion | sed 's/\./ /g'`)
# export MACOSX_DEPLOYMENT_TARGET="${v[0]}.${v[1]}"
export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion | sed -e "s/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2/g"`
which -s port >/dev/null
if [ $? -eq "0" -a -d '/opt/local/etc/macports' ]
then
if [ "$FOAM_VERBOSE" -a "$PS1" ]
then
echo "Using Macports binaries"
fi
export WM_USE_MACPORT=1
if [ "$compilerInstall" == "System" ] if [ "$compilerInstall" == "System" ]
then then
# Use Mac-Ports-Compiler instead of Apple-gcc-4.2 # Use Mac-Ports-Compiler instead of Apple-gcc-4.2
case $WM_COMPILER in case $WM_COMPILER in
Gcc42)
export WM_MACPORT_VERSION=4.2
;;
Gcc43) Gcc43)
export WM_CC='gcc-mp-4.3' export WM_MACPORT_VERSION=4.3
export WM_CXX='g++-mp-4.3'
;; ;;
Gcc44) Gcc44)
export WM_CC='gcc-mp-4.4' export WM_MACPORT_VERSION=4.4
export WM_CXX='g++-mp-4.4'
;; ;;
Gcc45) Gcc45)
export WM_CC='gcc-mp-4.5' export WM_MACPORT_VERSION=4.5
export WM_CXX='g++-mp-4.5' ;;
Gcc46)
export WM_MACPORT_VERSION=4.6
;;
Gcc47)
export WM_MACPORT_VERSION=4.7
;;
Gcc48)
export WM_MACPORT_VERSION=4.8
;;
Gcc)
;; ;;
*) *)
export WM_COMPILER= echo "Unsupported MacPorts-Compiler $WM_COMPILER"
;; ;;
esac esac
if [ "$WM_COMPILER" != "Gcc" ]
then
export WM_CC="gcc-mp-$WM_MACPORT_VERSION"
export WM_CXX="g++-mp-$WM_MACPORT_VERSION"
ruleDirBase=$WM_DIR/rules/$WM_ARCH
ruleDir=$ruleDirBase$WM_COMPILER
if [ ! -e $ruleDir ]
then
echo "Rule directory $ruleDir not existing. Linking to $ruleDirBase"
ln -s $ruleDirBase $ruleDir
fi
unset ruleDir ruleDirBase
fi
fi
fi
if [ -z "$WM_CC" ]
then
# nobody set the compiler
export WM_CC="gcc"
export WM_CXX="g++"
fi fi
;; ;;

View file

@ -187,6 +187,8 @@ fi
unset compilerBin compilerLib compilerInstall unset compilerBin compilerLib compilerInstall
if [ -z "$WM_CC" ]
then
case "$WM_COMPILER" in case "$WM_COMPILER" in
Gcc*) Gcc*)
export WM_CC='gcc' export WM_CC='gcc'
@ -197,7 +199,7 @@ Icc)
export WM_CXX='icpc' export WM_CXX='icpc'
;; ;;
esac esac
fi
# Communications library # Communications library
# ~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~

View file

@ -2,7 +2,7 @@
cWARN = -Wall cWARN = -Wall
cc = gcc $(WM_CXXFLAGS) cc = $(WM_CC) $(WM_CXXFLAGS)
include $(RULES)/c$(WM_COMPILE_OPTION) include $(RULES)/c$(WM_COMPILE_OPTION)

View file

@ -2,7 +2,7 @@
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
CC = g++ $(WM_CXXFLAGS) CC = $(WM_CXX) $(WM_CXXFLAGS)
include $(RULES)/c++$(WM_COMPILE_OPTION) include $(RULES)/c++$(WM_COMPILE_OPTION)