Changeset 12312


Ignore:
Timestamp:
06/01/12 12:37:28 (13 years ago)
Author:
schlegel
Message:

fixed cut and paste problem

File:
1 edited

Legend:

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

    r12308 r12312  
    11#!/bin/bash
    2 
    3 echo "Currently, this script must be pasted line by line into the terminal"
    42
    53#Get number of cpus
     
    86#Some cleanup
    97rm -rf Dakota
    10 rm -rf src 
    11 rm -rf install 
    12 mkdir src install 
     8rm -rf src
     9rm -rf install
     10mkdir src install
    1311
    1412#Download from ISSM server
     
    3331#Configure dakota
    3432cd src
    35 
    36 ./configure \
    37         --prefix="$ISSM_DIR/externalpackages/dakota/install/" \
    38         --without-graphics  \
    39         --with-pic \
    40         --disable-mpi \
    41         --with-blas="-L/usr/local/intel/mkl/10.1.2.024/lib/64/ -lmkl -lmkl_lapack -liomp5 -lpthread" \
    42         --with-lapack="-L/usr/local/intel/mkl/10.1.2.024/lib/64/ -lmkl -lmkl_lapack -liomp5 -lpthread"
    43 
     33./configure \
     34--prefix="$ISSM_DIR/externalpackages/dakota/install/" \
     35--without-graphics  \
     36--with-pic \
     37--disable-mpi \
     38--with-blas="-L/usr/local/intel/mkl/10.1.2.024/lib/64/ -lmkl -lmkl_lapack -liomp5 -lpthread" \
     39--with-lapack="-L/usr/local/intel/mkl/10.1.2.024/lib/64/ -lmkl -lmkl_lapack -liomp5 -lpthread"
    4440cd ..
    4541
     
    5753
    5854cat ./src/methods/hopspack/src-cddlib/Makefile | sed 's/CFLAGS = -g -O2/CFLAGS = -g -O2 -fPIC/g' > temp
    59 mv temp  ./src/methods/hopspack/src-cddlib/Makefile 
     55mv temp  ./src/methods/hopspack/src-cddlib/Makefile
    6056
    6157cat ./src/methods/hopspack/src-shared/Makefile | sed 's/CFLAGS = -g -O2/CFLAGS = -g -O2 -fPIC/g' > temp
    62 mv temp  ./src/methods/hopspack/src-shared/Makefile 
     58mv temp  ./src/methods/hopspack/src-shared/Makefile
    6359
    6460cat ./src/methods/hopspack/src-shared/Makefile | sed 's/CXXFLAGS = -g -O2/CXXFLAGS = -g -O2  -fPIC/g' > temp
    65 mv temp  ./src/methods/hopspack/src-shared/Makefile 
     61mv temp  ./src/methods/hopspack/src-shared/Makefile
    6662
    6763cat ./src/methods/hopspack/src-conveyor/Makefile | sed 's/CXXFLAGS = -g -O2/CXXFLAGS = -g -O2 -fPIC/g' > temp
    68 mv temp  ./src/methods/hopspack/src-conveyor/Makefile 
     64mv temp  ./src/methods/hopspack/src-conveyor/Makefile
    6965
    7066cat ./src/methods/hopspack/src-appspack/Makefile | sed 's/CXXFLAGS = -g -O2/CXXFLAGS = -g -O2  -fPIC/g' > temp
    71 mv temp ./src/methods/hopspack/src-appspack/Makefile 
     67mv temp ./src/methods/hopspack/src-appspack/Makefile
    7268
    7369cat ./src/methods/acro/packages/colin/src/Makefile | sed 's/CXXFLAGS = -O2 -fpermissive/CXXFLAGS = -O2 -fpermissive -fPIC/g' > temp
     
    7874
    7975cat ./src/methods/acro/packages/tpl/3po/Makefile | sed 's/CFLAGS = -O2/CFLAGS = -O2 -fPIC/g' > temp
    80 mv temp  ./src/methods/acro/packages/tpl/3po/Makefile 
     76mv temp  ./src/methods/acro/packages/tpl/3po/Makefile
    8177
    8278cat ./src/methods/acro/packages/tpl/3po/Makefile | sed 's/CXXFLAGS = -O2 -fpermissive/CFLAGS = -O2 -fpermissive -fPIC/g' > temp
    83 mv temp  ./src/methods/acro/packages/tpl/3po/Makefile 
     79mv temp  ./src/methods/acro/packages/tpl/3po/Makefile
    8480
    8581cat ./src/packages/ampl/Makefile | sed 's/CFLAGS = -g -O2/CFLAGS = -g -O2 -fPIC/g' > temp
    86 mv temp  ./src/packages/ampl/Makefile 
     82mv temp  ./src/packages/ampl/Makefile
    8783
    8884#Compile and install dakota
    89 cd src 
     85cd src
    9086if [ -z $NUMCPUS ];
    9187then
Note: See TracChangeset for help on using the changeset viewer.