- export library path for gmp/mpfr from CGAL config files. This is required when non-system gmp/mpfr libraries are being used, but not using a ThirdParty compiler installation. - automatically handle lib/ vs lib64/ (eg, for central installations) for packages such as boost, CGAL, etc. While the ThirdParty compilation of these will normally land in lib64/, this may not be the case when they are supplied by another means. - reworked the handling of foamEtcFile and foamCleanPath for less clutter in the configuration files. Added the bin/tools/lib-dir script to handle logic that is too complex to easily manage in csh.
43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
#----------------------------------*-sh-*--------------------------------------
|
|
# ========= |
|
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
# \\ / O peration |
|
|
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
|
# \\/ M anipulation |
|
|
#------------------------------------------------------------------------------
|
|
# License
|
|
# This file is part of OpenFOAM, licensed under GNU General Public License
|
|
# <http://www.gnu.org/licenses/>.
|
|
#
|
|
# File
|
|
# etc/config.sh/ensight
|
|
# - sourced by OpenFOAM-*/etc/bashrc
|
|
#
|
|
# Description
|
|
# Setup for ENSIGHT
|
|
#
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Fallback value
|
|
[ -d "$CEI_HOME" ] || export CEI_HOME=/usr/local/ensight/CEI
|
|
|
|
if [ -r $CEI_HOME ]
|
|
then
|
|
|
|
# Special treatment for 32bit OpenFOAM and 64bit Ensight
|
|
[ "$WM_ARCH-$(uname -m)" = linux-x86_64 ] && export CEI_ARCH=linux_2.6_32
|
|
|
|
# Add to path if required
|
|
if [ "$CEI_HOME/bin/ensight" != "$(command -v ensight)" ]
|
|
then
|
|
export PATH=$CEI_HOME/bin:$PATH
|
|
fi
|
|
|
|
export ENSIGHT9_INPUT=dummy
|
|
export ENSIGHT9_READER=$FOAM_LIBBIN
|
|
else
|
|
unset CEI_HOME
|
|
fi
|
|
|
|
#------------------------------------------------------------------------------
|