-rw-r--r-- | doc/env-coffee.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/env-coffee.sh b/doc/env-coffee.sh new file mode 100644 index 0000000..2ebc13f --- a/dev/null +++ b/doc/env-coffee.sh | |||
@@ -0,0 +1,38 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Coffee is a workstation running Debian Sid. A custom build of PETSc | ||
4 | # is needed since the current Debian package of PETSc does not include | ||
5 | # HDF5 support. Debian Bug #566920 | ||
6 | # [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566920] has been | ||
7 | # submitted requesting this feature. | ||
8 | |||
9 | echo "Setting custom PETSc." | ||
10 | |||
11 | export PETSC_ARCH=linux-gnu-c-debug | ||
12 | |||
13 | export PETSC_DIR=/home/don/Apps/Installers/petsc-3.0.0-p10 | ||
14 | |||
15 | echo "Setting CPPFLAGS." | ||
16 | |||
17 | export CPPFLAGS="\ | ||
18 | -I$PETSC_DIR/include \ | ||
19 | -I$PETSC_DIR/$PETSC_ARCH/include \ | ||
20 | -I/usr/include/mpi \ | ||
21 | -I/usr/include/ncbi" | ||
22 | |||
23 | echo CPPFLAGS=$CPPFLAGS | ||
24 | |||
25 | echo "Setting LDFLAGS." | ||
26 | |||
27 | export LDFLAGS="\ | ||
28 | -L$PETSC_DIR/$PETSC_ARCH/lib" | ||
29 | |||
30 | echo LDFLAGS=$LDFLAGS | ||
31 | |||
32 | echo "Setting LD_LIBRARY_PATH." | ||
33 | |||
34 | export LD_LIBRARY_PATH=\ | ||
35 | $LD_LIBRARY_PATH:\ | ||
36 | $PETSC_DIR/$PETSC_ARCH/lib | ||
37 | |||
38 | echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH | ||