diff --git a/etc/bashrc b/etc/bashrc index 0e7c7c62a4b1ff4882b55b14ce339f7ecfc52244..d146684e9a8f9d4b529fec702921a31556e230e1 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -213,6 +213,7 @@ _foamSource $WM_PROJECT_DIR/etc/config/aliases.sh # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/paraview.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/ensight.sh` +_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/gperftools.sh` # Clean environment paths again. Only remove duplicates diff --git a/etc/config/gperftools.sh b/etc/config/gperftools.sh new file mode 100644 index 0000000000000000000000000000000000000000..f71a6cf2afe7e2dab5f3d33a5166cb13569fdd5c --- /dev/null +++ b/etc/config/gperftools.sh @@ -0,0 +1,41 @@ +#----------------------------------*-sh-*-------------------------------------- +# ========= | +# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox +# \\ / O peration | +# \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation +# \\/ M anipulation | +#------------------------------------------------------------------------------ +# License +# This file is part of OpenFOAM. +# +# OpenFOAM 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. +# +# OpenFOAM 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. +# +# You should have received a copy of the GNU General Public License +# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. +# +# File +# config/gperftools.sh +# +# Description +# Setup file for gperftools binaries libraries. +# +#------------------------------------------------------------------------------ + +version=svn +gperftools_install=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER + +GPERFTOOLS_VERSION=gperftools-$version +GPERFTOOLS_ARCH_PATH=$gperftools_install/$GPERFTOOLS_VERSION + +export PATH=$GPERFTOOLS_ARCH_PATH/bin:$PATH +export LD_LIBRARY_PATH=$GPERFTOOLS_ARCH_PATH/lib:$LD_LIBRARY_PATH + +# -----------------------------------------------------------------------------