summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2010-01-25 23:31:40 (GMT)
committer Don Pellegrino <don@drexel.edu>2010-01-25 23:31:40 (GMT)
commite784472107b1d5964cf7a16bdd9fd78e1667e367 (patch) (side-by-side diff)
treeb6d4728b5e2bf8ed902e2b4d434be4372bf55e86
parent401233a57b8aa86e5b068710c0f77f7b8e205b3b (diff)
downloadexp007-e784472107b1d5964cf7a16bdd9fd78e1667e367.zip
exp007-e784472107b1d5964cf7a16bdd9fd78e1667e367.tar.gz
exp007-e784472107b1d5964cf7a16bdd9fd78e1667e367.tar.bz2
Added script to build against a custom PETSc build with HDF5 support.
-rw-r--r--doc/env-coffee.sh38
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 @@
+#!/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.