author | Don Pellegrino <don@drexel.edu> | 2010-01-25 18:55:47 (GMT) |
---|---|---|
committer | Don Pellegrino <don@drexel.edu> | 2010-01-25 18:55:47 (GMT) |
commit | 9184eadaef5518db7941d9999b4ce54dda088c73 (patch) (unidiff) | |
tree | d9ca65b0feb0ffbc65f4f8c97243987ed72c79a3 | |
parent | 72edf83cbac32ea26f056ae85373ad7179707333 (diff) | |
download | exp007-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-- | .gitignore | 3 | ||||
-rwxr-xr-x | autogen.sh | 2 | ||||
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | doc/build-cobalt.txt | 42 | ||||
-rw-r--r-- | doc/env-cobalt.sh | 56 |
5 files changed, 65 insertions, 46 deletions
@@ -1,5 +1,6 @@ | |||
1 | *~ | ||
2 | *.o | 1 | *.o |
2 | *~ | ||
3 | .deps | ||
3 | COPYING | 4 | COPYING |
4 | INSTALL | 5 | INSTALL |
5 | Makefile | 6 | Makefile |
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | automake --add-missing | 3 | automake --add-missing |
4 | autoreconf | 4 | autoreconf --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 | ################# |
59 | 59 | ||
60 | AC_SEARCH_LIBS([pthread_atfork],[pthread]) | ||
61 | |||
62 | AC_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 in | 66 | # Autoconf determines if the other-libraries are necessary however in |
62 | # the cases where they are indeed necessary they are not actually | 67 | # 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 from | 70 | # These are the dependencies. Random functions are selected from |
66 | # these libraries from the list of otherwise undefined references at | 71 | # these libraries from the list of otherwise undefined references at |
67 | # link time. | 72 | # link time. |
68 | AC_SEARCH_LIBS([PetscInitialize],[petsc]) | ||
69 | AC_SEARCH_LIBS([VecNorm],[petscvec]) | 73 | AC_SEARCH_LIBS([VecNorm],[petscvec]) |
70 | 74 | ||
71 | # MatCreateSeqAIJ is acutally used in the code for this project. | 75 | # MatCreateSeqAIJ is acutally used in the code for this project. |
72 | AC_SEARCH_LIBS([MatCreateSeqAIJ],[petscmat],[], | 76 | AC_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.")]) |
74 | 78 | ||
75 | AC_OUTPUT | 79 | AC_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 @@ | |||
1 | Building 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 | ||
22 | export PETSC_DIR=/u/ac/dpellegr/apps/Installers/petsc-3.0.0-p10 | ||
23 | |||
24 | export 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 | |||
30 | export 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 | |||
37 | export 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 | |||
29 | echo "Setting CPPFLAGS." | ||
30 | |||
31 | export CPPFLAGS="\ | ||
32 | -I$HDF5_HOME/include \ | ||
33 | -I$NCBI_DIR/include \ | ||
34 | -I$PETSC_DIR/$PETSC_ARCH/include" | ||
35 | |||
36 | echo CPPFLAGS=$CPPFLAGS | ||
37 | |||
38 | echo "Setting LDFLAGS." | ||
39 | |||
40 | export 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 | |||
47 | echo LDFLAGS=$LDFLAGS | ||
48 | |||
49 | echo "Setting LD_LIBRARY_PATH." | ||
50 | |||
51 | export LD_LIBRARY_PATH=\ | ||
52 | $LD_LIBRARY_PATH:\ | ||
53 | /usr/apps/hdf/szip/lib:\ | ||
54 | $PETSC_DIR/$PETSC_ARCH/lib | ||
55 | |||
56 | echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH | ||