source: issm/trunk/externalpackages/petsc/install-3.5-pleiades-intel2012.0.032-mpt.2.06rp16.sh@ 24313

Last change on this file since 24313 was 24313, checked in by Mathieu Morlighem, 5 years ago

merged trunk-jpl and trunk for revision 24310

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf install petsc-3.5.1 src
6mkdir install src
7
8#Download from ISSM server
9$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.5.1.tar.gz' 'petsc-3.5.1.tar.gz'
10
11#Untar and move petsc to install directory
12tar -zxvf petsc-3.5.1.tar.gz
13mv petsc-3.5.1/* src/
14rm -rf petsc-3.5.1
15
16#configure
17cd 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-lib="/nasa/sgi/mpt/2.06rp16/lib/libmpi.so" \
28 --with-mpi-include="/nasa/sgi/mpt/2.06rp16/include" \
29 --with-blas-lapack-dir="/nasa/intel/Compiler/2012.0.032/composer_xe_2011_sp1/mkl/lib/intel64" \
30 --download-scalapack=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
42cat > script.queue << EOF
43#PBS -S /bin/bash
44#PBS -l select=1:ncpus=1:model=wes
45#PBS -l walltime=200
46#PBS -W group_list=s1010
47#PBS -m e
48
49. /usr/share/modules/init/bash
50module load comp-intel/2012.0.032
51module load math/intel_mkl_64_10.0.011
52module load mpi-sgi/mpt.2.06rp16
53
54export PATH="$PATH:."
55export MPI_GROUP_MAX=64
56mpiexec -np 1 ./conftest-linux-gnu-ia64-intel.py
57EOF
58
59#print instructions
60echo "== Now: cd src/ "
61echo "== qsub -q devel script.queue "
62echo "== Then run reconfigure script generated by PETSc and follow instructions"
Note: See TracBrowser for help on using the repository browser.