Last change
on this file since 23449 was 23449, checked in by jdquinn, 6 years ago |
CHG: Updated all external package install scripts with path to bash script
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Rev | Line | |
---|
[16516] | 1 | #!/bin/bash
|
---|
| 2 | set -eu
|
---|
| 3 |
|
---|
| 4 | #Some cleanup
|
---|
[16547] | 5 | rm -rf install petsc-3.4.3 src
|
---|
[16516] | 6 | mkdir install src
|
---|
| 7 |
|
---|
| 8 | #Download from ISSM server
|
---|
[23449] | 9 | $ISSM_DIR/scripts/DownloadExternalPackage.sh 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-lite-3.4.3.tar.gz' 'petsc-3.4.3.tar.gz'
|
---|
[16516] | 10 |
|
---|
| 11 | #Untar and move petsc to install directory
|
---|
[16547] | 12 | tar -zxvf petsc-3.4.3.tar.gz
|
---|
| 13 | mv petsc-3.4.3/* src/
|
---|
| 14 | rm -rf petsc-3.4.3
|
---|
[16516] | 15 |
|
---|
| 16 | #configure
|
---|
| 17 | cd src
|
---|
| 18 | ./config/configure.py \
|
---|
| 19 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
| 20 | --PETSC_ARCH="$ISSM_ARCH" \
|
---|
| 21 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
| 22 | --with-batch=1 \
|
---|
| 23 | --with-debugging=0 \
|
---|
| 24 | --with-shared-libraries=1 \
|
---|
| 25 | --known-mpi-shared-libraries=1 \
|
---|
| 26 | --with-mpi=1 \
|
---|
| 27 | --with-mpi-dir=/sopt/mpi/openmpi-1.5.4_psm/intel/ \
|
---|
| 28 | --with-blas-lapack-dir=/opt/intel/mkl/10.2.4.032/ \
|
---|
| 29 | --download-scalapack=yes \
|
---|
| 30 | --download-blacs=yes \
|
---|
| 31 | --download-mumps=yes \
|
---|
| 32 | --download-metis=yes \
|
---|
| 33 | --download-parmetis=yes \
|
---|
| 34 | --download-trilinos=yes \
|
---|
| 35 | --download-euclid=yes \
|
---|
| 36 | --download-hypre=yes \
|
---|
| 37 | --COPTFLAGS="-lmpi -O3" \
|
---|
| 38 | --FOPTFLAGS="-lmpi -O3" \
|
---|
| 39 | --CXXOPTFLAGS="-lmpi -O3"
|
---|
| 40 |
|
---|
| 41 | #prepare script to reconfigure petsc
|
---|
| 42 | cat > script.queue << EOF
|
---|
| 43 | #PBS -S /bin/bash
|
---|
| 44 | #PBS -l nodes=1:ppn=1
|
---|
| 45 | #PBS -q c6145
|
---|
| 46 | #PBS -l walltime=10
|
---|
| 47 |
|
---|
| 48 | cd $(echo $ISSM_DIR)/externalpackages/petsc/src/
|
---|
| 49 | mpiexec -np 1 ./conftest-arch-linux2-c-opt
|
---|
| 50 | EOF
|
---|
| 51 |
|
---|
| 52 | #print instructions
|
---|
| 53 | echo "== Now: cd src/ "
|
---|
| 54 | echo "== qsub script.queue "
|
---|
| 55 | echo "== Then run reconfigure script generated by PETSc and follow instructions"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.