Index: ../trunk-jpl/externalpackages/petsc/install-dev-pleiades.sh =================================================================== --- ../trunk-jpl/externalpackages/petsc/install-dev-pleiades.sh (revision 13792) +++ ../trunk-jpl/externalpackages/petsc/install-dev-pleiades.sh (revision 13793) @@ -1,8 +1,7 @@ #!/bin/bash -set -eu #Step 0: download #Step 1: install and write script -STEP=0 +STEP=1 if [ $STEP -eq 0 ]; then # Adapted from petsc 3.2. @@ -23,10 +22,13 @@ # Note: using metis from externalpackages did not work... # for now downloading new metis # -then rename metis in externalpackages to metis2 +# +# --download-prometheus=yes \ +#--download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \ +# --download-plapack=yes \ + if [ $STEP -eq 1 ]; then - mkdir install - #configure cd src ./config/configure.py \ @@ -35,13 +37,11 @@ --PETSC_ARCH="$ISSM_ARCH" \ --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \ --with-debugging=0 \ - --with-shared-libraries=0 \ + --with-shared-libraries=1 \ --with-blas-lapack-dir=/nasa/intel/mkl/10.0.011/ \ --known-mpi-shared-libraries=1 \ - --with-mpi-lib=/nasa/sgi/mpt/2.04/lib/libmpi.so \ - --with-mpi-include=/nasa/sgi/mpt/2.04/include \ + --with-mpi=1 \ --download-mumps=yes \ - --download-plapack=yes \ --download-scalapack=yes \ --download-blacs=yes \ --download-blas=yes \ @@ -50,35 +50,29 @@ --download-metis=yes \ --download-trilinos=yes \ --download-euclid=yes \ - --download-pastix=yes \ - --download-ptscotch=yes \ - --download-spooles=yes \ --download-spai=yes \ - --download-superlu=yes \ + --download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \ --download-hypre=yes \ - --download-prometheus=yes \ - --FFLAGS=-I/usr/include \ - --with-cxx=icpc \ - --with-cc=icc \ - --with-fc=ifort \ - --COPTFLAGS=" -O3 -xS" \ - --FOPTFLAGS=" -O3 -xS" \ - --CXXOPTFLAGS=" -O3 -xS" \ - --with-pic=1 + --with-cxx=/nasa/sgi/mpt/2.06a67/bin/mpicxx \ + --with-fc=/nasa/sgi/mpt/2.06a67/bin/mpif90 \ + --COPTFLAGS="-lmpi -O3" \ + --FOPTFLAGS="-lmpi -O3" \ + --CXXOPTFLAGS="-lmpi -O3" cat > script.queue << EOF #PBS -S /bin/bash -#PBS -q debug -#PBS -l select=1:ncpus=1:model=har +#PBS -l select=1:ncpus=1:model=wes #PBS -l walltime=200 #PBS -W group_list=s1010 #PBS -m e . /usr/share/modules/init/bash -module load comp-intel/11.1.046 -module load mpi-sgi/mpt.2.04 #DEFINES MPI_Type_create_indexed_block +module load comp-intel/2012.0.032 +module load mpi-sgi/mpt.2.06a67 module load math/intel_mkl_64_10.0.011 export PATH="$PATH:." export MPI_GROUP_MAX=64 mpiexec -np 1 ./conftest-linux-gnu-ia64-intel.py EOF - echo "== Follow PETSc's instructions" + echo "== Now: cd src/ " + echo "== qsub -q devel script.queue " + echo "== Then run reconfigure script generated by PETSc and follow instructions" fi