source: issm/oecreview/Archive/18296-19100/ISSM-18358-18359.diff@ 19102

Last change on this file since 19102 was 19102, checked in by Mathieu Morlighem, 10 years ago

NEW: added 18296-19100

File size: 2.5 KB
  • TabularUnified ../trunk-jpl/externalpackages/dakota/install-5.3.1-macosx64-snowleopard.sh

     
    2222export DAK_SRC=$ISSM_DIR/externalpackages/dakota/src
    2323export DAK_BUILD=$ISSM_DIR/externalpackages/dakota/build
    2424cp $DAK_SRC/cmake/BuildDakotaTemplate.cmake $DAK_SRC/cmake/BuildDakotaCustom.cmake
    25 patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/5.3.1/BuildDakotaCustom.cmake.patch
     25patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/5.3.1/BuildDakotaCustom.cmake.mac.patch
    2626patch $DAK_SRC/cmake/DakotaDev.cmake configs/5.3.1/DakotaDev.cmake.patch
    2727
    2828#Apply patches
     
    3232patch src/src/NonDLocalReliability.cpp configs/5.3.1/NonDLocalReliability.cpp.patch
    3333patch src/packages/pecos/src/pecos_global_defs.hpp configs/5.3.1/pecos_global_defs.hpp.patch
    3434
     35export BOOST_ROOT=$ISSM_DIR/externalpackages/boost/install
     36
    3537#Configure dakota
     38# Set your local gcc compiler here
    3639cd $DAK_BUILD
    37 #cmake -D CMAKE_C_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gcc -D CMAKE_CXX_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-g++ -D CMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran -D BOOST_ROOT=/opt/local -D Boost_INCLUDE_DIR=/opt/local/include -C $DAK_SRC/cmake/BuildDakotaCustom.cmake -C $DAK_SRC/cmake/DakotaDev.cmake $DAK_SRC
    38 cmake -D CMAKE_C_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gcc -D CMAKE_CXX_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-g++ -D CMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran -D LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH -D LDFLAGS="-L/usr/lib -lstdc++" -C $DAK_SRC/cmake/BuildDakotaCustom.cmake -C $DAK_SRC/cmake/DakotaDev.cmake $DAK_SRC
     40cmake -DBoost_NO_BOOST_CMAKE=TRUE \
     41    -DBoost_NO_SYSTEM_PATHS=TRUE \
     42    -DBOOST_ROOT:PATHNAME=$BOOST_ROOT \
     43    -DBoost_LIBRARY_DIRS:FILEPATH=${BOOST_ROOT}/lib \
     44         -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc \
     45         -DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran \
     46    -C $DAK_SRC/cmake/BuildDakotaCustom.cmake -C $DAK_SRC/cmake/DakotaDev.cmake $DAK_SRC
     47
     48#-DCMAKE_CXX_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-g++ -DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran
     49
    3950cd ..
    4051
    4152#Compile and install dakota
Note: See TracBrowser for help on using the repository browser.