2010-10-04 12:13:26 +00:00
|
|
|
#----------------------------------*-sh-*--------------------------------------
|
|
|
|
# ========= |
|
2013-12-11 16:09:41 +00:00
|
|
|
# \\ / F ield | foam-extend: Open Source CFD
|
2016-06-20 15:00:40 +00:00
|
|
|
# \\ / O peration | Version: 4.0
|
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-10-04 12:13:26 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# License
|
2013-12-11 16:09:41 +00:00
|
|
|
# This file is part of foam-extend.
|
2010-10-04 12:13:26 +00:00
|
|
|
#
|
2013-12-11 16:09:41 +00:00
|
|
|
# foam-extend is free software: you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License as published by the
|
|
|
|
# Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
# option) any later version.
|
2010-10-04 12:13:26 +00:00
|
|
|
#
|
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-10-04 12:13:26 +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-10-04 12:13:26 +00:00
|
|
|
#
|
|
|
|
# File
|
|
|
|
# etc/prefs.sh
|
|
|
|
#
|
|
|
|
# Description
|
2015-04-23 12:51:07 +00:00
|
|
|
# Preset variables for the FOAM configuration - POSIX shell syntax.
|
2010-10-04 12:13:26 +00:00
|
|
|
#
|
2015-04-23 12:51:07 +00:00
|
|
|
# The prefs.sh file will be sourced by the FOAM etc/bashrc when it is
|
2013-12-11 16:09:41 +00:00
|
|
|
# found
|
2010-10-04 12:13:26 +00:00
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2010-12-09 02:28:32 +00:00
|
|
|
export FOAM_VERBOSE=1
|
|
|
|
|
2010-10-04 12:13:26 +00:00
|
|
|
# Specify system compiler
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~
|
2015-04-23 12:51:07 +00:00
|
|
|
#compilerInstall=System
|
|
|
|
#compilerInstall=FOAM
|
2010-10-04 12:13:26 +00:00
|
|
|
|
|
|
|
# Specify system openmpi
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
2010-12-09 02:28:32 +00:00
|
|
|
#
|
|
|
|
# Normally, you don't need to set more than these 3 env. variables
|
2013-07-07 16:59:07 +00:00
|
|
|
# The other openmpi related variables will be initialized using
|
2010-12-09 02:28:32 +00:00
|
|
|
# the command mpicc --showme:
|
|
|
|
#
|
|
|
|
#export WM_MPLIB=SYSTEMOPENMPI
|
|
|
|
#export OPENMPI_DIR=path_to_system_installed_openmpi
|
|
|
|
#export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
|
|
|
|
#
|
|
|
|
#export OPENMPI_LIB_DIR="`$OPENMPI_BIN_DIR/mpicc --showme:libdirs`"
|
|
|
|
#export OPENMPI_INCLUDE_DIR="`$OPENMPI_BIN_DIR/mpicc --showme:incdirs`"
|
|
|
|
#export OPENMPI_COMPILE_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:compile`"
|
|
|
|
#export OPENMPI_LINK_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:link`"
|
|
|
|
|
|
|
|
# Specify system installed ThirdParty packages/libraries
|
|
|
|
# NB: The packages installed under $WM_THIRD_PARTY_DIR
|
2013-07-07 16:59:07 +00:00
|
|
|
# will always override these values.
|
2010-12-09 02:28:32 +00:00
|
|
|
# So build your ThirdParty directory accordingly.
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2013-10-11 13:12:56 +00:00
|
|
|
# System installed CUDA
|
|
|
|
#export CUDA_SYSTEM=1
|
|
|
|
#export CUDA_DIR=path_to_system_installed_cuda
|
|
|
|
#export CUDA_BIN_DIR=$CUDA_DIR/bin
|
|
|
|
#export CUDA_LIB_DIR=$CUDA_DIR/lib
|
|
|
|
#export CUDA_INCLUDE_DIR=$CUDA_DIR/include
|
|
|
|
#export CUDA_ARCH=sm_20
|
|
|
|
|
2010-12-09 02:28:32 +00:00
|
|
|
# System installed Mesquite
|
|
|
|
#export MESQUITE_SYSTEM=1
|
|
|
|
#export MESQUITE_DIR=path_to_system_installed_mesquite
|
|
|
|
#export MESQUITE_BIN_DIR=$MESQUITE_DIR/bin
|
|
|
|
#export MESQUITE_LIB_DIR=$MESQUITE_DIR/lib
|
|
|
|
#export MESQUITE_INCLUDE_DIR=$MESQUITE_DIR/include
|
|
|
|
|
|
|
|
# System installed Metis
|
|
|
|
#export METIS_SYSTEM=1
|
|
|
|
#export METIS_DIR=path_to_system_installed_metis
|
|
|
|
#export METIS_BIN_DIR=$METIS_DIR/bin
|
|
|
|
#export METIS_LIB_DIR=$METIS_DIR/lib
|
|
|
|
#export METIS_INCLUDE_DIR=$METIS_DIR/include
|
|
|
|
|
|
|
|
# System installed ParMetis
|
|
|
|
#export PARMETIS_SYSTEM=1
|
|
|
|
#export PARMETIS_DIR=path_to_system_installed_parmetis
|
|
|
|
#export PARMETIS_BIN_DIR=$PARMETIS_DIR/bin
|
|
|
|
#export PARMETIS_LIB_DIR=$PARMETIS_DIR/lib
|
|
|
|
#export PARMETIS_INCLUDE_DIR=$PARMETIS_DIR/include
|
|
|
|
|
|
|
|
# System installed ParMGridgen
|
|
|
|
#export PARMGRIDGEN_SYSTEM=1
|
|
|
|
#export PARMGRIDGEN_DIR=path_to_system_installed_parmgridgen
|
|
|
|
#export PARMGRIDGEN_BIN_DIR=$PARMGRIDGEN_DIR/bin
|
|
|
|
#export PARMGRIDGEN_LIB_DIR=$PARMGRIDGEN_DIR/lib
|
|
|
|
#export PARMGRIDGEN_INCLUDE_DIR=$PARMGRIDGEN_DIR/include
|
|
|
|
|
2010-12-20 03:22:59 +00:00
|
|
|
# System installed Libccmio
|
|
|
|
#export LIBCCMIO_SYSTEM=1
|
|
|
|
#export LIBCCMIO_DIR=path_to_system_installed_libccmio
|
|
|
|
#export LIBCCMIO_BIN_DIR=$LIBCCMIO_DIR/bin
|
|
|
|
#export LIBCCMIO_LIB_DIR=$LIBCCMIO_DIR/lib
|
|
|
|
#export LIBCCMIO_INCLUDE_DIR=$LIBCCMIO_DIR/include
|
|
|
|
|
2010-12-09 02:28:32 +00:00
|
|
|
# System installed Scotch
|
|
|
|
#export SCOTCH_SYSTEM=1
|
|
|
|
#export SCOTCH_DIR=path_to_system_installed_scotch
|
|
|
|
#export SCOTCH_BIN_DIR=$SCOTCH_DIR/bin
|
|
|
|
#export SCOTCH_LIB_DIR=$SCOTCH_DIR/lib
|
|
|
|
#export SCOTCH_INCLUDE_DIR=$SCOTCH_DIR/include
|
|
|
|
|
|
|
|
# System installed CMake
|
|
|
|
#export CMAKE_SYSTEM=1
|
|
|
|
#export CMAKE_DIR=path_to_system_installed_cmake
|
|
|
|
#export CMAKE_BIN_DIR=$CMAKE_DIR/bin
|
|
|
|
|
|
|
|
# System installed Python
|
|
|
|
#export PYTHON_SYSTEM=1
|
|
|
|
#export PYTHON_DIR=path_to_system_installed_python
|
|
|
|
#export PYTHON_BIN_DIR=$PYTHON_DIR/bin
|
|
|
|
|
2013-07-07 16:59:07 +00:00
|
|
|
# System installed PyFoam
|
|
|
|
#export PYFOAM_SYSTEM=1
|
|
|
|
#export PYFOAM_DIR=path_to_system_installed_python
|
|
|
|
#export PYFOAM_BIN_DIR=$PYFOAM_DIR/bin
|
|
|
|
|
|
|
|
# System installed hwloc
|
|
|
|
#export HWLOC_SYSTEM=1
|
|
|
|
#export HWLOC_DIR=path_to_system_installed_hwloc
|
|
|
|
#export HWLOC_BIN_DIR=$HWLOC_DIR/bin
|
|
|
|
|
2010-12-09 02:28:32 +00:00
|
|
|
# System installed Qt
|
|
|
|
# This is the only package we assume is system installed by default.
|
|
|
|
# So we don't use a variable called QT_SYSTEM, but instead a variable
|
|
|
|
# called QT_THIRD_PARTY in order to override to the ThirdParty QT
|
|
|
|
# package.
|
2010-12-16 01:26:41 +00:00
|
|
|
#
|
|
|
|
# If you choose to use the system installed version of QT, keep
|
|
|
|
# the variable QT_THIRD_PARTY commented, and uncomment the initialization
|
|
|
|
# of the variable QT_DIR and QT_BIN_DIR. Make sure both variables are
|
|
|
|
# properly initialized.
|
|
|
|
#
|
|
|
|
# If you choose instead to use the ThirdParty version of QT, only uncomment
|
2013-07-07 16:59:07 +00:00
|
|
|
# the variable QT_THIRD_PARTY and set it to 1. Keep the initialization
|
2010-12-16 01:26:41 +00:00
|
|
|
# of the variables QT_DIR nd QT_BIN_DIR commented. The QT ThirdParty scripts
|
2013-07-07 16:59:07 +00:00
|
|
|
# will take care of setting the variables QT_DIR and QT_BIN_DIR to the
|
2010-12-16 01:26:41 +00:00
|
|
|
# proper values.
|
|
|
|
#
|
2010-12-09 02:28:32 +00:00
|
|
|
#export QT_THIRD_PARTY=1
|
|
|
|
#export QT_DIR=path_to_system_installed_qt
|
|
|
|
#export QT_BIN_DIR=$QT_DIR/bin
|
|
|
|
|
|
|
|
# System installed ParaView
|
|
|
|
#export PARAVIEW_SYSTEM=1
|
|
|
|
#export PARAVIEW_DIR=path_to_system_installed_paraview
|
|
|
|
#export PARAVIEW_BIN_DIR=$PARAVIEW_DIR/bin
|
2010-10-04 12:13:26 +00:00
|
|
|
|
2011-05-09 02:48:26 +00:00
|
|
|
# System installed bison
|
|
|
|
#export BISON_SYSTEM=1
|
|
|
|
|
2017-04-08 20:22:24 +00:00
|
|
|
# System installed flex. FLEX_DIR should point to the directory where
|
|
|
|
# $FLEX_DIR/bin/flex is located
|
2011-05-09 02:48:26 +00:00
|
|
|
#export FLEX_SYSTEM=1
|
2017-04-08 20:22:24 +00:00
|
|
|
#export FLEX_DIR=/usr
|
2011-05-09 02:48:26 +00:00
|
|
|
|
|
|
|
# System installed m4
|
|
|
|
#export M4_SYSTEM=1
|
|
|
|
|
2010-10-04 12:13:26 +00:00
|
|
|
# Specify ParaView version
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~
|
2010-12-09 02:28:32 +00:00
|
|
|
#export ParaView_VERSION=git # eg, cvs/git version
|
|
|
|
#export ParaView_MAJOR=3.7
|
2010-10-04 12:13:26 +00:00
|
|
|
|
2013-07-03 17:34:16 +00:00
|
|
|
|
2015-04-23 12:51:07 +00:00
|
|
|
# System identifier for the FOAM CDash test harness on foam-extend
|
2011-05-23 02:47:51 +00:00
|
|
|
#
|
|
|
|
# By default, your system FQN/hostname will be used as the system identifier
|
2015-04-23 12:51:07 +00:00
|
|
|
# when publishing your test harness results on the FOAM CDash server
|
|
|
|
# on foam-extend.
|
2011-05-23 02:47:51 +00:00
|
|
|
# You can override your identifier using this environment variable
|
|
|
|
#export CDASH_SUBMIT_LOCAL_HOST_ID=choose_your_CDash_system_identifer
|
|
|
|
|
2016-06-20 14:50:07 +00:00
|
|
|
# Buildname suffix for the FOAM CDash test harness on foam-extend
|
2015-08-15 18:23:15 +00:00
|
|
|
# By default, the git branch name and git revision number will be
|
|
|
|
# appended to the CDash build name.
|
|
|
|
# Otherwise, for users not using git, or wanting to provide additionnal
|
|
|
|
# information, simply initialize the CDASH_SCM_INFO with the proper information
|
|
|
|
#export CDASH_SCM_INFO=your_SCM_information
|
|
|
|
|
2015-05-17 00:39:14 +00:00
|
|
|
# Mac OS X MacPorts root directory.
|
|
|
|
# The default value is '/opt/local/etc/macports'.
|
|
|
|
# In order to disable the usage of MacPorts on Mac OSX, simply initialize this
|
|
|
|
# variable to a non-existing directory, or to a dummy value.
|
|
|
|
#export MACOSX_MACPORTS_ROOT="_not_using_"
|
2015-05-15 12:48:09 +00:00
|
|
|
|
|
|
|
# ThirdParty packages: build control variables
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# By enabling any of these variables, you will active the compilation and
|
|
|
|
# installation of the corresponding ThirdParty package
|
|
|
|
#
|
|
|
|
# For AllMake.stage1
|
2015-05-17 00:39:14 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_GCC_492=1
|
|
|
|
#export WM_THIRD_PARTY_USE_GCC_484=1
|
2015-10-10 17:52:04 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_GCC_474=1
|
2015-05-15 12:48:09 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_GCC_463=1
|
|
|
|
#export WM_THIRD_PARTY_USE_GCC_451=1
|
|
|
|
#export WM_THIRD_PARTY_USE_GCC_445=1
|
|
|
|
#export WM_THIRD_PARTY_USE_PYTHON_27=1
|
2015-05-26 04:59:43 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_M4_1416=1
|
2015-05-15 12:48:09 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_BISON_27=1
|
|
|
|
#export WM_THIRD_PARTY_USE_FLEX_2535=1
|
2015-05-17 03:19:40 +00:00
|
|
|
export WM_THIRD_PARTY_USE_CMAKE_322=1
|
2015-05-15 12:48:09 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# For AllMake.stage2
|
2015-08-06 08:55:24 +00:00
|
|
|
export WM_THIRD_PARTY_USE_OPENMPI_188=1
|
2016-05-27 10:36:24 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_OPENMPI_188_ConfigureAdditionalArgs='--enable-mpi-cxx --with-verbs'
|
2015-05-15 12:48:09 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_OPENMPI_165=1
|
2016-05-27 10:36:24 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_OPENMPI_165_ConfigureAdditionalArgs='--enable-mpi-cxx --with-openib'
|
2015-05-15 12:48:09 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_OPENMPI_15=1
|
|
|
|
#export WM_THIRD_PARTY_USE_OPENMPI_143=1
|
|
|
|
#export WM_THIRD_PARTY_USE_OPENMPI_141=1
|
2017-01-10 15:42:15 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_MVAPICH2_22=1
|
|
|
|
#export WM_THIRD_PARTY_USE_MVAPICH2_22_ConfigureAdditionalArgs='--disable-mcast'
|
|
|
|
|
2015-05-15 12:48:09 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# For AllMake.stage3
|
|
|
|
export WM_THIRD_PARTY_USE_METIS_510=1
|
|
|
|
export WM_THIRD_PARTY_USE_PARMGRIDGEN_10=1
|
|
|
|
export WM_THIRD_PARTY_USE_LIBCCMIO_261=1
|
|
|
|
export WM_THIRD_PARTY_USE_MESQUITE_212=1
|
2015-05-17 11:44:34 +00:00
|
|
|
export WM_THIRD_PARTY_USE_SCOTCH_604=1
|
|
|
|
#export WM_THIRD_PARTY_USE_SCOTCH_600=1
|
2015-05-15 12:48:09 +00:00
|
|
|
export WM_THIRD_PARTY_USE_PARMETIS_403=1
|
2015-06-02 11:32:43 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_ZOLTAN_36=1
|
2015-05-15 12:48:09 +00:00
|
|
|
export WM_THIRD_PARTY_USE_PYFOAM_064=1
|
2015-05-17 11:44:34 +00:00
|
|
|
export WM_THIRD_PARTY_USE_HWLOC_1101=1
|
|
|
|
#export WM_THIRD_PARTY_USE_HWLOC_172=1
|
2015-05-15 12:48:09 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# For AllMake.stage4
|
|
|
|
export WM_THIRD_PARTY_USE_QT_486=1
|
2016-11-18 13:04:12 +00:00
|
|
|
export WM_THIRD_PARTY_USE_PARAVIEW_440=1
|
|
|
|
#export WM_THIRD_PARTY_USE_PARAVIEW_431=1
|
2015-05-15 12:48:09 +00:00
|
|
|
#export WM_THIRD_PARTY_USE_PARAVIEW_410=1
|
|
|
|
|
|
|
|
|
|
|
|
# Add in preset user preferences: will override site preferences
|
|
|
|
if [ -e $WM_PROJECT_USER_DIR/etc/prefs.sh ]
|
|
|
|
then
|
|
|
|
_foamSource $WM_PROJECT_USER_DIR/etc/prefs.sh
|
|
|
|
fi
|
2010-10-04 12:13:26 +00:00
|
|
|
# ----------------------------------------------------------------- end-of-file
|