source: issm/oecreview/Archive/21337-21723/ISSM-21684-21685.diff@ 21726

Last change on this file since 21726 was 21726, checked in by Mathieu Morlighem, 8 years ago

CHG added Archive/21337-21723

File size: 2.8 KB
  • ../trunk-jpl/externalpackages/petsc/install-3.7-pleiades_dakota6.2.sh

     
    1 #!/bin/bash
    2 set -eu
    3 
    4 #Some cleanup
    5 rm -rf install petsc-3.7.6 src
    6 mkdir install src
    7 
    8 #Download from ISSM server
    9 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-lite-3.7.6.tar.gz' 'petsc-3.7.6.tar.gz'
    10 
    11 #Untar and move petsc to install directory
    12 tar -zxvf  petsc-3.7.6.tar.gz
    13 mv petsc-3.7.6/* src/
    14 rm -rf petsc-3.7.6
    15 
    16 #configure
    17 cd src
    18 ./config/configure.py \
    19         --prefix="$ISSM_DIR/externalpackages/petsc/install" \
    20         --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
    21         --with-cc=icc --with-cxx=icpc --with-fc=ifort --with-f77=ifort \
    22         --with-blas-lapack-dir="/nasa/intel/mkl/10.0.011" \
    23         --known-mpi-shared-libraries=1 \
    24         --with-debugging=0 \
    25         --with-valgrind=0 \
    26         --with-x=0 \
    27         --with-ssl=0 \
    28         --with-batch=1  \
    29         --with-shared-libraries=1 \
    30         --download-metis=1 \
    31         --download-parmetis=1 \
    32         --download-mumps=1 \
    33         --download-scalapack=1 \
    34         --download-ml=1 \
    35         --download-pastix=1 \
    36         --download-ptscotch=1 \
    37         --download-hypre=1 \
    38         --download-euclid=1 \
    39         --download-spooles=1 \
    40         --download-spai=1 \
    41         --download-superlu_dist=1 \
    42         --download-scalapack=1
    43 
    44 #prepare script to reconfigure petsc
    45 cat > script.queue << EOF
    46 #PBS -S /bin/bash
    47 #PBS -l select=1:ncpus=1:model=bro
    48 #PBS -l walltime=200
    49 #PBS -W group_list=s1690
    50 #PBS -m e
    51 
    52 . /usr/share/modules/init/bash
    53 module load comp-intel/2016.2.181
    54 module load mpi-sgi/mpt
    55 module load math/intel_mkl_64_10.0.011
    56 
    57 export PATH="$PATH:."
    58 export MPI_GROUP_MAX=64
    59 mpiexec -np 1 ./conftest-arch-linux2-c-opt
    60 EOF
    61 
    62 #print instructions
    63 echo "== Now: cd src/ "
    64 echo "== qsub -q devel script.queue "
    65 echo "== Then run reconfigure script generated by PETSc and follow instructions"
  • ../trunk-jpl/externalpackages/petsc/install-3.7-pleiades.sh

     
    3030        --download-metis=1 \
    3131        --download-parmetis=1 \
    3232        --download-mumps=1 \
    33         --download-scalapack=1 \
    34         --download-ml=1 \
    35         --download-pastix=1 \
    36         --download-ptscotch=1 \
    37         --download-hypre=1 \
    38         --download-euclid=1 \
    39         --download-spooles=1 \
    40         --download-spai=1 \
    41         --download-superlu_dist=1 \
    4233        --download-scalapack=1
    4334
    4435#prepare script to reconfigure petsc
     
    5041#PBS -m e
    5142
    5243. /usr/share/modules/init/bash
     44module load pkgsrc
    5345module load comp-intel/2016.2.181
    5446module load mpi-sgi/mpt
    5547
Note: See TracBrowser for help on using the repository browser.