[16556] | 1 | Index: ../trunk-jpl/externalpackages/petsc/install-3.4-pleiades-mpich2.sh
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/externalpackages/petsc/install-3.4-pleiades-mpich2.sh (revision 16529)
|
---|
| 4 | +++ ../trunk-jpl/externalpackages/petsc/install-3.4-pleiades-mpich2.sh (revision 16530)
|
---|
| 5 | @@ -1,61 +0,0 @@
|
---|
| 6 | -#!/bin/bash
|
---|
| 7 | -
|
---|
| 8 | -#Some cleanup
|
---|
| 9 | -rm -rf install petsc-3.4.2 src
|
---|
| 10 | -mkdir install src
|
---|
| 11 | -
|
---|
| 12 | -#Download from ISSM server
|
---|
| 13 | -$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-lite-3.4.2.tar.gz' 'petsc-3.4.2.tar.gz'
|
---|
| 14 | -
|
---|
| 15 | -#Untar and move petsc to install directory
|
---|
| 16 | -tar -zxvf petsc-3.4.2.tar.gz
|
---|
| 17 | -mv petsc-3.4.2/* src/
|
---|
| 18 | -rm -rf petsc-3.4.2
|
---|
| 19 | -
|
---|
| 20 | -#configure
|
---|
| 21 | -cd src
|
---|
| 22 | -./config/configure.py \
|
---|
| 23 | - --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
| 24 | - --PETSC_ARCH="$ISSM_ARCH" \
|
---|
| 25 | - --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
| 26 | - --with-batch=1 \
|
---|
| 27 | - --with-debugging=0 \
|
---|
| 28 | - --with-shared-libraries=1 \
|
---|
| 29 | - --known-mpi-shared-libraries=1 \
|
---|
| 30 | - --with-mpi=1 \
|
---|
| 31 | - --with-mpi-lib="/nasa/mvapich2/1.6.sles11/gcc/lib/libmpich.a"\
|
---|
| 32 | - --with-mpi-include="/nasa/mvapich2/1.6.sles11/gcc/include" \
|
---|
| 33 | - --download-f-blas-lapack=yes \
|
---|
| 34 | - --download-scalapack=yes \
|
---|
| 35 | - --download-blacs=yes \
|
---|
| 36 | - --download-mumps=yes \
|
---|
| 37 | - --download-metis=yes \
|
---|
| 38 | - --download-parmetis=yes \
|
---|
| 39 | - --download-trilinos=yes \
|
---|
| 40 | - --download-euclid=yes \
|
---|
| 41 | - --download-hypre=yes \
|
---|
| 42 | - --COPTFLAGS="-lmpich" \
|
---|
| 43 | - --FOPTFLAGS="-lmpich" \
|
---|
| 44 | - --CXXOPTFLAGS="-lmpich"
|
---|
| 45 | -
|
---|
| 46 | -#prepare script to reconfigure petsc
|
---|
| 47 | -cat > script.queue << EOF
|
---|
| 48 | -#PBS -S /bin/bash
|
---|
| 49 | -#PBS -l select=1:ncpus=1:model=wes
|
---|
| 50 | -#PBS -l walltime=200
|
---|
| 51 | -#PBS -W group_list=s1010
|
---|
| 52 | -#PBS -m e
|
---|
| 53 | -
|
---|
| 54 | -. /usr/share/modules/init/bash
|
---|
| 55 | -module load mpi-mvapich2/1.6/gcc
|
---|
| 56 | -module load gcc/4.7.0
|
---|
| 57 | -
|
---|
| 58 | -export PATH="$PATH:."
|
---|
| 59 | -export MPI_GROUP_MAX=64
|
---|
| 60 | -mpiexec -np 1 ./conftest-linux-gnu-ia64-intel.py
|
---|
| 61 | -EOF
|
---|
| 62 | -
|
---|
| 63 | -#print instructions
|
---|
| 64 | -echo "== Now: cd src/ "
|
---|
| 65 | -echo "== qsub -q devel script.queue "
|
---|
| 66 | -echo "== Then run reconfigure script generated by PETSc and follow instructions"
|
---|
| 67 | Index: ../trunk-jpl/externalpackages/petsc/install-3.4-pleiades-mpich2-gcc470.sh
|
---|
| 68 | ===================================================================
|
---|
| 69 | --- ../trunk-jpl/externalpackages/petsc/install-3.4-pleiades-mpich2-gcc470.sh (revision 0)
|
---|
| 70 | +++ ../trunk-jpl/externalpackages/petsc/install-3.4-pleiades-mpich2-gcc470.sh (revision 16530)
|
---|
| 71 | @@ -0,0 +1,61 @@
|
---|
| 72 | +#!/bin/bash
|
---|
| 73 | +
|
---|
| 74 | +#Some cleanup
|
---|
| 75 | +rm -rf install petsc-3.4.2 src
|
---|
| 76 | +mkdir install src
|
---|
| 77 | +
|
---|
| 78 | +#Download from ISSM server
|
---|
| 79 | +$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-lite-3.4.2.tar.gz' 'petsc-3.4.2.tar.gz'
|
---|
| 80 | +
|
---|
| 81 | +#Untar and move petsc to install directory
|
---|
| 82 | +tar -zxvf petsc-3.4.2.tar.gz
|
---|
| 83 | +mv petsc-3.4.2/* src/
|
---|
| 84 | +rm -rf petsc-3.4.2
|
---|
| 85 | +
|
---|
| 86 | +#configure
|
---|
| 87 | +cd src
|
---|
| 88 | +./config/configure.py \
|
---|
| 89 | + --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
| 90 | + --PETSC_ARCH="$ISSM_ARCH" \
|
---|
| 91 | + --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
| 92 | + --with-batch=1 \
|
---|
| 93 | + --with-debugging=0 \
|
---|
| 94 | + --with-shared-libraries=1 \
|
---|
| 95 | + --known-mpi-shared-libraries=1 \
|
---|
| 96 | + --with-mpi=1 \
|
---|
| 97 | + --with-mpi-lib="/nasa/mvapich2/1.6.sles11/gcc/lib/libmpich.a"\
|
---|
| 98 | + --with-mpi-include="/nasa/mvapich2/1.6.sles11/gcc/include" \
|
---|
| 99 | + --download-f-blas-lapack=yes \
|
---|
| 100 | + --download-scalapack=yes \
|
---|
| 101 | + --download-blacs=yes \
|
---|
| 102 | + --download-mumps=yes \
|
---|
| 103 | + --download-metis=yes \
|
---|
| 104 | + --download-parmetis=yes \
|
---|
| 105 | + --download-trilinos=yes \
|
---|
| 106 | + --download-euclid=yes \
|
---|
| 107 | + --download-hypre=yes \
|
---|
| 108 | + --COPTFLAGS="-lmpich" \
|
---|
| 109 | + --FOPTFLAGS="-lmpich" \
|
---|
| 110 | + --CXXOPTFLAGS="-lmpich"
|
---|
| 111 | +
|
---|
| 112 | +#prepare script to reconfigure petsc
|
---|
| 113 | +cat > script.queue << EOF
|
---|
| 114 | +#PBS -S /bin/bash
|
---|
| 115 | +#PBS -l select=1:ncpus=1:model=wes
|
---|
| 116 | +#PBS -l walltime=200
|
---|
| 117 | +#PBS -W group_list=s1010
|
---|
| 118 | +#PBS -m e
|
---|
| 119 | +
|
---|
| 120 | +. /usr/share/modules/init/bash
|
---|
| 121 | +module load mpi-mvapich2/1.6/gcc
|
---|
| 122 | +module load gcc/4.7.0
|
---|
| 123 | +
|
---|
| 124 | +export PATH="$PATH:."
|
---|
| 125 | +export MPI_GROUP_MAX=64
|
---|
| 126 | +mpiexec -np 1 ./conftest-linux-gnu-ia64-intel.py
|
---|
| 127 | +EOF
|
---|
| 128 | +
|
---|
| 129 | +#print instructions
|
---|
| 130 | +echo "== Now: cd src/ "
|
---|
| 131 | +echo "== qsub -q devel script.queue "
|
---|
| 132 | +echo "== Then run reconfigure script generated by PETSc and follow instructions"
|
---|
| 133 |
|
---|
| 134 | Property changes on: ../trunk-jpl/externalpackages/petsc/install-3.4-pleiades-mpich2-gcc470.sh
|
---|
| 135 | ___________________________________________________________________
|
---|
| 136 | Added: svn:executable
|
---|
| 137 | ## -0,0 +1 ##
|
---|
| 138 | +*
|
---|
| 139 | \ No newline at end of property
|
---|