summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2010-01-25 18:55:47 (GMT)
committer Don Pellegrino <don@drexel.edu>2010-01-25 18:55:47 (GMT)
commit9184eadaef5518db7941d9999b4ce54dda088c73 (patch) (unidiff)
treed9ca65b0feb0ffbc65f4f8c97243987ed72c79a3
parent72edf83cbac32ea26f056ae85373ad7179707333 (diff)
downloadexp007-9184eadaef5518db7941d9999b4ce54dda088c73.zip
exp007-9184eadaef5518db7941d9999b4ce54dda088c73.tar.gz
exp007-9184eadaef5518db7941d9999b4ce54dda088c73.tar.bz2
Modified to build using the copy of PETSc already installed on Cobalt.
-rw-r--r--.gitignore3
-rwxr-xr-xautogen.sh2
-rw-r--r--configure.ac8
-rw-r--r--doc/build-cobalt.txt42
-rw-r--r--doc/env-cobalt.sh56
5 files changed, 65 insertions, 46 deletions
diff --git a/.gitignore b/.gitignore
index 8c55145..7b53edd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
1*~
2*.o1*.o
2*~
3.deps
3COPYING4COPYING
4INSTALL5INSTALL
5Makefile6Makefile
diff --git a/autogen.sh b/autogen.sh
index c7c8611..967c298 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,4 @@
1#!/bin/sh1#!/bin/sh
22
3automake --add-missing3automake --add-missing
4autoreconf4autoreconf --force --install --symlink
diff --git a/configure.ac b/configure.ac
index f1ecdf9..aa1d3df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,6 +57,11 @@ AC_SEARCH_LIBS([H5TBmake_table],[hdf5_hl],[],
57# MODULE: PETSc #57# MODULE: PETSc #
58#################58#################
5959
60AC_SEARCH_LIBS([pthread_atfork],[pthread])
61
62AC_SEARCH_LIBS([PetscInitialize],[petsc],[],
63[AC_MSG_ERROR("The Portable Extensible Toolkit for Scientific Computation (PETSc) is needed to build the system.")])
64
60# The AC_SEARCH_LIBS other-libraries list is not particularly useful.65# The AC_SEARCH_LIBS other-libraries list is not particularly useful.
61# Autoconf determines if the other-libraries are necessary however in66# Autoconf determines if the other-libraries are necessary however in
62# the cases where they are indeed necessary they are not actually67# the cases where they are indeed necessary they are not actually
@@ -65,11 +70,10 @@ AC_SEARCH_LIBS([H5TBmake_table],[hdf5_hl],[],
65# These are the dependencies. Random functions are selected from70# These are the dependencies. Random functions are selected from
66# these libraries from the list of otherwise undefined references at71# these libraries from the list of otherwise undefined references at
67# link time.72# link time.
68AC_SEARCH_LIBS([PetscInitialize],[petsc])
69AC_SEARCH_LIBS([VecNorm],[petscvec])73AC_SEARCH_LIBS([VecNorm],[petscvec])
7074
71# MatCreateSeqAIJ is acutally used in the code for this project.75# MatCreateSeqAIJ is acutally used in the code for this project.
72AC_SEARCH_LIBS([MatCreateSeqAIJ],[petscmat],[],76AC_SEARCH_LIBS([MatCreateSeqAIJ],[petscmat],[],
73[AC_MSG_ERROR("The Portable Extensible Tookit for Scientific Computation PETSc is needed to build the system.")])77[AC_MSG_ERROR("The Portable Extensible Toolkit for Scientific Computation (PETSc) is needed to build the system.")])
7478
75AC_OUTPUT79AC_OUTPUT
diff --git a/doc/build-cobalt.txt b/doc/build-cobalt.txt
deleted file mode 100644
index 76612a4..0000000
--- a/doc/build-cobalt.txt
+++ b/dev/null
@@ -1,42 +0,0 @@
1Building on NCSA Cobalt.
2
3-- Soft
4.soft
5
6@remove +hdf4
7@remove +hdf4-4.2.1
8@remove +hdf5
9@remove +hdf5-1.6.5
10
11@remove +intel-compilers
12@remove +intel-compilers10.0
13@remove +intel-compilers10.1
14@remove +intel-c-10.1.017-f-10.1.017
15@remove +intel-c-11.1.064-f-11.1.064
16
17...defaults...
18
19+phdf5-1.8.4
20
21-- Configure
22export PETSC_DIR=/u/ac/dpellegr/apps/Installers/petsc-3.0.0-p10
23
24export CPPFLAGS="\
25-I$HDF5_HOME/include \
26-I$NCBI_DIR/include \
27-I$PETSC_DIR/include \
28-I$PETSC_DIR/linux-gnu-c-debug/include"
29
30export LDFLAGS="\
31-L$HDF5_HOME/lib \
32-L/usr/apps/hdf/szip/lib \
33-L/usr/local/intel/10.1.017/lib \
34-L$NCBI_DIR/lib \
35-L$PETSC_DIR/linux-gnu-c-debug/lib"
36
37export LD_LIBRARY_PATH=\
38$LD_LIBRARY_PATH:\
39/usr/apps/hdf/szip/lib:\
40$PETSC_DIR/linux-gnu-c-debug/lib
41
42
diff --git a/doc/env-cobalt.sh b/doc/env-cobalt.sh
new file mode 100644
index 0000000..5a7a6c3
--- a/dev/null
+++ b/doc/env-cobalt.sh
@@ -0,0 +1,56 @@
1#!/bin/bash
2
3# This script sets environment variables for building and running the
4# project on NCSA Cobalt. Note that this script should be executed
5# with source env-cobalt.sh rather than ./env-cobalt.sh so that the
6# exports affect the current shell.
7
8# Building on NCSA Cobalt.
9
10# .soft
11#
12# @remove +hdf4
13# @remove +hdf4-4.2.1
14# @remove +hdf5
15# @remove +hdf5-1.6.5
16#
17# @remove +intel-compilers
18# @remove +intel-compilers10.0
19# @remove +intel-compilers10.1
20# @remove +intel-c-10.1.017-f-10.1.017
21# @remove +intel-c-11.1.064-f-11.1.064
22#
23# ...defaults...
24#
25# +phdf5-1.8.4
26
27# Configure
28
29echo "Setting CPPFLAGS."
30
31export CPPFLAGS="\
32-I$HDF5_HOME/include \
33-I$NCBI_DIR/include \
34-I$PETSC_DIR/$PETSC_ARCH/include"
35
36echo CPPFLAGS=$CPPFLAGS
37
38echo "Setting LDFLAGS."
39
40export LDFLAGS="\
41-L$HDF5_HOME/lib \
42-L/usr/apps/hdf/szip/lib \
43-L/usr/local/intel/10.1.017/lib \
44-L$NCBI_DIR/lib \
45-L$PETSC_DIR/$PETSC_ARCH/lib"
46
47echo LDFLAGS=$LDFLAGS
48
49echo "Setting LD_LIBRARY_PATH."
50
51export LD_LIBRARY_PATH=\
52$LD_LIBRARY_PATH:\
53/usr/apps/hdf/szip/lib:\
54$PETSC_DIR/$PETSC_ARCH/lib
55
56echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.