summaryrefslogtreecommitdiffstats
path: root/doc/env-coffee.sh (plain)
blob: 2ebc13f422491d7349593b459eee626d64df108d
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
#!/bin/bash

# Coffee is a workstation running Debian Sid.  A custom build of PETSc
# is needed since the current Debian package of PETSc does not include
# HDF5 support.  Debian Bug #566920
# [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566920] has been
# submitted requesting this feature.

echo "Setting custom PETSc."

export PETSC_ARCH=linux-gnu-c-debug

export PETSC_DIR=/home/don/Apps/Installers/petsc-3.0.0-p10

echo "Setting CPPFLAGS."

export CPPFLAGS="\
-I$PETSC_DIR/include \
-I$PETSC_DIR/$PETSC_ARCH/include \
-I/usr/include/mpi \
-I/usr/include/ncbi"

echo CPPFLAGS=$CPPFLAGS

echo "Setting LDFLAGS."

export LDFLAGS="\
-L$PETSC_DIR/$PETSC_ARCH/lib"

echo LDFLAGS=$LDFLAGS

echo "Setting LD_LIBRARY_PATH."

export LD_LIBRARY_PATH=\
$LD_LIBRARY_PATH:\
$PETSC_DIR/$PETSC_ARCH/lib

echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.