summaryrefslogtreecommitdiffstats
path: root/doc/env-cobalt.sh (plain)
blob: 5a7a6c31e7f072d4d6d41a5e11349ed41a45c910
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash

# This script sets environment variables for building and running the
# project on NCSA Cobalt.  Note that this script should be executed
# with source env-cobalt.sh rather than ./env-cobalt.sh so that the
# exports affect the current shell.

# Building on NCSA Cobalt.

# .soft
#
# @remove +hdf4
# @remove +hdf4-4.2.1
# @remove +hdf5
# @remove +hdf5-1.6.5
#
# @remove +intel-compilers
# @remove +intel-compilers10.0
# @remove +intel-compilers10.1
# @remove +intel-c-10.1.017-f-10.1.017
# @remove +intel-c-11.1.064-f-11.1.064
#
# ...defaults...
#
# +phdf5-1.8.4

# Configure

echo "Setting CPPFLAGS."

export CPPFLAGS="\
-I$HDF5_HOME/include \
-I$NCBI_DIR/include \
-I$PETSC_DIR/$PETSC_ARCH/include"

echo CPPFLAGS=$CPPFLAGS

echo "Setting LDFLAGS."

export LDFLAGS="\
-L$HDF5_HOME/lib \
-L/usr/apps/hdf/szip/lib \
-L/usr/local/intel/10.1.017/lib \
-L$NCBI_DIR/lib \
-L$PETSC_DIR/$PETSC_ARCH/lib"

echo LDFLAGS=$LDFLAGS

echo "Setting LD_LIBRARY_PATH."

export LD_LIBRARY_PATH=\
$LD_LIBRARY_PATH:\
/usr/apps/hdf/szip/lib:\
$PETSC_DIR/$PETSC_ARCH/lib

echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.