Install Hydro-Quebec Tools in test loop
[foam-extend-3.2.git] / etc / settings.csh
blob5fc314127a586195e7a597337a88cbcddfa5e2ed
1 #----------------------------------*-sh-*--------------------------------------
2 # =========                 |
3 # \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4 #  \\    /   O peration     |
5 #   \\  /    A nd           | Copyright held by original author
6 #    \\/     M anipulation  |
7 #------------------------------------------------------------------------------
8 # License
9 #     This file is part of OpenFOAM.
11 #     OpenFOAM 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 2 of the License, or (at your
14 #     option) any later version.
16 #     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 #     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 #     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19 #     for more details.
21 #     You should have received a copy of the GNU General Public License
22 #     along with OpenFOAM; if not, write to the Free Software Foundation,
23 #     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 # Script
26 #     etc/settings.csh
28 # Description
29 #     Startup file for OpenFOAM
30 #     Sourced from OpenFOAM-??/etc/cshrc
32 #------------------------------------------------------------------------------
34 # prefix to PATH
35 alias _foamAddPath 'set path=(\!* $path)'
36 # prefix to LD_LIBRARY_PATH
37 alias _foamAddLib 'setenv LD_LIBRARY_PATH \!*\:${LD_LIBRARY_PATH}'
39 # location of the jobControl directory
40 setenv FOAM_JOB_DIR $WM_PROJECT_INST_DIR/jobControl
42 # wmake configuration
43 setenv WM_DIR $WM_PROJECT_DIR/wmake
44 setenv WM_LINK_LANGUAGE c++
45 setenv WM_OPTIONS $WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_COMPILE_OPTION
46 set path=($WM_DIR $path)
48 # base configuration
49 setenv FOAM_APP $WM_PROJECT_DIR/applications
50 setenv FOAM_APPBIN $WM_PROJECT_DIR/applications/bin/$WM_OPTIONS
51 setenv FOAM_LIB $WM_PROJECT_DIR/lib
52 setenv FOAM_LIBBIN $WM_PROJECT_DIR/lib/$WM_OPTIONS
53 setenv FOAM_SRC $WM_PROJECT_DIR/src
55 # shared site configuration - similar naming convention as ~OpenFOAM expansion
56 setenv FOAM_SITE_APPBIN $WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION/bin/$WM_OPTIONS
57 setenv FOAM_SITE_LIBBIN $WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION/lib/$WM_OPTIONS
59 # user configuration
60 setenv FOAM_USER_APPBIN $WM_PROJECT_USER_DIR/applications/bin/$WM_OPTIONS
61 setenv FOAM_USER_LIBBIN $WM_PROJECT_USER_DIR/lib/$WM_OPTIONS
63 # convenience
64 setenv FOAM_TUTORIALS $WM_PROJECT_DIR/tutorials
65 setenv FOAM_UTILITIES $FOAM_APP/utilities
66 setenv FOAM_SOLVERS $FOAM_APP/solvers
67 setenv FOAM_RUN $WM_PROJECT_USER_DIR/run
69 # add OpenFOAM scripts and wmake to the path
70 set path=($WM_DIR $WM_PROJECT_DIR/bin $path)
72 _foamAddPath $FOAM_APPBIN
73 _foamAddPath $FOAM_SITE_APPBIN
74 _foamAddPath $FOAM_USER_APPBIN
75  # Make sure to pick up dummy versions of external libraries last
76 _foamAddLib  $FOAM_LIBBIN/dummy
77 _foamAddLib  $FOAM_LIBBIN
78 _foamAddLib  $FOAM_SITE_LIBBIN
79 _foamAddLib  $FOAM_USER_LIBBIN
82 # Select compiler installation
83 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
84 # compilerInstall = OpenFOAM | System
85 #set compilerInstall=OpenFOAM
86 #set compilerInstall=System
87 if ( ! $?compilerInstall ) then
88     setenv compilerInstall System
89 endif
91 switch ("$compilerInstall")
92 case OpenFOAM:
93     switch ("$WM_COMPILER")
94     case Gcc:
95         setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/$WM_ARCH$WM_COMPILER_ARCH
96         _foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
97         _foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
98     breaksw
99     case Gcc45:
100         setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS
101         _foamSource  $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
102         _foamSource  $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
103         _foamSource  $WM_THIRD_PARTY_DIR/packages/mpc-0.8.2/platforms/$WM_OPTIONS/etc/mpc-0.8.2.csh
104         _foamSource  $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS/etc/gcc-4.5.1.csh
105     breaksw
106     case Gcc44:
107         setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.4.5/platforms/$WM_OPTIONS
108         _foamSource  $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
109         _foamSource  $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
110         _foamSource  $WM_THIRD_PARTY_DIR/packages/gcc-4.4.5/platforms/$WM_OPTIONS/etc/gcc-4.4.5.csh
111     breaksw
112     case Gcc43:
113         setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/$WM_ARCH$WM_COMPILER_ARCH
114         _foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
115         _foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
116     breaksw
117     case Gcc42:
118         setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/gcc-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH
119     breaksw
120     endsw
122     # Check that the compiler directory can be found
123     if ( ! -d "$WM_COMPILER_DIR" ) then
124         echo
125         echo "Warning in $WM_PROJECT_DIR/etc/settings.csh:"
126         echo "    Cannot find $WM_COMPILER_DIR installation."
127         echo "    Please install this compiler version or if you wish to use the system compiler,"
128         echo "    change the 'compilerInstall' setting to 'System' in this file"
129         echo
130     endif
132     _foamAddPath ${WM_COMPILER_DIR}/bin
133     _foamAddLib  ${WM_COMPILER_DIR}/lib${WM_COMPILER_LIB_ARCH}
134     _foamAddLib  ${WM_COMPILER_DIR}/lib
136     breaksw
137 endsw
140 switch ("$WM_COMPILER")
141 case Gcc*:
142     setenv WM_CC 'gcc'
143     setenv WM_CXX 'g++'
144     breaksw
145 case Icc:
146     setenv WM_CC 'icc'
147     setenv WM_CXX 'icpc'
148     breaksw
149 endsw
151 # Communications library
152 # ~~~~~~~~~~~~~~~~~~~~~~
154 unset MPI_ARCH_PATH
156 set mpi_version=unknown
158 switch ("$WM_MPLIB")
159 case OPENMPI:
160     if (-d $WM_THIRD_PARTY_DIR/packages/openmpi-1.6.5/platforms/$WM_OPTIONS ) then
161         set mpi_version=openmpi-1.6.5
163         if ($?FOAM_VERBOSE && $?prompt) then
164             echo "Using openmpi-1.6.5 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
165         endif
166         _foamSource  $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
168     else if (-d $WM_THIRD_PARTY_DIR/packages/openmpi-1.4.3/platforms/$WM_OPTIONS ) then
169         set mpi_version=openmpi-1.4.3
171         if ($?FOAM_VERBOSE && $?prompt) then
172             echo "Using openmpi-1.4.3 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
173         endif
174         _foamSource  $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
176     else if (-d $WM_THIRD_PARTY_DIR/packages/openmpi-1.5/platforms/$WM_OPTIONS ) then
177         set mpi_version=openmpi-1.5
179         if ($?FOAM_VERBOSE && $?prompt) then
180             echo "Using openmpi-1.5 from the ThirdParty package: $WM_THIRD_PARTY_DIR/packages/$mpi_version"
181         endif
182         _foamSource  $WM_THIRD_PARTY_DIR/packages/$mpi_version/platforms/$WM_OPTIONS/etc/$mpi_version.csh
183     endif
185     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
186     unset mpi_version
187     breaksw
189 case SYSTEMOPENMPI:
190     set mpi_version=openmpi-system
192     # make sure not the "old" mpi is used
193     # Not sure if this is necessary anymore.
194     # export OPAL_PREFIX=
196     # Make sure OPENMPI_BIN_DIR is set and valid
197     if ($?OPENMPI_BIN_DIR != 0 ) then
198         if (-d "${OPENMPI_BIN_DIR}" ) then
199         # User defined value specified for OPENMPI_BIN_DIR
200         #
201         # WARNING:
202         #          We assume this path specified by $OPENMPI_BIN_DIR is valid
203         #          We assume the command mpicc is located somewhere under this path
204         #          We assume the file mpi.h is located somewhere under this path
205         #
206             #          Otherwise, please double check your openmpi installation, you are
207         #          probably missing the openmpi runtime and/or development packages
208         #          available for your system.
209         #
210         _foamAddPath $OPENMPI_BIN_DIR
211          endif
212     else
213     # Here, we assume your environment is already set for running
214     # and developing with openmpi.
215     #
216     # Initialize OPENMPI_BIN_DIR using the path to mpicc
217         set mpicc_cmd=`which mpicc`
218         setenv OPENMPI_BIN_DIR `dirname $mpicc_cmd`
219         unset mpicc_cmd
220     endif
222     # Make sure OPENMPI_LIB_DIR is set
223     if ( $?OPENMPI_LIB_DIR == 0 ) then
224         # Initialize OPENMPI_LIB_DIR using the path to mpicc
225         setenv OPENMPI_LIB_DIR "`mpicc --showme:libdirs`"
226     endif
228     # Make sure the dynamic libraries are accessible
229     if( $?OPENMPI_LIB_DIR != 0 ) then
230         _foamAddLib $OPENMPI_LIB_DIR
231     endif
233     setenv MPI_HOME `dirname $OPENMPI_BIN_DIR`
234     setenv MPI_ARCH_PATH $MPI_HOME
235     setenv OPAL_PREFIX $MPI_ARCH_PATH
237     # We initialize the rest of the environment using mpicc --showme:
238     if ($?OPENMPI_INCLUDE_DIR == 0) then
239         setenv OPENMPI_INCLUDE_DIR "`mpicc --showme:incdirs`"
240     endif
242     if (${?OPENMPI_COMPILE_FLAGS} == 0) then
243         setenv OPENMPI_COMPILE_FLAGS "`mpicc --showme:compile`"
244     endif
246     if (${?OPENMPI_COMPILE_FLAGS} == 0) then
247         setenv OPENMPI_COMPILE_FLAGS "`mpicc --showme:compile`"
248     endif
250     if (${?OPENMPI_LINK_FLAGS} == 0) then
251         setenv OPENMPI_LINK_FLAGS "`mpicc --showme:link`"
252     endif
254     #
255     # WARNING: We assume the file mpi.h will be available under the directories identified
256     #          by the variable $OPENMPI_INCLUDE_DIR. Otherwise, please double check your
257     #          system openmpi installation.
259     # Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI
260     setenv PINC "$OPENMPI_COMPILE_FLAGS"
261     setenv PLIBS "$OPENMPI_LINK_FLAGS"
263     # No longer needed, but we keep this as a reference, just in case...
264     #libDir `echo "$PLIBS" | sed -e 's/.*-L\([^ ]*\).*/\1/'`
265     #_foamAddLib $libDir
267     if ($?FOAM_VERBOSE && $?prompt) then
268         echo "Using system installed OpenMPI:"
269         echo "    OPENMPI_BIN_DIR       : $OPENMPI_BIN_DIR"
270         echo "    OPENMPI_LIB_DIR       : $OPENMPI_LIB_DIR"
271         echo "    OPENMPI_INCLUDE_DIR   : $OPENMPI_INCLUDE_DIR"
272         echo "    OPENMPI_COMPILE_FLAGS : $OPENMPI_COMPILE_FLAGS"
273         echo "    OPENMPI_LINK_FLAGS    : $OPENMPI_LINK_FLAGS"
274         echo ""
275         echo "    MPI_HOME              : $MPI_HOME"
276         echo "    MPI_ARCH_PATH         : $MPI_ARCH_PATH"
277         echo "    OPAL_PREFIX           : $OPAL_PREFIX"
278         echo "    PINC                  : $PINC"
279         echo "    PLIBS                 : $PLIBS"
280     endif
282     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
283     unset mpi_version
284     breaksw
286 case MPICH:
287     set mpi_version=mpich-1.2.4
288     setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
289     setenv MPI_ARCH_PATH $MPI_HOME/platforms/$WM_OPTIONS
290     setenv MPICH_ROOT $MPI_ARCH_PATH
292     _foamAddPath $MPI_ARCH_PATH/bin
293     _foamAddLib  $MPI_ARCH_PATH/lib
295     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
296     unset mpi_version
297     breaksw
299 case MPICH-GM:
300     setenv MPI_ARCH_PATH /opt/mpi
301     setenv MPICH_PATH $MPI_ARCH_PATH
302     setenv MPICH_ROOT $MPI_ARCH_PATH
303     setenv GM_LIB_PATH /opt/gm/lib64
305     _foamAddPath $MPI_ARCH_PATH/bin
306     _foamAddLib  $MPI_ARCH_PATH/lib
307     _foamAddLib  $GM_LIB_PATH
309     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/mpich-gm
310     breaksw
312 case HPMPI:
313     setenv MPI_HOME /opt/hpmpi
314     setenv MPI_ARCH_PATH $MPI_HOME
315     setenv MPICH_ROOT=$MPI_ARCH_PATH
317     _foamAddPath $MPI_ARCH_PATH/bin
319     switch (`uname -m`)
320     case i686:
321         _foamAddLib $MPI_ARCH_PATH/lib/linux_ia32
322         breaksw
323     case x86_64:
324         _foamAddLib $MPI_ARCH_PATH/lib/linux_amd64
325         breaksw
326     case ia64:
327         _foamAddLib $MPI_ARCH_PATH/lib/linux_ia64
328         breaksw
329     default:
330         echo Unknown processor type `uname -m` for Linux
331         breaksw
332     endsw
334     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/hpmpi
335     breaksw
337 case GAMMA:
338     setenv MPI_ARCH_PATH /usr
339     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/gamma
340     breaksw
342 case MPI:
343     setenv MPI_ARCH_PATH /opt/mpi
344     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/mpi
345     breaksw
347 case FJMPI:
348     setenv MPI_ARCH_PATH /opt/FJSVmpi2
349     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/mpi
350     _foamAddPath $MPI_ARCH_PATH/bin
351     _foamAddLib  $MPI_ARCH_PATH/lib/sparcv9
352     _foamAddLib  /opt/FSUNf90/lib/sparcv9
353     _foamAddLib  /opt/FJSVpnidt/lib
354     breaksw
356 case QSMPI:
357     setenv MPI_ARCH_PATH /usr/lib/mpi
358     setenv FOAM_MPI_LIBBIN FOAM_LIBBIN/qsmpi
360     _foamAddPath $MPI_ARCH_PATH/bin
361     _foamAddLib $MPI_ARCH_PATH/lib
363     breaksw
365 default:
366     setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/dummy
367     breaksw
368 endsw
370 _foamAddLib $FOAM_MPI_LIBBIN
373 # Set the minimum MPI buffer size (used by all platforms except SGI MPI)
374 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
375 set minBufferSize=20000000
377 if ( $?MPI_BUFFER_SIZE ) then
378     if ( $MPI_BUFFER_SIZE < $minBufferSize ) then
379         setenv MPI_BUFFER_SIZE $minBufferSize
380     endif
381 else
382     setenv MPI_BUFFER_SIZE $minBufferSize
383 endif
385 # CUDA library
386 # ~~~~~~~~~~~~
387 if ( $?CUDA_SYSTEM == 0 && -e /usr/local/cuda-5.5/bin/nvcc ) then
388     setenv CUDA_DIR /usr/local/cuda-5.5
389     setenv CUDA_BIN_DIR $CUDA_DIR/bin
390     setenv CUDA_LIB_DIR $CUDA_DIR/lib64
391     setenv CUDA_INCLUDE_DIR $CUDA_DIR/include
392     setenv CUDA_ARCH sm_20
393 endif
395 if ( $?CUDA_BIN_DIR ) then
396     _foamAddPath $CUDA_BIN_DIR
397 endif
399 if ( $?CUDA_LIB_DIR ) then
400     _foamAddLib $CUDA_LIB_DIR
401 endif
403 # CGAL library if available
404 # ~~~~~~~~~~~~~~~~~~~~~~~~~
405 if ( $?CGAL_LIB_DIR ) then
406     _foamAddLib $CGAL_LIB_DIR
407 endif
409 # Mesquite library if available
410 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
411 if ( $?MESQUITE_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS ) then
412     _foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS/etc/mesquite-2.1.2.csh
413 endif
415 # Metis library if available
416 # ~~~~~~~~~~~~~~~~~~~~~~~~~~
417 if ( $?METIS_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS ) then
418     _foamSource $WM_THIRD_PARTY_DIR/packages/metis-5.1.0/platforms/$WM_OPTIONS/etc/metis-5.1.0.csh
419 endif
421 # ParMetis library if available
422 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
423 if ( $?PARMETIS_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS ) then
424     _foamSource $WM_THIRD_PARTY_DIR/packages/parmetis-4.0.3/platforms/$WM_OPTIONS/etc/parmetis-4.0.3.csh
425 endif
427 # ParMGridGen library if available
428 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
429 if ( $?PARMGRIDGEN_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS ) then
430     _foamSource $WM_THIRD_PARTY_DIR/packages/ParMGridGen-1.0/platforms/$WM_OPTIONS/etc/ParMGridGen-1.0.csh
431 endif
433 # Load Libccmio library
434 # ~~~~~~~~~~~~~~~~~~~~~
435 if ( $?LIBCCMIO_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS ) then
436     _foamSource $WM_THIRD_PARTY_DIR/packages/libccmio-2.6.1/platforms/$WM_OPTIONS/etc/libccmio-2.6.1.csh
437 endif
440 # Scotch library if available
441 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~
442 if ( $?SCOTCH_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS ) then
443     _foamSource $WM_THIRD_PARTY_DIR/packages/scotch-6.0.0/platforms/$WM_OPTIONS/etc/scotch-6.0.0.csh
444 endif
446 # Switch on the hoard memory allocator if available
447 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
448 #if ( -f $FOAM_LIBBIN/libhoard.so ) then
449 #    setenv LD_PRELOAD $FOAM_LIBBIN/libhoard.so:${LD_PRELOAD}
450 #endif
452 # Third party packages
454 # cmake
455 # ~~~~~
456 if ( $?CMAKE_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-2.8.12/platforms/$WM_OPTIONS ) then
457     _foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.12/platforms/$WM_OPTIONS/etc/cmake-2.8.12.csh
458 endif
460 # Python
461 # ~~~~~
462 if ( $?PYTHON_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/Python-2.7/platforms/$WM_OPTIONS ) then
463     _foamSource $WM_THIRD_PARTY_DIR/packages/Python-2.7/platforms/$WM_OPTIONS/etc/Python-2.7.csh
464 endif
466 # PyFoam
467 # ~~~~~~
468 if ( $?PYFOAM_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/PyFoam-0.6.1/platforms/noarch ) then
469     _foamSource $WM_THIRD_PARTY_DIR/packages/PyFoam-0.6.1/platforms/noarch/etc/PyFoam-0.6.1.csh
470 endif
472 # hwloc
473 # ~~~~~
474 if ( $?HWLOC_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/hwloc-1.7.2/platforms/$WM_OPTIONS ) then
475     _foamSource $WM_THIRD_PARTY_DIR/packages/hwloc-1.7.2/platforms/$WM_OPTIONS/etc/hwloc-1.7.2.csh
476 endif
478 # QT
479 # ~~~~~
480 if ( $?QT_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-opensource-src-4.7.4/platforms/$WM_OPTIONS )then
481     _foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.7.4/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.7.4.csh
482 #if ( $?QT_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/qt-everywhere-opensource-src-4.7.0/platforms/$WM_OPTIONS )then
483 #    _foamSource $WM_THIRD_PARTY_DIR/packages/qt-everywhere-opensource-src-4.7.0/platforms/$WM_OPTIONS/etc/qt-everywhere-opensource-src-4.7.0.csh
484 endif
486 # PARAVIEW
487 # ~~~~~
488 if ( $?PARAVIEW_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.14.1/platforms/$WM_OPTIONS ) then
489     _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS/etc/ParaView-3.14.1.csh
491 #if ( $?PARAVIEW_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ) then
492 #    _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.csh
494 #if ( $?PARAVIEW_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/ParaView-3.14.1/platforms/$WM_OPTIONS ) then
495 #    _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.14.1/platforms/$WM_OPTIONS/etc/ParaView-3.14.1.csh
496 endif
498 if ( $WM_ARCH == "darwinIntel" || $WM_ARCH == "darwinIntel64" ) then
499     setenv DYLD_LIBRARY_PATH ${LD_LIBRARY_PATH}
500 endif
502 # cleanup environment:
503 # ~~~~~~~~~~~~~~~~~~~~
504 unalias _foamAddPath
505 unalias _foamAddLib
506 unset minBufferSize
508 # -----------------------------------------------------------------------------