Changeset 24610


Ignore:
Timestamp:
02/27/20 12:36:56 (5 years ago)
Author:
jdquinn
Message:

CHG: Fixes for ADOL-C build; cleanup

Location:
issm/trunk-jpl/externalpackages
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/adjoinablempi/install.sh

    r23435 r24610  
    22set -eu
    33
    4 #Some cleanup
    5 rm -rf src  install
    64
    75# Keeping this for potential future use
    8 #Mercurial cloning: 
     6#Mercurial cloning:
    97#hg clone -r 268 http://mercurial.mcs.anl.gov//ad/AdjoinableMPI src
    108
    11 #Download from ISSM server
    12 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/adjoinablempi' 'adjoinablempi.tar.gz'
     9# Cleanup
     10rm -rf install src
     11mkdir install src
    1312
    14 #Untar ADOL-C
    15 tar -zxf  adjoinablempi.tar.gz
     13# Download source
     14${ISSM_DIR}/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/adjoinablempi.tar.gz" "adjoinablempi.tar.gz"
    1615
    17 #Configure adjoinablempi
     16# Unpack source
     17tar -zxvf adjoinablempi.tar.gz
     18
     19# Configure
    1820cd src
    1921./configure \
    20         --prefix="$ISSM_DIR/externalpackages/adjoinablempi/install" \
    21         --libdir="$ISSM_DIR/externalpackages/adjoinablempi/install/lib" \
    22         --with-mpi-root="$ISSM_DIR/externalpackages/mpich/install" \
     22        --prefix="${ISSM_DIR}/externalpackages/adjoinablempi/install" \
     23        --libdir="${ISSM_DIR}/externalpackages/adjoinablempi/install/lib" \
     24        --with-mpi-root="${ISSM_DIR}/externalpackages/mpich/install" \
    2325        --enable-requestOnTrace
    2426
    25 #Compile adjoinablempi
     27# Clean
    2628make clean
     29
     30# Compile
    2731if [ $# -eq 0 ]; then
    28         make 
     32        make
    2933else
    3034        make -j $1
    3135fi
     36
     37# Install
    3238make install
  • issm/trunk-jpl/externalpackages/adolc/install-withampi.sh

    r23435 r24610  
    11#!/bin/bash
    22set -eu
    3  
    4 #Some cleanup
    5 rm -rf install src
     3
    64
    75# Keeping the following commented line for potential future use.
    86#git clone https://gitlab.com/adol-c/adol-c.git src
    97
    10 #Download from ISSM server
    11 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/ADOL-C' 'ADOL-C.tar.gz'
     8## Environment
     9#
     10export CFLAGS="-O2 -L${ISSM_DIR}/externalpackages/mpich/install/lib -lmpi"
     11export CXXFLAGS="-O2 -std=c++11 -L${ISSM_DIR}/externalpackages/mpich/install/lib -lmpi"
    1212
    13 #Untar ADOL-C
    14 tar -zxf  ADOL-C.tar.gz
     13# Cleanup
     14rm -rf install src
     15mkdir install src
    1516
    16 #Compile ADOL-C
    17 export CFLAGS="-O2 -L$ISSM_DIR/externalpackages/mpich/install/lib -lmpi"
    18 export CXXFLAGS="-O2 -std=c++11 -L$ISSM_DIR/externalpackages/mpich/install/lib -lmpi"
     17# Download source
     18${ISSM_DIR}/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/ADOL-C.tar.gz" "ADOL-C.tar.gz"
     19
     20# Unpack source
     21tar -zxvf ADOL-C.tar.gz
     22
     23# Configure
    1924cd src
    20 ./configure --prefix=$ISSM_DIR/externalpackages/adolc/install  \
    21         --libdir=$ISSM_DIR/externalpackages/adolc/install/lib \
    22         --with-mpi-root=$ISSM_DIR/externalpackages/mpich/install \
     25./configure \
     26        --prefix=${ISSM_DIR}/externalpackages/adolc/install \
     27        --libdir=${ISSM_DIR}/externalpackages/adolc/install/lib \
     28        --with-mpi-root=${ISSM_DIR}/externalpackages/mpich/install \
    2329        --enable-ampi \
    24         --with-ampi=$ISSM_DIR/externalpackages/adjoinablempi/install \
     30        --with-ampi=${ISSM_DIR}/externalpackages/adjoinablempi/install \
    2531        --with-soname=adolc \
    2632        --disable-tapedoc-values
    2733
     34# Clean
    2835make clean
     36
     37# Compile
    2938if [ $# -eq 0 ]; then
    3039        make V=1
     
    3241        make -j $1 V=1
    3342fi
     43
     44# Install
    3445make V=1 install
  • issm/trunk-jpl/externalpackages/petsc/install-3.7-linux.sh

    r24526 r24610  
    1111
    1212# Unpack source
    13 tar -zxvf  petsc-$VER.tar.gz
     13tar -zxvf petsc-$VER.tar.gz
    1414
    1515# Cleanup
     
    5353        make -j $1 install
    5454fi
    55 
    56 # Return to initial directory
    57 cd ..
Note: See TracChangeset for help on using the changeset viewer.