Changeset 13796
- Timestamp:
- 10/22/12 14:29:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/petsc/install-3.3-pleiades.sh
r13794 r13796 1 1 #!/bin/bash 2 #Step 0: download3 #Step 1: install and write script4 STEP=15 2 6 if [ $STEP -eq 0 ]; then 7 8 #Some cleanup 9 rm -rf install petsc-3.3-p2 src 10 mkdir install src 3 #Some cleanup 4 rm -rf install petsc-3.3-p2 src 5 mkdir install src 11 6 12 13 7 #Download from ISSM server 8 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-lite-3.3-p2.tar.gz' 'petsc-3.3-p2.tar.gz' 14 9 15 #Untar and move petsc to install directory 16 tar -zxvf petsc-3.3-p2.tar.gz 17 mv petsc-3.3-p2/* src/ 18 rm -rf petsc-3.3-p2 19 fi 10 #Untar and move petsc to install directory 11 tar -zxvf petsc-3.3-p2.tar.gz 12 mv petsc-3.3-p2/* src/ 13 rm -rf petsc-3.3-p2 20 14 21 if [ $STEP -eq 1 ]; then 15 #configure 16 cd src 17 ./config/configure.py \ 18 --prefix="$ISSM_DIR/externalpackages/petsc/install" \ 19 --with-batch=1 \ 20 --PETSC_ARCH="$ISSM_ARCH" \ 21 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \ 22 --with-debugging=0 \ 23 --with-shared-libraries=1 \ 24 --with-blas-lapack-dir=/nasa/intel/mkl/10.0.011/ \ 25 --known-mpi-shared-libraries=1 \ 26 --with-mpi=1 \ 27 --download-mumps=yes \ 28 --download-blacs=yes \ 29 --download-blas=yes \ 30 --download-f-blas-lapack=yes \ 31 --download-parmetis=yes \ 32 --download-metis=yes \ 33 --download-trilinos=yes \ 34 --download-euclid=yes \ 35 --download-spai=yes \ 36 --download-superlu=yes \ 37 --download-hypre=yes \ 38 --download-prometheus=yes \ 39 --with-cxx=/nasa/sgi/mpt/2.06a67/bin/mpicxx \ 40 --with-fc=/nasa/sgi/mpt/2.06a67/bin/mpif90 \ 41 --COPTFLAGS="-lmpi -O3" \ 42 --FOPTFLAGS="-lmpi -O3" \ 43 --CXXOPTFLAGS="-lmpi -O3" 22 44 23 mkdir install 24 25 #configure 26 cd src 27 ./config/configure.py \ 28 --prefix="$ISSM_DIR/externalpackages/petsc/install" \ 29 --with-batch=1 \ 30 --PETSC_ARCH="$ISSM_ARCH" \ 31 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \ 32 --with-debugging=0 \ 33 --with-shared-libraries=1 \ 34 --with-blas-lapack-dir=/nasa/intel/mkl/10.0.011/ \ 35 --known-mpi-shared-libraries=1 \ 36 --with-mpi=1 \ 37 --download-mumps=yes \ 38 --download-blacs=yes \ 39 --download-blas=yes \ 40 --download-f-blas-lapack=yes \ 41 --download-parmetis=yes \ 42 --download-metis=yes \ 43 --download-trilinos=yes \ 44 --download-euclid=yes \ 45 --download-spai=yes \ 46 --download-superlu=yes \ 47 --download-hypre=yes \ 48 --download-prometheus=yes \ 49 --with-cxx=/nasa/sgi/mpt/2.06a67/bin/mpicxx \ 50 --with-fc=/nasa/sgi/mpt/2.06a67/bin/mpif90 \ 51 --COPTFLAGS="-lmpi -O3" \ 52 --FOPTFLAGS="-lmpi -O3" \ 53 --CXXOPTFLAGS="-lmpi -O3" 54 cat > script.queue << EOF 45 #prepare script to reconfigure petsc 46 cat > script.queue << EOF 55 47 #PBS -S /bin/bash 56 48 #PBS -l select=1:ncpus=1:model=wes … … 66 58 mpiexec -np 1 ./conftest-linux-gnu-ia64-intel.py 67 59 EOF 68 echo "== Now: cd src/ " 69 echo "== qsub -q devel script.queue " 70 echo "== Then run reconfigure script generated by PETSc and follow instructions" 71 fi 60 61 #print instructions 62 echo "== Now: cd src/ " 63 echo "== qsub -q devel script.queue " 64 echo "== Then run reconfigure script generated by PETSc and follow instructions"
Note:
See TracChangeset
for help on using the changeset viewer.