1 #----------------------------------*-sh-*--------------------------------------
3 # \\ / F ield | foam-extend: Open Source CFD
4 # \\ / O peration | Version: 3.2
5 # \\ / A nd | Web: http://www.foam-extend.org
6 # \\/ M anipulation | For copyright notice see file Copyright
7 #------------------------------------------------------------------------------
9 # This file is part of foam-extend.
11 # foam-extend is free software: you can redistribute it and/or modify it
12 # under the terms of the GNU General Public License as published by the
13 # Free Software Foundation, either version 3 of the License, or (at your
14 # option) any later version.
16 # foam-extend is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 # General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
28 # Setup file for paraview-3.x
29 # Sourced from FOAM-*/etc/cshrc
32 # The env. variable 'ParaView_DIR' is required for building plugins
33 #------------------------------------------------------------------------------
35 # determine the cmake to be used
37 foreach cmake ( cmake-2.8.2 cmake-2.6.4 cmake-2.6.2 cmake-2.4.6 )
38 set cmake=$WM_THIRD_PARTY_DIR/$cmake/platforms/$WM_ARCH
40 setenv CMAKE_HOME $cmake
41 set path=($CMAKE_HOME/bin $path)
46 if ( ! $?ParaView_MAJOR ) setenv ParaView_MAJOR paraview-3.8
47 if ( ! $?ParaView_VERSION ) setenv ParaView_VERSION 3.8.1
49 setenv ParaView_INST_DIR $WM_THIRD_PARTY_DIR/ParaView-$ParaView_VERSION
50 setenv ParaView_DIR $ParaView_INST_DIR/platforms/$WM_ARCH$WM_COMPILER
52 # add in python libraries if required
53 set paraviewPython=$ParaView_DIR/Utilities/VTKPythonWrapping
54 if ( -r $paraviewPython ) then
55 if ($?PYTHONPATH) then
56 setenv PYTHONPATH ${PYTHONPATH}:${paraviewPython}:$ParaView_DIR/lib/${ParaView_MAJOR}
58 setenv PYTHONPATH ${paraviewPython}:$ParaView_DIR/lib/${ParaView_MAJOR}
62 if ( -r $ParaView_INST_DIR ) then
63 set path=($ParaView_DIR/bin $path)
64 setenv PV_PLUGIN_PATH $FOAM_LIBBIN
67 unset cmake paraviewPython
68 # -----------------------------------------------------------------------------