Changeset 27187


Ignore:
Timestamp:
08/03/22 16:09:34 (3 years ago)
Author:
jdquinn
Message:

CHG: Workaround for machines that do not have Python 2

Location:
issm/trunk-jpl/externalpackages/dakota
Files:
2 edited

Legend:

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

    r26250 r27187  
    1212#
    1313export BLAS_LIBS="-L${BLAS_ROOT}/lib -lfblas -L/usr/lib/x86_64-linux-gnu -lgfortran" # Need to export BLAS_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
    14 export CXXFLAGS='-std=c++98' # Setting CXXFLAGS to deal with C++11 incompatibility with MATLAB's Boost (absolutely necessary for this version)
    15 #export CXXFLAGS='-std=c++11'
    1614export DAK_BUILD=${ISSM_DIR}/externalpackages/dakota/build # DO NOT CHANGE THIS
    1715export DAK_INSTALL=${PREFIX} # DO NOT CHANGE THIS
     
    5452        -DCMAKE_C_FLAGS="-Wno-error=implicit-function-declaration" \
    5553        -DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \
     54        -DCMAKE_CXX_STANDARD="11" \
    5655        -DCMAKE_Fortran_COMPILER=${MPI_HOME}/bin/mpif77 \
    5756        -DBoost_NO_BOOST_CMAKE=TRUE \
  • issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh

    r27158 r27187  
    77VER="6.2"
    88
    9 PREFIX="${ISSM_DIR}/externalpackages/dakota/install" # Set to location where external package should be installed
     9PREFIX="${ISSM_EXT_SHARED_DIR}/dakota/install" # Set to location where external package should be installed
    1010
    1111## Environment
    1212#
    13 
    14 # Check for Python 2, required by Dakota
    15 #
    16 PYTHON_EXECUTABLE=$(which python2) || echo "Error: This version of Dakota requires Python 2"
    1713
    1814# Find libgfortran so that we do not have to hardcode it.
     
    6157cp configs/${VER}/mac/cmake/InstallDarwinDylibs.cmake ${DAK_SRC}/cmake
    6258
     59# Disable requirement of Python 2 for TriBITS
     60sed -i'' -e 's|SET(PythonInterp_FIND_VERSION|#SET(PythonInterp_FIND_VERSION|' ${DAK_SRC}/packages/teuchos/cmake/tribits/package_arch/TribitsFindPythonInterp.cmake
     61
    6362# Configure
    6463cd ${DAK_BUILD}
     
    6968        -DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \
    7069        -DCMAKE_CXX_FLAGS="-fdelayed-template-parsing" \
     70        -DCMAKE_CXX_STANDARD="11" \
    7171        -DCMAKE_Fortran_COMPILER=${MPI_HOME}/bin/mpif77 \
    72         -DCMAKE_Fortran_FLAGS="-fallow-argument-mismatch" \
    73         -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} \
    7472        -DBoost_NO_BOOST_CMAKE=TRUE \
    7573        -DHAVE_ACRO=OFF \
Note: See TracChangeset for help on using the changeset viewer.