2010-05-12 13:27:55 +00:00
|
|
|
#----------------------------------*-sh-*--------------------------------------
|
|
|
|
# ========= |
|
2013-12-11 16:09:41 +00:00
|
|
|
# \\ / F ield | foam-extend: Open Source CFD
|
2018-05-29 07:35:20 +00:00
|
|
|
# \\ / O peration | Version: 4.1
|
2015-05-17 13:32:07 +00:00
|
|
|
# \\ / A nd | Web: http://www.foam-extend.org
|
|
|
|
# \\/ M anipulation | For copyright notice see file Copyright
|
2010-05-12 13:27:55 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# License
|
2013-12-11 16:09:41 +00:00
|
|
|
# This file is part of foam-extend.
|
2010-05-12 13:27:55 +00:00
|
|
|
#
|
2013-12-11 16:09:41 +00:00
|
|
|
# foam-extend is free software: you can redistribute it and/or modify it
|
2010-05-12 13:27:55 +00:00
|
|
|
# under the terms of the GNU General Public License as published by the
|
2013-12-11 16:09:41 +00:00
|
|
|
# Free Software Foundation, either version 3 of the License, or (at your
|
2010-05-12 13:27:55 +00:00
|
|
|
# option) any later version.
|
|
|
|
#
|
2013-12-11 16:09:41 +00:00
|
|
|
# foam-extend is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# General Public License for more details.
|
2010-05-12 13:27:55 +00:00
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2013-12-11 16:09:41 +00:00
|
|
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
2010-05-12 13:27:55 +00:00
|
|
|
#
|
|
|
|
# Script
|
|
|
|
# etc/settings.csh
|
|
|
|
#
|
|
|
|
# Description
|
2015-04-23 12:51:07 +00:00
|
|
|
# Startup file for FOAM
|
|
|
|
# Sourced from FOAM-??/etc/cshrc
|
2010-05-12 13:27:55 +00:00
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# prefix to PATH
|
|
|
|
alias _foamAddPath 'set path=(\!* $path)'
|
|
|
|
# prefix to LD_LIBRARY_PATH
|
|
|
|
alias _foamAddLib 'setenv LD_LIBRARY_PATH \!*\:${LD_LIBRARY_PATH}'
|
|
|
|
|
|
|
|
# location of the jobControl directory
|
2010-12-27 11:49:41 +00:00
|
|
|
setenv FOAM_JOB_DIR $WM_PROJECT_INST_DIR/jobControl
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
# wmake configuration
|
|
|
|
setenv WM_DIR $WM_PROJECT_DIR/wmake
|
|
|
|
setenv WM_LINK_LANGUAGE c++
|
|
|
|
setenv WM_OPTIONS $WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_COMPILE_OPTION
|
|
|
|
set path=($WM_DIR $path)
|
|
|
|
|
|
|
|
# base configuration
|
|
|
|
setenv FOAM_APP $WM_PROJECT_DIR/applications
|
2010-12-27 11:49:41 +00:00
|
|
|
setenv FOAM_APPBIN $WM_PROJECT_DIR/applications/bin/$WM_OPTIONS
|
2010-05-17 13:51:21 +00:00
|
|
|
setenv FOAM_LIB $WM_PROJECT_DIR/lib
|
|
|
|
setenv FOAM_LIBBIN $WM_PROJECT_DIR/lib/$WM_OPTIONS
|
|
|
|
setenv FOAM_SRC $WM_PROJECT_DIR/src
|
|
|
|
|
2015-04-23 12:51:07 +00:00
|
|
|
# shared site configuration - similar naming convention as ~FOAM expansion
|
2015-09-03 16:53:54 +00:00
|
|
|
setenv FOAM_SITE_DIR $WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION
|
|
|
|
setenv FOAM_SITE_APPBIN $FOAM_SITE_DIR/bin/$WM_OPTIONS
|
|
|
|
setenv FOAM_SITE_LIBBIN $FOAM_SITE_DIR/lib/$WM_OPTIONS
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
# user configuration
|
2010-12-27 11:49:41 +00:00
|
|
|
setenv FOAM_USER_APPBIN $WM_PROJECT_USER_DIR/applications/bin/$WM_OPTIONS
|
|
|
|
setenv FOAM_USER_LIBBIN $WM_PROJECT_USER_DIR/lib/$WM_OPTIONS
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
# convenience
|
|
|
|
setenv FOAM_TUTORIALS $WM_PROJECT_DIR/tutorials
|
|
|
|
setenv FOAM_UTILITIES $FOAM_APP/utilities
|
|
|
|
setenv FOAM_SOLVERS $FOAM_APP/solvers
|
|
|
|
setenv FOAM_RUN $WM_PROJECT_USER_DIR/run
|
2015-09-15 21:24:30 +00:00
|
|
|
setenv FOAM_TEST_HARNESS_DIR $WM_PROJECT_DIR/testHarness/foam-extend/$WM_PROJECT_VERSION
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2015-04-23 12:51:07 +00:00
|
|
|
# add FOAM scripts and wmake to the path
|
2010-05-12 13:27:55 +00:00
|
|
|
set path=($WM_DIR $WM_PROJECT_DIR/bin $path)
|
|
|
|
|
|
|
|
_foamAddPath $FOAM_APPBIN
|
2010-05-17 13:51:21 +00:00
|
|
|
_foamAddPath $FOAM_SITE_APPBIN
|
2010-05-12 13:27:55 +00:00
|
|
|
_foamAddPath $FOAM_USER_APPBIN
|
2010-05-17 13:51:21 +00:00
|
|
|
# Make sure to pick up dummy versions of external libraries last
|
|
|
|
_foamAddLib $FOAM_LIBBIN/dummy
|
2010-05-12 13:27:55 +00:00
|
|
|
_foamAddLib $FOAM_LIBBIN
|
2010-05-17 13:51:21 +00:00
|
|
|
_foamAddLib $FOAM_SITE_LIBBIN
|
2010-05-12 13:27:55 +00:00
|
|
|
_foamAddLib $FOAM_USER_LIBBIN
|
|
|
|
|
|
|
|
|
|
|
|
# Select compiler installation
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2015-04-23 12:51:07 +00:00
|
|
|
# compilerInstall = FOAM | System
|
|
|
|
#set compilerInstall=FOAM
|
2011-05-28 14:07:46 +00:00
|
|
|
#set compilerInstall=System
|
|
|
|
if ( ! $?compilerInstall ) then
|
|
|
|
setenv compilerInstall System
|
|
|
|
endif
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
switch ("$compilerInstall")
|
2015-04-23 12:51:07 +00:00
|
|
|
case FOAM:
|
2010-05-12 13:27:55 +00:00
|
|
|
switch ("$WM_COMPILER")
|
|
|
|
case Gcc:
|
2015-04-23 12:51:07 +00:00
|
|
|
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.6.4/platforms/$WM_OPTIONS
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.1.2/platforms/$WM_OPTIONS/etc/gmp-5.1.2.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.1.2/platforms/$WM_OPTIONS/etc/mpfr-3.1.2.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-1.0.1/platforms/$WM_OPTIONS/etc/mpc-1.0.1.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.6.4/platforms/$WM_OPTIONS/etc/gcc-4.6.4.csh
|
|
|
|
breaksw
|
|
|
|
case Gcc49:
|
|
|
|
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.9.2/platforms/$WM_OPTIONS/etc/gcc-4.9.2.csh
|
|
|
|
breaksw
|
2015-10-11 11:57:33 +00:00
|
|
|
case Gcc48:
|
|
|
|
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.8.4/platforms/$WM_OPTIONS
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.8.4/platforms/$WM_OPTIONS/etc/gcc-4.8.4.csh
|
|
|
|
breaksw
|
2015-04-23 12:51:07 +00:00
|
|
|
case Gcc47:
|
|
|
|
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.7.4/platforms/$WM_OPTIONS
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.1.2/platforms/$WM_OPTIONS/etc/gmp-5.1.2.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.1.2/platforms/$WM_OPTIONS/etc/mpfr-3.1.2.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-1.0.1/platforms/$WM_OPTIONS/etc/mpc-1.0.1.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.7.4/platforms/$WM_OPTIONS/etc/gcc-4.7.4.csh
|
2010-05-17 13:51:21 +00:00
|
|
|
breaksw
|
2012-06-11 01:27:30 +00:00
|
|
|
case Gcc45:
|
|
|
|
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS
|
2015-04-23 12:51:07 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-0.8.2/platforms/$WM_OPTIONS/etc/mpc-0.8.2.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS/etc/gcc-4.5.1.csh
|
2012-06-11 01:27:30 +00:00
|
|
|
breaksw
|
2011-05-28 14:07:46 +00:00
|
|
|
case Gcc44:
|
2013-10-10 09:47:38 +00:00
|
|
|
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.4.5/platforms/$WM_OPTIONS
|
2015-04-23 12:51:07 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.4.5/platforms/$WM_OPTIONS/etc/gcc-4.4.5.csh
|
2010-05-12 13:27:55 +00:00
|
|
|
breaksw
|
|
|
|
endsw
|
|
|
|
|
|
|
|
# Check that the compiler directory can be found
|
|
|
|
if ( ! -d "$WM_COMPILER_DIR" ) then
|
|
|
|
echo
|
|
|
|
echo "Warning in $WM_PROJECT_DIR/etc/settings.csh:"
|
|
|
|
echo " Cannot find $WM_COMPILER_DIR installation."
|
|
|
|
echo " Please install this compiler version or if you wish to use the system compiler,"
|
|
|
|
echo " change the 'compilerInstall' setting to 'System' in this file"
|
|
|
|
echo
|
|
|
|
endif
|
|
|
|
|
|
|
|
_foamAddPath ${WM_COMPILER_DIR}/bin
|
|
|
|
_foamAddLib ${WM_COMPILER_DIR}/lib${WM_COMPILER_LIB_ARCH}
|
|
|
|
_foamAddLib ${WM_COMPILER_DIR}/lib
|
|
|
|
|
|
|
|
breaksw
|
|
|
|
endsw
|
|
|
|
|
|
|
|
|
2010-08-30 17:57:22 +00:00
|
|
|
switch ("$WM_COMPILER")
|
2011-05-28 14:07:46 +00:00
|
|
|
case Gcc*:
|
2010-08-30 17:57:22 +00:00
|
|
|
setenv WM_CC 'gcc'
|
|
|
|
setenv WM_CXX 'g++'
|
|
|
|
breaksw
|
|
|
|
case Icc:
|
|
|
|
setenv WM_CC 'icc'
|
|
|
|
setenv WM_CXX 'icpc'
|
|
|
|
breaksw
|
|
|
|
endsw
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
# Communications library
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
unset MPI_ARCH_PATH
|
|
|
|
|
2010-12-12 22:16:30 +00:00
|
|
|
set mpi_version=unknown
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
switch ("$WM_MPLIB")
|
|
|
|
case OPENMPI:
|
2018-06-26 02:59:38 +00:00
|
|
|
if ($?WM_THIRD_PARTY_USE_OPENMPI_310 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-3.1.0/platforms/$WM_OPTIONS ) then
|
|
|
|
set mpi_version=openmpi-3.1.0
|
|
|
|
|
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
|
|
|
echo "Using openmpi-3.1.0 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
|
|
|
|
endif
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
|
|
|
|
|
|
|
else if ($?WM_THIRD_PARTY_USE_OPENMPI_188 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-1.8.8/platforms/$WM_OPTIONS ) then
|
2015-08-06 08:55:24 +00:00
|
|
|
set mpi_version=openmpi-1.8.8
|
2015-05-15 12:48:09 +00:00
|
|
|
|
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
2015-08-06 08:55:24 +00:00
|
|
|
echo "Using openmpi-1.8.8 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
|
2015-05-15 12:48:09 +00:00
|
|
|
endif
|
2017-01-10 18:25:44 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
2015-05-15 12:48:09 +00:00
|
|
|
|
|
|
|
else if ($?WM_THIRD_PARTY_USE_OPENMPI_165 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-1.6.5/platforms/$WM_OPTIONS ) then
|
2013-10-23 15:22:29 +00:00
|
|
|
set mpi_version=openmpi-1.6.5
|
2013-07-05 14:30:22 +00:00
|
|
|
|
2013-07-18 01:43:15 +00:00
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
2013-10-23 15:22:29 +00:00
|
|
|
echo "Using openmpi-1.6.5 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
|
2013-07-05 14:30:22 +00:00
|
|
|
endif
|
2017-01-10 18:25:44 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
2013-07-05 14:30:22 +00:00
|
|
|
|
2015-05-15 12:48:09 +00:00
|
|
|
else if ($?WM_THIRD_PARTY_USE_OPENMPI_143 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-1.4.3/platforms/$WM_OPTIONS ) then
|
2013-07-18 01:43:15 +00:00
|
|
|
set mpi_version=openmpi-1.4.3
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2013-07-18 01:43:15 +00:00
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
2010-12-09 02:28:32 +00:00
|
|
|
echo "Using openmpi-1.4.3 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
|
|
|
|
endif
|
2017-01-10 18:25:44 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2015-05-15 12:48:09 +00:00
|
|
|
else if ($?WM_THIRD_PARTY_USE_OPENMPI_143 != 0 && -d $WM_THIRD_PARTY_DIR/packages/openmpi-1.5/platforms/$WM_OPTIONS ) then
|
2013-07-18 01:43:15 +00:00
|
|
|
set mpi_version=openmpi-1.5
|
2010-11-24 05:49:05 +00:00
|
|
|
|
2013-07-18 01:43:15 +00:00
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
2010-12-09 02:28:32 +00:00
|
|
|
echo "Using openmpi-1.5 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
|
|
|
|
endif
|
2017-01-10 18:25:44 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
|
2010-11-24 05:49:05 +00:00
|
|
|
endif
|
2010-12-09 02:28:32 +00:00
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
unset mpi_version
|
|
|
|
breaksw
|
|
|
|
|
2010-05-17 13:51:21 +00:00
|
|
|
case SYSTEMOPENMPI:
|
2010-12-09 02:28:32 +00:00
|
|
|
set mpi_version=openmpi-system
|
2010-05-12 13:27:55 +00:00
|
|
|
|
2013-07-06 17:52:14 +00:00
|
|
|
# make sure not the "old" mpi is used
|
2010-12-09 02:28:32 +00:00
|
|
|
# Not sure if this is necessary anymore.
|
|
|
|
# export OPAL_PREFIX=
|
|
|
|
|
|
|
|
# Make sure OPENMPI_BIN_DIR is set and valid
|
2013-07-06 17:52:14 +00:00
|
|
|
if ($?OPENMPI_BIN_DIR != 0 ) then
|
2010-12-09 02:28:32 +00:00
|
|
|
if (-d "${OPENMPI_BIN_DIR}" ) then
|
2013-07-18 01:43:15 +00:00
|
|
|
# User defined value specified for OPENMPI_BIN_DIR
|
|
|
|
#
|
|
|
|
# WARNING:
|
|
|
|
# We assume this path specified by $OPENMPI_BIN_DIR is valid
|
|
|
|
# We assume the command mpicc is located somewhere under this path
|
|
|
|
# We assume the file mpi.h is located somewhere under this path
|
|
|
|
#
|
2010-12-09 02:28:32 +00:00
|
|
|
# Otherwise, please double check your openmpi installation, you are
|
2013-07-18 01:43:15 +00:00
|
|
|
# probably missing the openmpi runtime and/or development packages
|
|
|
|
# available for your system.
|
|
|
|
#
|
|
|
|
_foamAddPath $OPENMPI_BIN_DIR
|
2010-12-09 02:28:32 +00:00
|
|
|
endif
|
|
|
|
else
|
2013-07-18 01:43:15 +00:00
|
|
|
# Here, we assume your environment is already set for running
|
2013-10-11 13:12:56 +00:00
|
|
|
# and developing with openmpi.
|
2013-07-18 01:43:15 +00:00
|
|
|
#
|
|
|
|
# Initialize OPENMPI_BIN_DIR using the path to mpicc
|
2010-12-09 02:28:32 +00:00
|
|
|
set mpicc_cmd=`which mpicc`
|
2013-10-11 13:12:56 +00:00
|
|
|
setenv OPENMPI_BIN_DIR `dirname $mpicc_cmd`
|
2010-12-09 02:28:32 +00:00
|
|
|
unset mpicc_cmd
|
|
|
|
endif
|
2010-05-17 13:51:21 +00:00
|
|
|
|
2010-12-09 02:28:32 +00:00
|
|
|
# Make sure OPENMPI_LIB_DIR is set
|
|
|
|
if ( $?OPENMPI_LIB_DIR == 0 ) then
|
2013-07-18 01:43:15 +00:00
|
|
|
# Initialize OPENMPI_LIB_DIR using the path to mpicc
|
|
|
|
setenv OPENMPI_LIB_DIR "`mpicc --showme:libdirs`"
|
2010-12-09 02:28:32 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Make sure the dynamic libraries are accessible
|
|
|
|
if( $?OPENMPI_LIB_DIR != 0 ) then
|
|
|
|
_foamAddLib $OPENMPI_LIB_DIR
|
|
|
|
endif
|
|
|
|
|
|
|
|
setenv MPI_HOME `dirname $OPENMPI_BIN_DIR`
|
|
|
|
setenv MPI_ARCH_PATH $MPI_HOME
|
|
|
|
setenv OPAL_PREFIX $MPI_ARCH_PATH
|
|
|
|
|
|
|
|
# We initialize the rest of the environment using mpicc --showme:
|
|
|
|
if ($?OPENMPI_INCLUDE_DIR == 0) then
|
|
|
|
setenv OPENMPI_INCLUDE_DIR "`mpicc --showme:incdirs`"
|
|
|
|
endif
|
|
|
|
|
|
|
|
if (${?OPENMPI_COMPILE_FLAGS} == 0) then
|
|
|
|
setenv OPENMPI_COMPILE_FLAGS "`mpicc --showme:compile`"
|
|
|
|
endif
|
|
|
|
|
|
|
|
if (${?OPENMPI_COMPILE_FLAGS} == 0) then
|
|
|
|
setenv OPENMPI_COMPILE_FLAGS "`mpicc --showme:compile`"
|
|
|
|
endif
|
|
|
|
|
|
|
|
if (${?OPENMPI_LINK_FLAGS} == 0) then
|
|
|
|
setenv OPENMPI_LINK_FLAGS "`mpicc --showme:link`"
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# WARNING: We assume the file mpi.h will be available under the directories identified
|
|
|
|
# by the variable $OPENMPI_INCLUDE_DIR. Otherwise, please double check your
|
|
|
|
# system openmpi installation.
|
2010-05-17 13:51:21 +00:00
|
|
|
|
|
|
|
# Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI
|
2010-12-09 02:28:32 +00:00
|
|
|
setenv PINC "$OPENMPI_COMPILE_FLAGS"
|
|
|
|
setenv PLIBS "$OPENMPI_LINK_FLAGS"
|
|
|
|
|
|
|
|
# No longer needed, but we keep this as a reference, just in case...
|
|
|
|
#libDir `echo "$PLIBS" | sed -e 's/.*-L\([^ ]*\).*/\1/'`
|
|
|
|
#_foamAddLib $libDir
|
2010-05-17 13:51:21 +00:00
|
|
|
|
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
2010-12-09 02:28:32 +00:00
|
|
|
echo "Using system installed OpenMPI:"
|
|
|
|
echo " OPENMPI_BIN_DIR : $OPENMPI_BIN_DIR"
|
|
|
|
echo " OPENMPI_LIB_DIR : $OPENMPI_LIB_DIR"
|
|
|
|
echo " OPENMPI_INCLUDE_DIR : $OPENMPI_INCLUDE_DIR"
|
|
|
|
echo " OPENMPI_COMPILE_FLAGS : $OPENMPI_COMPILE_FLAGS"
|
|
|
|
echo " OPENMPI_LINK_FLAGS : $OPENMPI_LINK_FLAGS"
|
|
|
|
echo ""
|
|
|
|
echo " MPI_HOME : $MPI_HOME"
|
|
|
|
echo " MPI_ARCH_PATH : $MPI_ARCH_PATH"
|
|
|
|
echo " OPAL_PREFIX : $OPAL_PREFIX"
|
|
|
|
echo " PINC : $PINC"
|
|
|
|
echo " PLIBS : $PLIBS"
|
2010-05-17 13:51:21 +00:00
|
|
|
endif
|
|
|
|
|
2010-12-09 02:28:32 +00:00
|
|
|
unset mpi_version
|
2010-05-12 13:27:55 +00:00
|
|
|
breaksw
|
|
|
|
|
2014-03-05 16:46:16 +00:00
|
|
|
case MVAPICH2:
|
2017-01-11 10:46:26 +00:00
|
|
|
set mpi_version=mvapich2
|
|
|
|
|
|
|
|
if ($?MVAPICH2_BIN_DIR != 0) then
|
|
|
|
if (-d "${MVAPICH2_BIN_DIR}" ) then
|
|
|
|
_foamAddPath $MVAPICH2_BIN_DIR
|
2014-03-05 16:46:16 +00:00
|
|
|
endif
|
2017-01-11 10:46:26 +00:00
|
|
|
else
|
|
|
|
set mpicc_cmd=`which mpicc`
|
|
|
|
setenv MVAPICH2_BIN_DIR `dirname $mpicc_cmd`
|
|
|
|
unset mpicc_cmd
|
|
|
|
endif
|
2014-03-05 16:46:16 +00:00
|
|
|
|
|
|
|
setenv MPI_HOME `dirname $MVAPICH2_BIN_DIR`
|
|
|
|
setenv MPI_ARCH_PATH $MPI_HOME
|
|
|
|
|
|
|
|
setenv PINC "`mpicc -show -cc= -nativelinking`"
|
|
|
|
setenv PLIBS "`mpicc -show -cc= | sed "s%$PINC%%"`"
|
|
|
|
|
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
|
|
|
echo " Environment variables defined for MVAPICH2:"
|
|
|
|
echo " MPI_ARCH_PATH : $MPI_ARCH_PATH"
|
|
|
|
echo " PINC : $PINC"
|
|
|
|
echo " PLIBS : $PLIBS"
|
|
|
|
endif
|
|
|
|
|
|
|
|
unset mpi_version
|
|
|
|
breaksw
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
case MPICH:
|
|
|
|
set mpi_version=mpich-1.2.4
|
|
|
|
setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
|
|
|
|
setenv MPI_ARCH_PATH $MPI_HOME/platforms/$WM_OPTIONS
|
|
|
|
setenv MPICH_ROOT $MPI_ARCH_PATH
|
|
|
|
|
|
|
|
_foamAddPath $MPI_ARCH_PATH/bin
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib
|
|
|
|
|
|
|
|
unset mpi_version
|
|
|
|
breaksw
|
|
|
|
|
|
|
|
case MPICH-GM:
|
|
|
|
setenv MPI_ARCH_PATH /opt/mpi
|
|
|
|
setenv MPICH_PATH $MPI_ARCH_PATH
|
|
|
|
setenv MPICH_ROOT $MPI_ARCH_PATH
|
|
|
|
setenv GM_LIB_PATH /opt/gm/lib64
|
|
|
|
|
|
|
|
_foamAddPath $MPI_ARCH_PATH/bin
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib
|
|
|
|
_foamAddLib $GM_LIB_PATH
|
|
|
|
breaksw
|
|
|
|
|
|
|
|
case HPMPI:
|
|
|
|
setenv MPI_HOME /opt/hpmpi
|
|
|
|
setenv MPI_ARCH_PATH $MPI_HOME
|
|
|
|
setenv MPICH_ROOT=$MPI_ARCH_PATH
|
|
|
|
|
|
|
|
_foamAddPath $MPI_ARCH_PATH/bin
|
|
|
|
|
|
|
|
switch (`uname -m`)
|
|
|
|
case i686:
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib/linux_ia32
|
|
|
|
breaksw
|
|
|
|
case x86_64:
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib/linux_amd64
|
|
|
|
breaksw
|
|
|
|
case ia64:
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib/linux_ia64
|
|
|
|
breaksw
|
|
|
|
default:
|
|
|
|
echo Unknown processor type `uname -m` for Linux
|
|
|
|
breaksw
|
|
|
|
endsw
|
|
|
|
breaksw
|
|
|
|
|
|
|
|
case GAMMA:
|
|
|
|
setenv MPI_ARCH_PATH /usr
|
|
|
|
breaksw
|
|
|
|
|
|
|
|
case MPI:
|
|
|
|
setenv MPI_ARCH_PATH /opt/mpi
|
|
|
|
breaksw
|
|
|
|
|
|
|
|
case FJMPI:
|
|
|
|
setenv MPI_ARCH_PATH /opt/FJSVmpi2
|
|
|
|
_foamAddPath $MPI_ARCH_PATH/bin
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib/sparcv9
|
|
|
|
_foamAddLib /opt/FSUNf90/lib/sparcv9
|
|
|
|
_foamAddLib /opt/FJSVpnidt/lib
|
|
|
|
breaksw
|
|
|
|
|
|
|
|
case QSMPI:
|
|
|
|
setenv MPI_ARCH_PATH /usr/lib/mpi
|
|
|
|
_foamAddPath $MPI_ARCH_PATH/bin
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib
|
|
|
|
|
|
|
|
breaksw
|
|
|
|
|
2015-08-10 15:11:10 +00:00
|
|
|
case SGIMPI:
|
|
|
|
if ( ! $?MPI_ROOT) setenv MPI_ROOT /dummy
|
|
|
|
|
|
|
|
if ( ! -d "$MPI_ROOT" ) then
|
|
|
|
echo "Warning in $WM_PROJECT_DIR/etc/config/settings.csh:"
|
|
|
|
echo " MPI_ROOT not a valid mpt installation directory."
|
|
|
|
echo " Please set MPI_ROOT to the mpt installation directory."
|
|
|
|
echo " (usually done by loading the mpt module)"
|
|
|
|
echo " MPI_ROOT currently set to '$MPI_ROOT'"
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ( "${MPI_ROOT:h}/" == $MPI_ROOT ) then
|
|
|
|
setenv MPI_ROOT ${MPI_ROOT:h}
|
|
|
|
endif
|
|
|
|
|
|
|
|
setenv FOAM_MPI ${MPI_ROOT:t}
|
|
|
|
setenv MPI_ARCH_PATH $MPI_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
|
|
|
echo "Using SGI MPT:"
|
|
|
|
echo " MPI_ROOT : $MPI_ROOT"
|
|
|
|
echo " FOAM_MPI : $FOAM_MPI"
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
_foamAddPath $MPI_ARCH_PATH/bin
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib
|
|
|
|
breaksw
|
|
|
|
|
|
|
|
case INTELMPI:
|
|
|
|
if ( ! $?MPI_ROOT) setenv MPI_ROOT /dummy
|
|
|
|
|
|
|
|
if ( ! -d "$MPI_ROOT" ) then
|
|
|
|
echo "Warning in $WM_PROJECT_DIR/etc/config/settings.csh:"
|
|
|
|
echo " MPI_ROOT not a valid mpt installation directory."
|
|
|
|
echo " Please set MPI_ROOT to the mpt installation directory."
|
|
|
|
echo " (usually done by loading the mpt module)"
|
|
|
|
echo " MPI_ROOT currently set to '$MPI_ROOT'"
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ( "${MPI_ROOT:h}/" == $MPI_ROOT ) then
|
|
|
|
setenv MPI_ROOT ${MPI_ROOT:h}
|
|
|
|
endif
|
|
|
|
|
|
|
|
setenv FOAM_MPI ${MPI_ROOT:t}
|
|
|
|
setenv MPI_ARCH_PATH $MPI_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
if ($?FOAM_VERBOSE && $?prompt) then
|
|
|
|
echo "Using INTEL MPT:"
|
|
|
|
echo " MPI_ROOT : $MPI_ROOT"
|
|
|
|
echo " FOAM_MPI : $FOAM_MPI"
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
_foamAddPath $MPI_ARCH_PATH/bin64
|
|
|
|
_foamAddLib $MPI_ARCH_PATH/lib64
|
|
|
|
breaksw
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
default:
|
|
|
|
breaksw
|
|
|
|
endsw
|
|
|
|
|
|
|
|
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
set minBufferSize=20000000
|
|
|
|
|
|
|
|
if ( $?MPI_BUFFER_SIZE ) then
|
|
|
|
if ( $MPI_BUFFER_SIZE < $minBufferSize ) then
|
|
|
|
setenv MPI_BUFFER_SIZE $minBufferSize
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
setenv MPI_BUFFER_SIZE $minBufferSize
|
|
|
|
endif
|
|
|
|
|
2013-10-11 13:12:56 +00:00
|
|
|
# CUDA library
|
|
|
|
# ~~~~~~~~~~~~
|
|
|
|
if ( $?CUDA_SYSTEM == 0 && -e /usr/local/cuda-5.5/bin/nvcc ) then
|
|
|
|
setenv CUDA_DIR /usr/local/cuda-5.5
|
|
|
|
setenv CUDA_BIN_DIR $CUDA_DIR/bin
|
|
|
|
setenv CUDA_LIB_DIR $CUDA_DIR/lib64
|
|
|
|
setenv CUDA_INCLUDE_DIR $CUDA_DIR/include
|
|
|
|
setenv CUDA_ARCH sm_20
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ( $?CUDA_BIN_DIR ) then
|
|
|
|
_foamAddPath $CUDA_BIN_DIR
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ( $?CUDA_LIB_DIR ) then
|
|
|
|
_foamAddLib $CUDA_LIB_DIR
|
|
|
|
endif
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
# CGAL library if available
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
if ( $?CGAL_LIB_DIR ) then
|
|
|
|
_foamAddLib $CGAL_LIB_DIR
|
|
|
|
endif
|
|
|
|
|
2010-11-24 05:49:05 +00:00
|
|
|
# Mesquite library if available
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?MESQUITE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_MESQUITE_212 != 0 && -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS ) then
|
2010-11-24 05:49:05 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS/etc/mesquite-2.1.2.csh
|
|
|
|
endif
|
2018-06-29 00:40:30 +00:00
|
|
|
if ( $?MESQUITE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_MESQUITE_230 != 0 && -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.3.0/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.3.0/platforms/$WM_OPTIONS/etc/mesquite-2.3.0.csh
|
|
|
|
endif
|
2010-11-24 05:49:05 +00:00
|
|
|
|
|
|
|
# Metis library if available
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?METIS_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_METIS_510 != 0 && -e $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS ) then
|
2013-11-26 12:00:51 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS/etc/metis-5.1.0.csh
|
2010-11-24 05:49:05 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# ParMetis library if available
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?PARMETIS_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARMETIS_403 != 0 && -e $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS ) then
|
2013-11-26 12:00:51 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS/etc/parmetis-4.0.3.csh
|
2010-11-24 05:49:05 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# ParMGridGen library if available
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?PARMGRIDGEN_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARMGRIDGEN_10 != 0 && -e $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS ) then
|
2010-11-24 05:49:05 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS/etc/ParMGridGen-1.0.csh
|
|
|
|
endif
|
|
|
|
|
2013-07-06 17:52:14 +00:00
|
|
|
# Load Libccmio library
|
2010-12-20 03:22:59 +00:00
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?LIBCCMIO_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_LIBCCMIO_261 != 0 && -e $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS ) then
|
2010-12-20 03:22:59 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS/etc/libccmio-2.6.1.csh
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2010-11-24 05:49:05 +00:00
|
|
|
# Scotch library if available
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2015-05-17 11:44:34 +00:00
|
|
|
if ( $?SCOTCH_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_SCOTCH_604 != 0 && -e $WM_THIRD_PARTY_DIR/packages/scotch-6.0.4/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/scotch-6.0.4/platforms/$WM_OPTIONS/etc/scotch-6.0.4.csh
|
|
|
|
endif
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?SCOTCH_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_SCOTCH_600 != 0 && -e $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS ) then
|
2013-11-26 12:00:51 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS/etc/scotch-6.0.0.csh
|
2010-11-24 05:49:05 +00:00
|
|
|
endif
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
# Switch on the hoard memory allocator if available
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
#if ( -f $FOAM_LIBBIN/libhoard.so ) then
|
|
|
|
# setenv LD_PRELOAD $FOAM_LIBBIN/libhoard.so:${LD_PRELOAD}
|
|
|
|
#endif
|
|
|
|
|
2010-11-24 05:49:05 +00:00
|
|
|
# Third party packages
|
|
|
|
|
|
|
|
# cmake
|
|
|
|
# ~~~~~
|
2018-06-26 02:59:38 +00:00
|
|
|
if ( $?CMAKE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_CMAKE_3114 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-3.11.4/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-3.11.4/platforms/$WM_OPTIONS/etc/cmake-3.11.4.csh
|
|
|
|
endif
|
2018-02-20 15:48:10 +00:00
|
|
|
if ( $?CMAKE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_CMAKE_332 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-3.3.2/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-3.3.2/platforms/$WM_OPTIONS/etc/cmake-3.3.2.csh
|
|
|
|
endif
|
2015-05-17 11:44:34 +00:00
|
|
|
if ( $?CMAKE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_CMAKE_322 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-3.2.2/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-3.2.2/platforms/$WM_OPTIONS/etc/cmake-3.2.2.csh
|
2010-11-24 05:49:05 +00:00
|
|
|
endif
|
2015-05-17 11:44:34 +00:00
|
|
|
if ( $?CMAKE_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_CMAKE_2812 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-2.8.12/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.12/platforms/$WM_OPTIONS/etc/cmake-2.8.12.csh
|
2015-05-15 12:48:09 +00:00
|
|
|
endif
|
|
|
|
|
2014-06-01 03:26:57 +00:00
|
|
|
# m4
|
|
|
|
# ~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?M4_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_M4_1416 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/m4-1.4.16/platforms/$WM_OPTIONS ) then
|
2014-06-01 03:26:57 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/m4-1.4.16/platforms/$WM_OPTIONS/etc/m4-1.4.16.csh
|
|
|
|
endif
|
|
|
|
|
|
|
|
# bison
|
|
|
|
# ~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?BISON_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_BISON_27 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/bison-2.7/platforms/$WM_OPTIONS ) then
|
2014-06-01 03:26:57 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/bison-2.7/platforms/$WM_OPTIONS/etc/bison-2.7.csh
|
|
|
|
endif
|
|
|
|
|
|
|
|
# flex
|
|
|
|
# ~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?FLEX_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_FLEX_2535 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/flex-2.5.35/platforms/$WM_OPTIONS ) then
|
2014-06-01 03:26:57 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/flex-2.5.35/platforms/$WM_OPTIONS/etc/flex-2.5.35.csh
|
|
|
|
endif
|
|
|
|
|
|
|
|
# zoltan
|
|
|
|
# ~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?ZOLTAN_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_ZOLTAN_35 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/zoltan-3.5/platforms/$WM_OPTIONS ) then
|
2014-06-01 03:26:57 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/zoltan-3.5/platforms/$WM_OPTIONS/etc/zoltan-3.5.csh
|
|
|
|
endif
|
|
|
|
|
2010-11-24 05:49:05 +00:00
|
|
|
# Python
|
|
|
|
# ~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?PYTHON_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PYTHON_27 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/Python-2.7/platforms/$WM_OPTIONS ) then
|
2010-11-24 05:49:05 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/Python-2.7/platforms/$WM_OPTIONS/etc/Python-2.7.csh
|
|
|
|
endif
|
|
|
|
|
2012-04-11 04:03:09 +00:00
|
|
|
# PyFoam
|
|
|
|
# ~~~~~~
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?PYFOAM_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PYFOAM_063 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/PyFoam-0.6.3/platforms/noarch ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.3/platforms/noarch/etc/PyFoam-0.6.3.csh
|
|
|
|
endif
|
2016-11-18 13:04:12 +00:00
|
|
|
if ( $?PYFOAM_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PYFOAM_064 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/PyFoam-0.6.4/platforms/noarch ) then
|
2014-11-24 20:29:09 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.4/platforms/noarch/etc/PyFoam-0.6.4.csh
|
2012-04-11 04:03:09 +00:00
|
|
|
endif
|
2018-06-28 02:56:01 +00:00
|
|
|
if ( $?PYFOAM_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PYFOAM_066 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/PyFoam-0.6.6/platforms/noarch ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.6/platforms/noarch/etc/PyFoam-0.6.6.csh
|
|
|
|
endif
|
|
|
|
if ( $?PYFOAM_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PYFOAM_069 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/PyFoam-0.6.9/platforms/noarch ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.9/platforms/noarch/etc/PyFoam-0.6.9.csh
|
|
|
|
endif
|
2012-04-11 04:03:09 +00:00
|
|
|
|
2013-07-07 16:59:07 +00:00
|
|
|
# hwloc
|
|
|
|
# ~~~~~
|
2018-06-27 22:40:28 +00:00
|
|
|
if ( $?HWLOC_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_HWLOC_201 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/hwloc-2.0.1/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/hwloc-2.0.1/platforms/$WM_OPTIONS/etc/hwloc-2.0.1.csh
|
|
|
|
endif
|
2015-05-17 11:44:34 +00:00
|
|
|
if ( $?HWLOC_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_HWLOC_1101 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/hwloc-1.10.1/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/hwloc-1.10.1/platforms/$WM_OPTIONS/etc/hwloc-1.10.1.csh
|
|
|
|
endif
|
2016-11-18 13:04:12 +00:00
|
|
|
if ( $?HWLOC_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_HWLOC_172 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/hwloc-1.7.2/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/hwloc-1.7.2/platforms/$WM_OPTIONS/etc/hwloc-1.7.2.csh
|
|
|
|
endif
|
2013-07-07 16:59:07 +00:00
|
|
|
|
2010-11-24 05:49:05 +00:00
|
|
|
# QT
|
|
|
|
# ~~~~~
|
2018-07-01 17:16:26 +00:00
|
|
|
if ( $?QT_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_QT_5111 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-src-5.11.1/platforms/$WM_OPTIONS )then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-src-5.11.1/platforms/$WM_OPTIONS/etc/qt-everywhere-src-5.11.1.csh
|
|
|
|
endif
|
2018-02-20 15:48:10 +00:00
|
|
|
if ( $?QT_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_QT_580 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-opensource-src-5.8.0/platforms/$WM_OPTIONS )then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-5.8.0/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-5.8.0.csh
|
|
|
|
endif
|
2016-11-18 13:04:12 +00:00
|
|
|
if ( $?QT_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_QT_486 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-opensource-src-4.8.6/platforms/$WM_OPTIONS )then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.8.6/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.8.6.csh
|
2010-11-24 05:49:05 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# PARAVIEW
|
|
|
|
# ~~~~~
|
2018-07-02 00:41:56 +00:00
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_552 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-5.5.2/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-5.5.2/platforms/$WM_OPTIONS/etc/ParaView-5.5.2.csh
|
|
|
|
endif
|
2018-02-20 15:48:10 +00:00
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_541 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-5.4.1/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-5.4.1/platforms/$WM_OPTIONS/etc/ParaView-5.4.1.csh
|
|
|
|
endif
|
2016-11-18 13:04:12 +00:00
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_440 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.4.0/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.4.0/platforms/$WM_OPTIONS/etc/ParaView-4.4.0.csh
|
|
|
|
endif
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_431 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.3.1/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.3.1/platforms/$WM_OPTIONS/etc/ParaView-4.3.1.csh
|
|
|
|
endif
|
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_410 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.1.0/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.1.0/platforms/$WM_OPTIONS/etc/ParaView-4.1.0.csh
|
|
|
|
endif
|
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_401 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-4.0.1/platforms/$WM_OPTIONS ) then
|
2013-12-11 09:25:19 +00:00
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-4.0.1/platforms/$WM_OPTIONS/etc/ParaView-4.0.1.csh
|
2015-05-15 12:48:09 +00:00
|
|
|
endif
|
2016-11-18 13:04:12 +00:00
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_381 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.csh
|
|
|
|
endif
|
2015-05-15 12:48:09 +00:00
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_3141 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.14.1/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS/etc/ParaView-3.14.1.csh
|
|
|
|
endif
|
|
|
|
if ( $?PARAVIEW_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_PARAVIEW_381 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.csh
|
|
|
|
endif
|
2010-11-24 05:49:05 +00:00
|
|
|
|
2016-11-18 13:04:12 +00:00
|
|
|
|
2015-05-15 12:48:09 +00:00
|
|
|
# llvm
|
|
|
|
# ~~~~~
|
|
|
|
if ( $?LLVM_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_LLVM_360 != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/llvm-3.6.0/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/llvm-3.6.0/platforms/$WM_OPTIONS/etc/llvm-3.6.0.csh
|
2013-07-03 17:34:16 +00:00
|
|
|
endif
|
2012-04-22 20:25:38 +00:00
|
|
|
|
2015-05-15 12:48:09 +00:00
|
|
|
# mesa
|
|
|
|
# ~~~~~
|
|
|
|
if ( $?MESA_SYSTEM == 0 && $?WM_THIRD_PARTY_USE_MESA_GIT != 0 && -e "$WM_THIRD_PARTY_DIR"/packages/mesa-git/platforms/$WM_OPTIONS ) then
|
|
|
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mesa-git/platforms/$WM_OPTIONS/etc/mesa-git.csh
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2011-05-28 14:07:46 +00:00
|
|
|
if ( $WM_ARCH == "darwinIntel" || $WM_ARCH == "darwinIntel64" ) then
|
2010-11-24 05:49:05 +00:00
|
|
|
setenv DYLD_LIBRARY_PATH ${LD_LIBRARY_PATH}
|
|
|
|
endif
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
# cleanup environment:
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~
|
|
|
|
unalias _foamAddPath
|
|
|
|
unalias _foamAddLib
|
|
|
|
unset minBufferSize
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|