source: issm/trunk-jpl/externalpackages/petsc/install-dev-pleiades.sh@ 13246

Last change on this file since 13246 was 13246, checked in by seroussi, 13 years ago

CHG: added set -eu in all installation files to stop if an error occurs

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#!/bin/bash
2set -eu
3#Step 0: download
4#Step 1: install and write script
5STEP=0
6
7if [ $STEP -eq 0 ]; then
8 # Adapted from petsc 3.2.
9 # Used Mercurial to get code
10 rm -rf src
11 hg clone http://petsc.cs.iit.edu/petsc/petsc-dev src
12 cd src
13 hg clone http://petsc.cs.iit.edu/petsc/BuildSystem config/BuildSystem
14fi
15
16# To update (via Mercurial):
17# cd petsc-dev
18# hg pull -u
19# cd config/BuildSystem
20# hg pull -u
21
22# configure script
23# Note: using metis from externalpackages did not work...
24# for now downloading new metis
25# -then rename metis in externalpackages to metis2
26if [ $STEP -eq 1 ]; then
27
28 mkdir install
29
30 #configure
31 cd src
32 ./config/configure.py \
33 --prefix="$ISSM_DIR/externalpackages/petsc/install" \
34 --with-batch=1 \
35 --PETSC_ARCH="$ISSM_ARCH" \
36 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
37 --with-debugging=0 \
38 --with-shared-libraries=0 \
39 --with-blas-lapack-dir=/nasa/intel/mkl/10.0.011/ \
40 --known-mpi-shared-libraries=1 \
41 --with-mpi-lib=/nasa/sgi/mpt/2.04/lib/libmpi.so \
42 --with-mpi-include=/nasa/sgi/mpt/2.04/include \
43 --download-mumps=yes \
44 --download-plapack=yes \
45 --download-scalapack=yes \
46 --download-blacs=yes \
47 --download-blas=yes \
48 --download-f-blas-lapack=yes \
49 --download-parmetis=yes \
50 --download-metis=yes \
51 --download-trilinos=yes \
52 --download-euclid=yes \
53 --download-pastix=yes \
54 --download-ptscotch=yes \
55 --download-spooles=yes \
56 --download-spai=yes \
57 --download-superlu=yes \
58 --download-hypre=yes \
59 --download-prometheus=yes \
60 --FFLAGS=-I/usr/include \
61 --with-cxx=icpc \
62 --with-cc=icc \
63 --with-fc=ifort \
64 --COPTFLAGS=" -O3 -xS" \
65 --FOPTFLAGS=" -O3 -xS" \
66 --CXXOPTFLAGS=" -O3 -xS" \
67 --with-pic=1
68 cat > script.queue << EOF
69#PBS -S /bin/bash
70#PBS -q debug
71#PBS -l select=1:ncpus=1:model=har
72#PBS -l walltime=200
73#PBS -W group_list=s1010
74#PBS -m e
75. /usr/share/modules/init/bash
76module load comp-intel/11.1.046
77module load mpi-sgi/mpt.2.04 #DEFINES MPI_Type_create_indexed_block
78module load math/intel_mkl_64_10.0.011
79export PATH="$PATH:."
80export MPI_GROUP_MAX=64
81mpiexec -np 1 ./conftest-linux-gnu-ia64-intel.py
82EOF
83 echo "== Follow PETSc's instructions"
84fi
Note: See TracBrowser for help on using the repository browser.