bashrc 1.94 KB
Newer Older
1
2
3
4
#----------------------------------*-sh-*--------------------------------------
# =========                 |
# \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
#  \\    /   O peration     |
5
#   \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#    \\/     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 2 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, write to the Free Software Foundation,
#     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
26
#     ensight/bashrc
27
28
#
# Description
29
#     Setup file for Ensight
30
#     Sourced from OpenFOAM-*/etc/bashrc
31
32
33
34
#
#------------------------------------------------------------------------------

# fallback value
35
36
if [ ! -d "$CEI_HOME" ]
then
37
38
39
    export CEI_HOME=/usr/local/ensight/CEI
fi

40
41
if [ -r $CEI_HOME ]
then
42

43
    # special treatment for 32bit OpenFOAM and 64bit Ensight
44
45
    if [ "$WM_ARCH" = linux -a `uname -m` = x86_64 ]
    then
46
47
48
49
        export CEI_ARCH=linux_2.6_32
    fi

    # add to path if required
50
51
    if [ "$CEI_HOME/bin/ensight" != "`which ensight 2>/dev/null`" ]
    then
52
53
54
        export PATH=$CEI_HOME/bin:$PATH
    fi

55
56
    export ENSIGHT9_INPUT=dummy
    export ENSIGHT9_READER=$FOAM_LIBBIN
57
58
59
60
61
else
    unset CEI_HOME
fi

# -----------------------------------------------------------------------------