#----------------------------------*-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.csh/ensight
#     - sourced by OpenFOAM-*/etc/cshrc
#
# Description
#     Setup for ENSIGHT
#
#------------------------------------------------------------------------------

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

if ( -r $CEI_HOME ) then

    # Special treatment for 32bit OpenFOAM and 64bit Ensight
    if ($WM_ARCH-`uname -m` == linux-x86_64) setenv CEI_ARCH linux_2.6_32

    # Add to path
    setenv PATH ${CEI_HOME}/bin:${PATH}

    setenv ENSIGHT9_INPUT dummy
    setenv ENSIGHT9_READER $FOAM_LIBBIN
else
    unsetenv CEI_HOME
endif

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