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

CHG: Fixes for ADOL-C build; cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.