cshrc 1.84 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/cshrc
27
28
#
# Description
29
#     Setup file for Ensight
30
#     Sourced from OpenFOAM-*/etc/cshrc
31
32
33
34
35
36
37
38
39
40
#
#------------------------------------------------------------------------------

# fallback value
if (! $?CEI_HOME) then
    setenv CEI_HOME /usr/local/ensight/CEI
endif

if ( -r $CEI_HOME ) then

41
42
43
    # special treatment for 32bit OpenFOAM and 64bit Ensight
    if ($WM_ARCH == linux && `uname -m` == x86_64) then
       setenv CEI_ARCH linux_2.6_32
44
45
    endif

46
47
    # add to path
    set path=($CEI_HOME/bin $path)
48

49
50
    setenv ENSIGHT9_INPUT dummy
    setenv ENSIGHT9_READER $FOAM_LIBBIN
51
else
Mark Olesen's avatar
Mark Olesen committed
52
    unsetenv CEI_HOME
53
54
55
endif

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