Changeset 27202
- Timestamp:
- 08/16/22 10:19:53 (3 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 1 added
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/etc/environment.sh
r27162 r27202 355 355 fi 356 356 357 QD_ROOT="${ISSM_EXT_DIR}/qd/install" 358 if [ -d "${QD_ROOT}" ]; then 359 export QD_ROOT # Used in installation of MPLAPACK 360 library_path_prepend "${QD_ROOT}/lib" 361 ld_library_path_prepend "${QD_ROOT}/lib" 362 fi 363 357 364 SCALAPACK_ROOT="${ISSM_EXT_DIR}/scalapack/install" 358 365 if [ -d "${SCALAPACK_ROOT}" ]; then … … 443 450 ld_library_path_append "${TAO_ROOT}/lib" 444 451 445 DAKOTA_ROOT="${ISSM_EXT_DIR}/dakota/install"446 if [ -d "${DAKOTA_ROOT}" ]; then447 path_append "${DAKOTA_ROOT}/bin"448 ld_library_path_append "${DAKOTA_ROOT}/lib"449 dyld_library_path_prepend "${DAKOTA_ROOT}/lib"450 fi451 452 NCO_ROOT="${ISSM_EXT_DIR}/nco/install/bin"453 path_prepend "${NCO_ROOT}/bin"454 455 CPPCHECK_ROOT="${ISSM_EXT_DIR}/cppcheck/install"456 path_append "${CPPCHECK_ROOT}/bin"457 458 MERCURIAL_ROOT="${ISSM_EXT_DIR}/mercurial/install"459 if [ -d "${MERCURIAL_ROOT}" ]; then460 export PYTHONPATH="${PYTHONPATH}:${MERCURIAL_ROOT}/mercurial/pure/"461 path_append "${MERCURIAL_ROOT}"462 fi463 464 452 BOOST_ROOT="${ISSM_EXT_DIR}/boost/install" 465 453 if [ -d "${BOOST_ROOT}" ]; then … … 467 455 export BOOST_DIR=${BOOST_ROOT} 468 456 export BOOSTROOT=${BOOST_ROOT} 469 library_path_append "${BOOST_ROOT}/lib"470 ld_library_path_append "${BOOST_ROOT}/lib"471 dyld_library_path_append "${BOOST_ROOT}/lib"472 457 path_append "${BOOST_ROOT}/bin" 458 library_path_prepend "${BOOST_ROOT}/lib" 459 ld_library_path_prepend "${BOOST_ROOT}/lib" 460 dyld_library_path_prepend "${BOOST_ROOT}/lib" 461 fi 462 463 DAKOTA_ROOT="${ISSM_EXT_DIR}/dakota/install" 464 if [ -d "${DAKOTA_ROOT}" ]; then 465 path_append "${DAKOTA_ROOT}/bin" 466 ld_library_path_prepend "${DAKOTA_ROOT}/lib" 467 dyld_library_path_prepend "${DAKOTA_ROOT}/lib" 468 fi 469 470 NCO_ROOT="${ISSM_EXT_DIR}/nco/install/bin" 471 path_prepend "${NCO_ROOT}/bin" 472 473 CPPCHECK_ROOT="${ISSM_EXT_DIR}/cppcheck/install" 474 path_append "${CPPCHECK_ROOT}/bin" 475 476 MERCURIAL_ROOT="${ISSM_EXT_DIR}/mercurial/install" 477 if [ -d "${MERCURIAL_ROOT}" ]; then 478 export PYTHONPATH="${PYTHONPATH}:${MERCURIAL_ROOT}/mercurial/pure/" 479 path_append "${MERCURIAL_ROOT}" 473 480 fi 474 481 -
issm/trunk-jpl/externalpackages/autotools/install-linux.sh
r26805 r27202 60 60 fi 61 61 cd .. 62 62 63 # Install Automake 63 64 echo " === INSTALLING AUTOMAKE ===" -
issm/trunk-jpl/externalpackages/boost/install-1.7-mac.sh
r25860 r27202 54 54 install_name_tool -id ${PREFIX}/lib/${name} ${name} 2>/dev/null 55 55 done 56 57 if [ "${VER}" == "1_79_0" ]; then 58 ## Patch install names for certain libraries 59 # 60 # TODO: Figure out how to reconfigure source to apply these install names at compile time 61 # 62 install_name_tool -change @rpath/libboost_atomic.dylib ${PREFIX}/lib/libboost_atomic.dylib libboost_filesystem.dylib 63 fi -
issm/trunk-jpl/externalpackages/chaco/install.sh
r25860 r27202 8 8 9 9 PREFIX="${ISSM_DIR}/externalpackages/chaco/install" # Set to location where external package should be installed 10 11 ## Environment 12 # 13 export CFLAGS="-Wno-error=implicit-function-declaration" 10 14 11 15 # Cleanup -
issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh
r27194 r27202 53 53 cp configs/${VER}/linux/cmake/DakotaDev.cmake ${DAK_SRC}/cmake 54 54 55 # Disable requirement of Python 2 for TriBITS 56 sed -i'' -e 's|SET(PythonInterp_FIND_VERSION|#SET(PythonInterp_FIND_VERSION|' ${DAK_SRC}/packages/teuchos/cmake/tribits/package_arch/TribitsFindPythonInterp.cmake 57 55 58 # Configure 56 59 cd ${DAK_BUILD} -
issm/trunk-jpl/externalpackages/dakota/install-6.2-linux.sh
r27187 r27202 44 44 cp configs/${VER}/linux/cmake/DakotaDev.cmake ${DAK_SRC}/cmake 45 45 46 # Disable requirement of Python 2 for TriBITS 47 sed -i'' -e 's|SET(PythonInterp_FIND_VERSION|#SET(PythonInterp_FIND_VERSION|' ${DAK_SRC}/packages/teuchos/cmake/tribits/package_arch/TribitsFindPythonInterp.cmake 48 46 49 # Configure 47 50 cd ${DAK_BUILD} -
issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
r27194 r27202 71 71 # cp configs/${VER}/mac/static/packages/nidr/nidr-scanner.c ${DAK_SRC}/packages/nidr 72 72 73 # Disable requirement of Python 2 for TriBITS 74 sed -i'' -e 's|SET(PythonInterp_FIND_VERSION|#SET(PythonInterp_FIND_VERSION|' ${DAK_SRC}/packages/teuchos/cmake/tribits/package_arch/TribitsFindPythonInterp.cmake 75 73 76 # Configure 74 77 cd ${DAK_BUILD} -
issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh
r27194 r27202 5 5 # TODO: 6 6 # - Add support for, 7 # - BLAS_LAPACK8 7 # - MUMPS 9 # - PETSC 10 # (see configs/4/static/CMakeLists.txt) 8 # - PETSc 9 # 10 # See Also: 11 # - configs/4/static/CMakeLists.txt 12 # - http://gmsh.info/doc/texinfo/gmsh.html#Compiling-the-source-code 11 13 # 12 14 13 15 ## Constants 14 16 # 15 VER="4.5.6" 17 VER="4.10.5" 18 19 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed 16 20 17 21 # Find libgfortran and libgcc so we do not have to hardcode them … … 23 27 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 24 28 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 25 26 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed27 29 28 30 # Cleanup … … 39 41 mv gmsh-${VER}-source/* src 40 42 rm -rf gmsh-${VER}-source 41 42 # Copy customized source and config files to 'src' directory43 cp configs/${VER}/static/CMakeLists.txt src44 43 45 44 # Configure … … 59 58 -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ 60 59 -DENABLE_BUILD_LIB=1 \ 60 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" \ 61 -DENABLE_BLAS_LAPACK=1 \ 62 -DENABLE_EIGEN=0 \ 61 63 -DENABLE_FLTK=0 \ 62 64 -DENABLE_MPEG_ENCODE=0 \ … … 64 66 -DENABLE_OCC=0 \ 65 67 -DENABLE_TOUCHBAR=0 \ 66 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" \67 68 -DMETIS_ROOT="${METIS_ROOT}" 68 69 -
issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh
r27194 r27202 5 5 # TODO: 6 6 # - Add support for, 7 # - BLAS_LAPACK8 7 # - MUMPS 9 # - PETSC 10 # (see configs/4/static/CMakeLists.txt) 8 # - PETSc 9 # 10 # See Also: 11 # - configs/4/static/CMakeLists.txt 12 # - http://gmsh.info/doc/texinfo/gmsh.html#Compiling-the-source-code 11 13 # 12 14 13 15 ## Constants 14 16 # 15 VER="4. 5.6"17 VER="4.10.5" 16 18 17 19 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed … … 56 58 -DENABLE_BUILD_DYNAMIC=1 \ 57 59 -DENABLE_BUILD_SHARED=1 \ 60 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas -L${LIBGFORTRAN_ROOT} -lgfortran" \ 61 -DENABLE_BLAS_LAPACK=1 \ 62 -DENABLE_EIGEN=0 \ 58 63 -DENABLE_FLTK=0 \ 59 64 -DENABLE_MPEG_ENCODE=0 \ … … 61 66 -DENABLE_OCC=0 \ 62 67 -DENABLE_TOUCHBAR=0 \ 63 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas -L${LIBGFORTRAN_ROOT} -lgfortran" \64 68 -DMETIS_ROOT="${METIS_ROOT}" 65 69 -
issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh
r27191 r27202 5 5 # TODO: 6 6 # - Add support for, 7 # - BLAS_LAPACK8 7 # - MUMPS 9 # - PETSC 10 # (see configs/4/static/CMakeLists.txt) 8 # - PETSc 9 # 10 # See Also: 11 # - configs/4/static/CMakeLists.txt 12 # - http://gmsh.info/doc/texinfo/gmsh.html#Compiling-the-source-code 11 13 # 12 14 13 15 ## Constants 14 16 # 15 VER="4.5.6" 17 VER="4.10.5" 18 19 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed 20 16 21 17 22 # Find libgfortran and libgcc so we do not have to hardcode them … … 27 32 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 28 33 LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1) 29 30 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed31 34 32 35 # Cleanup … … 63 66 -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ 64 67 -DENABLE_BUILD_LIB=1 \ 68 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" \ 69 -DENABLE_BLAS_LAPACK=1 \ 70 -DENABLE_EIGEN=0 \ 65 71 -DENABLE_FLTK=0 \ 66 72 -DENABLE_MPEG_ENCODE=0 \ … … 68 74 -DENABLE_OCC=0 \ 69 75 -DENABLE_TOUCHBAR=0 \ 70 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" \71 76 -DMETIS_ROOT="${METIS_ROOT}" 72 77 -
issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh
r27191 r27202 5 5 # TODO: 6 6 # - Add support for, 7 # - BLAS_LAPACK8 7 # - MUMPS 9 # - PETSC 10 # (see configs/4/static/CMakeLists.txt) 8 # - PETSc 9 # 10 # See Also: 11 # - configs/4/static/CMakeLists.txt 12 # - http://gmsh.info/doc/texinfo/gmsh.html#Compiling-the-source-code 11 13 # 12 14 13 15 ## Constants 14 16 # 15 VER="4. 5.6"17 VER="4.10.5" 16 18 17 19 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed … … 59 61 -DENABLE_BUILD_DYNAMIC=1 \ 60 62 -DENABLE_BUILD_SHARED=1 \ 63 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas -L${LIBGFORTRAN_ROOT} -lgfortran" \ 64 -DENABLE_BLAS_LAPACK=1 \ 65 -DENABLE_EIGEN=0 \ 61 66 -DENABLE_FLTK=0 \ 62 67 -DENABLE_MPEG_ENCODE=0 \ … … 64 69 -DENABLE_OCC=0 \ 65 70 -DENABLE_TOUCHBAR=0 \ 66 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas -L${LIBGFORTRAN_ROOT} -lgfortran" \67 71 -DMETIS_ROOT="${METIS_ROOT}" 68 72 -
issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh
r27194 r27202 5 5 ## Constants 6 6 # 7 VER="6. 0.0"7 VER="6.4.0" 8 8 9 9 # Find libgfortran and libgcc so we do not have to hardcode them … … 61 61 cmake \ 62 62 -DBLAS_LIBRARIES="${BLAS_ROOT}/lib/libfblas.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \ 63 -DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \ 64 -DCURL_LIBRARY="${CURL_ROOT}/lib/libcurl.a" \ 63 65 -DGDAL_EXTRA_LIBS="${GDAL_EXTRA_LIBS}" \ 64 66 -DHDF5_ROOT="${HDF5_ROOT}" \ -
issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh
r26246 r27202 5 5 ## Constants 6 6 # 7 VER="6.0.0" 7 VER="6.4.0" 8 9 # Find libgfortran so that we do not have to hardcode it. 10 # 11 # TODO: 12 # - Move this to etc/environment.sh 13 # 14 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 15 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 8 16 9 17 # Environment … … 42 50 # 43 51 cmake \ 44 -D CURL_LIBRARY="${CURL_ROOT}/lib" \52 -DBLAS_LIBRARIES="-L${BLAS_ROOT}/lib;-lfblas;-L${LIBGFORTRAN_ROOT};-lgfortran" \ 45 53 -DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \ 54 -DCURL_LIBRARY="-L${CURL_ROOT}/lib;-lcurl" \ 55 -DLAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib;-lflapack;-L${LIBGFORTRAN_ROOT};-lgfortran" \ 46 56 .. 47 57 -
issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
r27191 r27202 5 5 ## Constants 6 6 # 7 VER="6. 0.0"7 VER="6.4.0" 8 8 9 9 # Find libgfortran and libgcc so we do not have to hardcode them … … 65 65 cmake \ 66 66 -DBLAS_LIBRARIES="${BLAS_ROOT}/lib/libfblas.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \ 67 -DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \ 68 -DCURL_LIBRARY="${CURL_ROOT}/lib/libcurl.a" \ 67 69 -DGDAL_EXTRA_LIBS="${GDAL_EXTRA_LIBS}" \ 68 70 -DHDF5_ROOT="${HDF5_ROOT}" \ -
issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh
r26246 r27202 5 5 ## Constants 6 6 # 7 VER="6.0.0" 7 VER="6.4.0" 8 9 # Find libgfortran so that we do not have to hardcode it. 10 # 11 # Should retrieve a copy of gfortran that is compiled from source before 12 # returning one that is installed via package manager. 13 # 14 # TODO: 15 # - Move this to etc/environment.sh 16 # 17 LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1) 18 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 8 19 9 20 # Environment … … 42 53 # 43 54 cmake \ 44 -D CURL_LIBRARY="${CURL_ROOT}/lib" \55 -DBLAS_LIBRARIES="-L${BLAS_ROOT}/lib;-lfblas;-L${LIBGFORTRAN_ROOT};-lgfortran" \ 45 56 -DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \ 57 -DCURL_LIBRARY="-L${CURL_ROOT}/lib;-lcurl" \ 58 -DLAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib;-lflapack;-L${LIBGFORTRAN_ROOT};-lgfortran" \ 46 59 .. 47 60 -
issm/trunk-jpl/externalpackages/gsl/install.sh
r27048 r27202 3 3 4 4 5 # Constants5 ## Constants 6 6 # 7 7 VER="2.7" -
issm/trunk-jpl/externalpackages/petsc/install-3.12-linux.sh
r26239 r27202 18 18 # Cleanup 19 19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR}20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.12-lonestar.sh
r25899 r27202 1 1 #!/bin/bash 2 2 set -eu 3 3 4 4 5 ## Constants 5 6 # 6 7 VER="3.12.3" 8 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 7 11 8 12 # Download source … … 13 17 14 18 # Cleanup 15 rm -rf install src16 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 17 21 18 # Move source to 'src' directory19 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 20 24 rm -rf petsc-${VER} 21 25 22 # configure23 cd src26 # Configure 27 cd ${PETSC_DIR} 24 28 ./config/configure.py \ 25 --prefix="$ ISSM_DIR/externalpackages/petsc/install" \26 --PETSC_DIR="$ ISSM_DIR/externalpackages/petsc/src" \29 --prefix="${PREFIX}" \ 30 --PETSC_DIR="${PETSC_DIR}" \ 27 31 --with-mpi-dir="/opt/cray/pe/mpt/7.7.3/gni/mpich-intel/16.0/" \ 28 32 --with-blas-lapack-dir="$TACC_MKL_LIB" \ -
issm/trunk-jpl/externalpackages/petsc/install-3.12-mac.sh
r25959 r27202 18 18 # Cleanup 19 19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR}20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.12-win-msys2-gcc-msmpi.sh
r26034 r27202 18 18 # Cleanup 19 19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR}20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.13-pleiades.sh
r26406 r27202 20 20 # Cleanup 21 21 rm -rf ${PREFIX} ${PETSC_DIR} 22 mkdir ${PETSC_DIR}22 mkdir -p ${PETSC_DIR} 23 23 24 24 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.14-discover.sh
r27000 r27202 3 3 4 4 5 # NOTE: There is a single difference between the Linux and macOS 6 # configurations, which is the addition of the -static-libgfortran 7 # option to FFLAGS on the macOS static configurations. For the sake of 8 # consistency, we maintain separate files for each, respective Linux and 9 # macOS configuration. 10 11 # Constants 5 ## Constants 6 # 12 7 VER="3.14.6" 13 8 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 11 14 12 # Download source 15 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https:// ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"13 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 16 14 17 15 # Unpack source … … 19 17 20 18 # Cleanup 21 rm -rf install src22 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 23 21 24 # Move source to 'src' directory25 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 26 24 rm -rf petsc-${VER} 27 25 28 26 # Configure 29 cd src27 cd ${PETSC_DIR} 30 28 ./config/configure.py \ 31 29 COPTFLAGS="-g -O3" CXXOPTFLAGS="-g -O3" FOPTFLAGS="-g -O3" \ 32 --prefix="${ ISSM_DIR}/externalpackages/petsc/install" \33 --PETSC_DIR="${ ISSM_DIR}/externalpackages/petsc/src" \30 --prefix="${PREFIX}" \ 31 --PETSC_DIR="${PETSC_DIR}" \ 34 32 --with-debugging=0 \ 35 33 --with-valgrind=0 \ -
issm/trunk-jpl/externalpackages/petsc/install-3.14-greenplanet.sh
r25635 r27202 2 2 set -eu 3 3 4 #WARNING: make sure you have the right mpi5 4 6 #Some cleanup 7 rm -rf install petsc-3.14.0 src 8 mkdir install src 5 # WARNING: Make sure you have the right MPI 9 6 10 #Download from ISSM server 11 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.14.0.tar.gz' 'petsc-3.14.0.tar.gz' 7 ## Constants 8 # 9 VER="3.14.0" 12 10 13 #Untar and move petsc to install directory 14 tar -zxvf petsc-3.14.0.tar.gz 15 mv petsc-3.14.0/* src/ 16 rm -rf petsc-3.14.0 11 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 12 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 13 14 # Download source 15 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 16 17 # Unpack source 18 tar -zxvf petsc-${VER}.tar.gz 19 20 # Cleanup 21 rm -rf ${PREFIX} ${PETSC_DIR} 22 mkdir -p ${PETSC_DIR} 23 24 # Move source to $PETSC_DIR 25 mv petsc-${VER}/* ${PETSC_DIR} 26 rm -rf petsc-${VER} 17 27 18 28 #configure 19 cd src29 cd ${PETSC_DIR} 20 30 ./config/configure.py \ 21 31 COPTFLAGS="-g -O3" CXXOPTFLAGS="-g -O3" FOPTFLAGS="-g -O3" \ 22 --prefix="$ ISSM_DIR/externalpackages/petsc/install" \23 --PETSC_DIR="$ ISSM_DIR/externalpackages/petsc/src" \32 --prefix="${PREFIX}" \ 33 --PETSC_DIR="${PETSC_DIR}" \ 24 34 --with-blas-lapack-dir="/sopt/INTEL/compilers_and_libraries_2018.3.222/linux/mkl/" \ 25 35 --with-mpi-dir="/sopt/OpenMPI/3.1.2/intel-2018.3-slim/" \ -
issm/trunk-jpl/externalpackages/petsc/install-3.14-linux.sh
r27000 r27202 18 18 # Cleanup 19 19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR}20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.14-mac-nohdf5.sh
r27000 r27202 18 18 # Cleanup 19 19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR}20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.14-mac.sh
r27000 r27202 18 18 # Cleanup 19 19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR}20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.14-pleiades.sh
r27000 r27202 18 18 # Cleanup 19 19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR}20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.14-tetralith.sh
r27000 r27202 3 3 4 4 5 # NOTE: There is a single difference between the Linux and macOS 6 # configurations, which is the addition of the -static-libgfortran 7 # option to FFLAGS on the macOS static configurations. For the sake of 8 # consistency, we maintain separate files for each, respective Linux and 9 # macOS configuration. 5 ## Constants 6 # 7 VER="3.14.6" 10 8 11 # Constants 12 VER="3.14.6" 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 13 11 14 12 # Download source … … 19 17 20 18 # Cleanup 21 rm -rf install src22 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 23 21 24 # Move source to 'src' directory25 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 26 24 rm -rf petsc-${VER} 27 25 28 26 # Configure 29 cd src27 cd ${PETSC_DIR} 30 28 ./config/configure.py \ 31 29 COPTFLAGS="-g -O2" CXXOPTFLAGS="-g -O2" FOPTFLAGS="-g -O2" \ 32 --prefix="${ ISSM_DIR}/externalpackages/petsc/install" \33 --PETSC_DIR="${ ISSM_DIR}/externalpackages/petsc/src" \30 --prefix="${PREFIX}" \ 31 --PETSC_DIR="${PETSC_DIR}" \ 34 32 --with-debugging=0 \ 35 33 --with-valgrind=0 \ -
issm/trunk-jpl/externalpackages/petsc/install-3.14-win-msys2-mingw-msmpi.sh
r27000 r27202 32 32 # Cleanup 33 33 rm -rf ${PREFIX} ${PETSC_DIR} 34 mkdir ${PETSC_DIR}34 mkdir -p ${PETSC_DIR} 35 35 36 36 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.15-babylon.sh
r26413 r27202 11 11 12 12 # Download source 13 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https:// ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"13 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 14 14 15 15 # Unpack source … … 18 18 # Cleanup 19 19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR}20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR -
issm/trunk-jpl/externalpackages/petsc/install-3.15-discovery.sh
r26993 r27202 3 3 4 4 ## Constants 5 # 5 6 VER="3.15.3" 6 7 8 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 9 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 10 7 11 # Download source 8 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https:// ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"12 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 9 13 10 14 # Unpack source … … 12 16 13 17 # Cleanup 14 rm -rf install src15 mkdir install src18 rm -rf ${PREFIX} ${PETSC_DIR} 19 mkdir -p ${PETSC_DIR} 16 20 17 # Move source to 'src' directory18 mv petsc-${VER}/* src/21 # Move source to $PETSC_DIR 22 mv petsc-${VER}/* ${PETSC_DIR} 19 23 rm -rf petsc-${VER} 20 24 21 cd src 25 # Configure 26 cd ${PETSC_DIR} 22 27 ./config/configure.py \ 23 28 COPTFLAGS="-g -O3" CXXOPTFLAGS="-g -O3" FOPTFLAGS="-g -O3" \ 24 --prefix="${ ISSM_DIR}/externalpackages/petsc/install" \25 --PETSC_DIR="${ ISSM_DIR}/externalpackages/petsc/src" \29 --prefix="${PREFIX}" \ 30 --PETSC_DIR="${PETSC_DIR}" \ 26 31 --with-make-np=20 \ 27 32 --with-blas-lapack-dir=$MKL_ROOT \ -
issm/trunk-jpl/externalpackages/petsc/install-3.15-pleiades.sh
r26950 r27202 14 14 15 15 # Unpack source 16 tar -zxvf petsc- 3.15.0.tar.gz16 tar -zxvf petsc-${VER}.tar.gz 17 17 18 18 # Cleanup 19 rm -rf install src20 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR 23 mv petsc-3.15.0/* src/ 24 rm -rf petsc-3.15.0 25 23 mv petsc-${VER}/* ${PETSC_DIR} 24 rm -rf petsc-${VER} 26 25 27 26 # Configure 28 27 # 29 # NOTE: Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables; look for CONFIGURE_OPTIONS 28 # NOTE: 29 # - Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables (look 30 # for CONFIGURE_OPTIONS) 30 31 # 31 cd src32 cd ${PETSC_DIR} 32 33 ./config/configure.py \ 33 34 --prefix="${PREFIX}" \ -
issm/trunk-jpl/externalpackages/petsc/install-3.16-linux.sh
r26496 r27202 3 3 4 4 ## Constants 5 # 5 6 VER="3.16.0" 6 7 … … 9 10 10 11 # Download source 11 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https:// ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"12 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 12 13 13 14 # Unpack source … … 15 16 16 17 # Cleanup 17 rm -rf install src18 mkdir install src18 rm -rf ${PREFIX} ${PETSC_DIR} 19 mkdir -p ${PETSC_DIR} 19 20 20 21 # Move source to $PETSC_DIR 21 mv petsc-${VER}/* src/22 mv petsc-${VER}/* ${PETSC_DIR} 22 23 rm -rf petsc-${VER} 23 24 24 25 # Configure 25 cd src26 cd ${PETSC_DIR} 26 27 ./config/configure.py \ 27 --prefix="${ ISSM_DIR}/externalpackages/petsc/install" \28 --PETSC_DIR="${ ISSM_DIR}/externalpackages/petsc/src" \28 --prefix="${PREFIX}" \ 29 --PETSC_DIR="${PETSC_DIR}" \ 29 30 -COPTFLAGS="-g -O2" -CXXOPTFLAGS="-g -O2" -FOPTFLAGS="-g -O2" \ 30 31 --with-debugging=0 \ -
issm/trunk-jpl/externalpackages/petsc/install-3.16-pleiades.sh
r26950 r27202 17 17 18 18 # Cleanup 19 rm -rf install src20 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 21 21 22 22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* src/23 mv petsc-${VER}/* ${PETSC_DIR} 24 24 rm -rf petsc-${VER} 25 25 … … 27 27 # Configure 28 28 # 29 # NOTE: Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables; look for CONFIGURE_OPTIONS 29 # NOTE: 30 # - Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables (look 31 # for CONFIGURE_OPTIONS) 30 32 # 31 cd src33 cd ${PETSC_DIR} 32 34 ./config/configure.py \ 33 35 --prefix="${PREFIX}" \ -
issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-intel.sh
r27041 r27202 2 2 set -eu 3 3 4 4 5 ## Constants 5 VER="3.17.1" 6 # 7 VER="3.17.4" 8 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 6 11 7 12 # Download source 8 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https:// ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"13 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 9 14 10 15 # Unpack source … … 12 17 13 18 # Cleanup 14 rm -rf install src15 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 16 21 17 # Move source to 'src' directory18 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 19 24 rm -rf petsc-${VER} 20 25 21 cd src 26 # Configure 27 cd ${PETSC_DIR} 22 28 ./configure \ 23 --prefix="${ ISSM_DIR}/externalpackages/petsc/install" \24 --PETSC_DIR="${ ISSM_DIR}/externalpackages/petsc/src" \29 --prefix="${PREFIX}" \ 30 --PETSC_DIR="${PETSC_DIR}" \ 25 31 --with-debugging=0 \ 26 32 --with-valgrind=0 \ … … 34 40 --download-scalapack=1 \ 35 41 --download-mumps=1 \ 36 --download-zlib=1 42 --download-zlib=1 \ 43 --download-hdf5=1 37 44 38 45 # Compile and install 39 46 make 40 47 make install 48 -
issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-m1-static.sh
r27042 r27202 2 2 set -eu 3 3 4 4 5 ## Constants 5 VER="3.17.1" 6 # 7 VER="3.17.4" 8 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 6 11 7 12 # Download source 8 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https:// ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"13 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 9 14 10 15 # Unpack source … … 12 17 13 18 # Cleanup 14 rm -rf install src15 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 16 21 17 # Move source to 'src' directory18 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 19 24 rm -rf petsc-${VER} 20 25 … … 34 39 # 35 40 # for gfortran 10 or later (may need to remove it for earlier versions). 36 cd src37 ./config ure\38 --prefix="${ ISSM_DIR}/externalpackages/petsc/install" \39 --PETSC_DIR="${ ISSM_DIR}/externalpackages/petsc/src" \41 cd ${PETSC_DIR} 42 ./config/configure.py \ 43 --prefix="${PREFIX}" \ 44 --PETSC_DIR="${PETSC_DIR}" \ 40 45 --LDFLAGS="-Wl,-no_compact_unwind" \ 41 46 --with-shared-libraries=0 \ -
issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-m1.sh
r27043 r27202 4 4 5 5 ## Constants 6 VER="3.17.0" 6 # 7 VER="3.17.4" 8 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 7 11 8 12 # Download source 9 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https:// ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"13 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 10 14 11 15 # Unpack source … … 13 17 14 18 # Cleanup 15 rm -rf install src16 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 17 21 18 # Move source to 'src' directory19 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 20 24 rm -rf petsc-${VER} 21 25 22 cd src 23 ./configure \ 24 --prefix="${ISSM_DIR}/externalpackages/petsc/install" \ 25 --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \ 26 # Configure 27 cd ${PETSC_DIR} 28 ./config/configure.py \ 29 --prefix="${PREFIX}" \ 30 --PETSC_DIR="${PETSC_DIR}" \ 26 31 --LDFLAGS="-Wl,-no_compact_unwind" \ 27 32 --with-debugging=0 \ -
issm/trunk-jpl/externalpackages/petsc/install-3.17-pleiades.sh
r27192 r27202 2 2 set -eu 3 3 4 4 5 ## Constants 6 # 5 7 VER="3.17.4" 6 8 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 11 7 12 # Download source 8 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https:// ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"13 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 9 14 10 15 # Unpack source … … 12 17 13 18 # Cleanup 14 rm -rf install src15 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir -p ${PETSC_DIR} 16 21 17 # Move source to 'src' directory18 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 19 24 rm -rf petsc-${VER} 20 25 21 #options from cat /nasa/petsc/3.14.5_toss3/lib/petsc/conf/petscvariables | grep CONF 22 cd src 26 # Configure 27 # 28 # NOTE: 29 # - Options from, 30 # 31 # cat /nasa/petsc/3.14.5_toss3/lib/petsc/conf/petscvariables | grep CONF 32 # 33 cd ${PETSC_DIR} 23 34 ./configure \ 24 --prefix="${ ISSM_DIR}/externalpackages/petsc/install" \25 --PETSC_DIR="${ ISSM_DIR}/externalpackages/petsc/src" \35 --prefix="${PREFIX}" \ 36 --PETSC_DIR="${PETSC_DIR}" \ 26 37 --with-blas-lapack-dir="/nasa/intel/Compiler/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl" \ 27 38 --with-scalapack-include="/nasa/intel/Compiler/2018.3.222/mkl/include" \ -
issm/trunk-jpl/jenkins/examples_tests.sh
r26162 r27202 40 40 for dir in ./* ; do 41 41 if [ -d "${dir}" ]; then 42 # # Temporary short circuit to check single example 43 # example="./AMR" 44 # if [ "${dir}" != "${example}" ]; then 45 # continue 46 # fi 47 42 48 # Some of the examples are incomplete (on purpose). As such, we will 43 49 # have to populate the missing steps in order to make sure that … … 45 51 46 52 cd ${dir} 47 48 53 if [ "${dir}" == "./AMR" ]; then 49 54 sed -i.bak -e '1 s|^.*$|try\n\n&|' $RUNME_FILE -
issm/trunk-jpl/jenkins/jenkins.sh
r26817 r27202 178 178 cd ${ISSM_DIR}/externalpackages/$PACKAGENAME 179 179 180 echo "======================================================"; 181 echo " Installing $PACKAGENAME "; 182 echo "======================================================"; 183 184 ./$PACKAGEINST $NUMCPUS_INSTALL &> compil.log 185 if [ $? -ne 0 ] && [ "${PACKAGENAME}" != "boost" ]; then 186 cat compil.log 180 # Do not install package if it already exists 181 # 182 # NOTE: Assumes PREFIX is defined in package installation script 183 # 184 PREFIX=$(egrep "PREFIX=" ./$PACKAGEINST | cut -d'"' -f 2 | envsubst) 185 if [ ! -d "${PREFIX}" ]; then 187 186 echo "======================================================"; 188 echo " ERROR: installation of $PACKAGENAME failed";187 echo " Installing $PACKAGENAME "; 189 188 echo "======================================================"; 190 echo "<testcase classname=\"externalpackages\" name=\"$PACKAGENAME\">" >> $EXTERNAL_TEST_FILE 191 echo '<failure message="failure">External packages did not install right. Check it.' >> $EXTERNAL_TEST_FILE 192 cat compil.log >> $EXTERNAL_TEST_FILE 193 echo '</failure>' >> $EXTERNAL_TEST_FILE 194 echo '</testcase>' >> $EXTERNAL_TEST_FILE 195 EXTERNALPACKAGES_FAILED=1; 189 190 ./$PACKAGEINST $NUMCPUS_INSTALL &> compil.log 191 if [ $? -ne 0 ] && [ "${PACKAGENAME}" != "boost" ]; then 192 cat compil.log 193 echo "======================================================"; 194 echo " ERROR: installation of $PACKAGENAME failed "; 195 echo "======================================================"; 196 echo "<testcase classname=\"externalpackages\" name=\"$PACKAGENAME\">" >> $EXTERNAL_TEST_FILE 197 echo '<failure message="failure">External packages did not install right. Check it.' >> $EXTERNAL_TEST_FILE 198 cat compil.log >> $EXTERNAL_TEST_FILE 199 echo '</failure>' >> $EXTERNAL_TEST_FILE 200 echo '</testcase>' >> $EXTERNAL_TEST_FILE 201 EXTERNALPACKAGES_FAILED=1; 202 else 203 echo "<testcase classname=\"externalpackages\" name=\"$PACKAGENAME\"/>" >> $EXTERNAL_TEST_FILE 204 fi 205 source ${ISSM_DIR}/etc/environment.sh 206 207 #If external package is rebuilt, we also need to recompile 208 ISSM_RECONFIGURE="yes" 209 ISSM_COMPILATION="yes" 196 210 else 211 echo "======================================================"; 212 echo " Skipping $PACKAGENAME "; 213 echo "======================================================"; 197 214 echo "<testcase classname=\"externalpackages\" name=\"$PACKAGENAME\"/>" >> $EXTERNAL_TEST_FILE 198 215 fi 199 source ${ISSM_DIR}/etc/environment.sh200 201 #If external package is rebuilt, we also need to recompile202 ISSM_RECONFIGURE="yes"203 ISSM_COMPILATION="yes"204 216 else 205 217 echo "======================================================"; -
issm/trunk-jpl/jenkins/pine_island-mac-full
r27191 r27202 44 44 autotools install-mac.sh 45 45 cmake install.sh 46 petsc install-3.1 6-mac.sh46 petsc install-3.17-mac-intel.sh 47 47 gsl install.sh 48 48 boost install-1.7-mac.sh -
issm/trunk-jpl/m4/issm_options.m4
r27158 r27202 648 648 dnl TODO: 649 649 dnl - Should we also be checking if HAVE_BOOST before adding boost libs? 650 dnl - Clean up the following conditionals 650 651 dnl 651 652 case "${host_os}" in … … 672 673 elif test "${DAKOTA_VERSION}" == "6.1" || test "${DAKOTA_VERSION}" == "6.2"; then 673 674 if test "${BOOST_VERSION_MAJOR}" == "1"; then 674 DAKOTAFLAGS="-DHAVE_CONFIG_H -D HAVE_CONFIG_H -DDISABLE_DAKOTA_CONFIG_H -DBOOST_DISABLE_ASSERTS -DHAVE_UNISTD_H -DHAVE_SYSTEM -DHAVE_WORKING_FORK -DHAVE_WORKING_VFORK -DHAVE_SYS_WAIT_H -DHAVE_USLEEP -DDAKOTA_F90 -DDAKOTA_HAVE_MPI -DHAVE_PECOS -DHAVE_SURFPACK -DHAVE_ADAPTIVE_SAMPLING -DHAVE_ESM -DHAVE_QUESO -DHAVE_QUESO_GPMSA -DHAVE_CONMIN -DHAVE_DDACE -DHAVE_DREAM -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_NOMAD -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL"675 DAKOTAFLAGS="-DHAVE_CONFIG_H -DDISABLE_DAKOTA_CONFIG_H -DBOOST_DISABLE_ASSERTS -DHAVE_UNISTD_H -DHAVE_SYSTEM -DHAVE_WORKING_FORK -DHAVE_WORKING_VFORK -DHAVE_SYS_WAIT_H -DHAVE_USLEEP -DDAKOTA_F90 -DDAKOTA_HAVE_MPI -DHAVE_PECOS -DHAVE_SURFPACK -DHAVE_ADAPTIVE_SAMPLING -DHAVE_ESM -DHAVE_QUESO -DHAVE_QUESO_GPMSA -DHAVE_CONMIN -DHAVE_DDACE -DHAVE_DREAM -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_NOMAD -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL" 675 676 DAKOTALIB="-L${DAKOTA_ROOT}/lib -ldakota_src -ldakota_src_fortran -lnidr -lteuchos -lpecos -lpecos_src -llhs -llhs_mods -llhs_mod -ldfftpack -lsparsegrid -lsurfpack -lsurfpack -lsurfpack_fortran -lqueso -lconmin -lddace -ldream -lfsudace -lhopspack -lncsuopt -lcport -lnomad -loptpp -lpsuade -lamplsolver" 676 677 DAKOTALIB+=" -L${BOOST_ROOT}/lib -lboost_filesystem -lboost_program_options -lboost_regex -lboost_serialization -lboost_system" … … 685 686 DAKOTALIB="-L${DAKOTA_ROOT}/lib -ldakota_src -ldream -lfsudace -lddace -lnomad -lpecos_src -llhs -llhs_mods -loptpp -lsurfpack -lconmin -ldakota_src_fortran -llhs_mod -lncsuopt -lsurfpack_fortran -lteuchos -lamplsolver -lcport -ldfftpack -lfsudace -lhopspack -lnidr -lpecos -lpsuade -lsparsegrid -L$BOOST_ROOT/lib -lboost_serialization -lboost_signals -lboost_regex -lboost_filesystem -lboost_system ${BLASLAPACKLIB}" 686 687 elif test "${BOOST_VERSION_MINOR}" == "72"; then 687 DAKOTAFLAGS="-DHAVE_CONFIG_H -D HAVE_CONFIG_H -DDISABLE_DAKOTA_CONFIG_H -DBOOST_DISABLE_ASSERTS -DHAVE_UNISTD_H -DHAVE_SYSTEM -DHAVE_WORKING_FORK -DHAVE_WORKING_VFORK -DHAVE_SYS_WAIT_H -DHAVE_USLEEP -DDAKOTA_F90 -DDAKOTA_HAVE_MPI -DHAVE_PECOS -DHAVE_SURFPACK -DHAVE_ADAPTIVE_SAMPLING -DHAVE_ESM -DHAVE_CONMIN -DHAVE_DDACE -DHAVE_DREAM -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_NOMAD -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL"688 DAKOTAFLAGS="-DHAVE_CONFIG_H -DDISABLE_DAKOTA_CONFIG_H -DBOOST_DISABLE_ASSERTS -DHAVE_UNISTD_H -DHAVE_SYSTEM -DHAVE_WORKING_FORK -DHAVE_WORKING_VFORK -DHAVE_SYS_WAIT_H -DHAVE_USLEEP -DDAKOTA_F90 -DDAKOTA_HAVE_MPI -DHAVE_PECOS -DHAVE_SURFPACK -DHAVE_ADAPTIVE_SAMPLING -DHAVE_ESM -DHAVE_CONMIN -DHAVE_DDACE -DHAVE_DREAM -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_NOMAD -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL" 688 689 DAKOTALIB="-L${DAKOTA_ROOT}/lib -ldakota_src -ldakota_src_fortran -lnidr -lteuchosremainder -lteuchosnumerics -lteuchoscomm -lteuchosparameterlist -lteuchosparser -lteuchoscore -lpecos_util -lpecos_src -llhs -llhs_mods -llhs_mod -ldfftpack -lsparsegrid -lsurfpack -lsurfpack -lsurfpack_fortran -lapproxnn -lconmin -lddace -ldream -lfsudace -lhopspack -lncsuopt -lcport -lnomad -loptpp -lpsuade -lamplsolver -L${BOOST_ROOT}/lib -lboost_filesystem -lboost_program_options -lboost_regex -lboost_serialization -lboost_system ${BLASLAPACKLIB}" 689 690 fi … … 705 706 elif test "${DAKOTA_VERSION}" == "6.1" || test "${DAKOTA_VERSION}" == "6.2"; then 706 707 if test "${BOOST_VERSION_MAJOR}" == "1"; then 707 DAKOTAFLAGS="-DHAVE_CONFIG_H -D HAVE_CONFIG_H -DDISABLE_DAKOTA_CONFIG_H -DBOOST_DISABLE_ASSERTS -DHAVE_UNISTD_H -DHAVE_SYSTEM -DHAVE_WORKING_FORK -DHAVE_WORKING_VFORK -DHAVE_SYS_WAIT_H -DHAVE_USLEEP -DDAKOTA_F90 -DDAKOTA_HAVE_MPI -DHAVE_PECOS -DHAVE_SURFPACK -DHAVE_ADAPTIVE_SAMPLING -DHAVE_ESM -DHAVE_QUESO -DHAVE_QUESO_GPMSA -DHAVE_CONMIN -DHAVE_DDACE -DHAVE_DREAM -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_NOMAD -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL"708 DAKOTAFLAGS="-DHAVE_CONFIG_H -DDISABLE_DAKOTA_CONFIG_H -DBOOST_DISABLE_ASSERTS -DHAVE_UNISTD_H -DHAVE_SYSTEM -DHAVE_WORKING_FORK -DHAVE_WORKING_VFORK -DHAVE_SYS_WAIT_H -DHAVE_USLEEP -DDAKOTA_F90 -DDAKOTA_HAVE_MPI -DHAVE_PECOS -DHAVE_SURFPACK -DHAVE_ADAPTIVE_SAMPLING -DHAVE_ESM -DHAVE_QUESO -DHAVE_QUESO_GPMSA -DHAVE_CONMIN -DHAVE_DDACE -DHAVE_DREAM -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_NOMAD -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL" 708 709 DAKOTALIB="-L${DAKOTA_ROOT}/lib -ldakota_src -ldakota_src_fortran -lnidr -lteuchos -lpecos -lpecos_src -llhs -llhs_mods -llhs_mod -ldfftpack -lsparsegrid -lsurfpack -lsurfpack -lsurfpack_fortran -lqueso -lconmin -lddace -ldream -lfsudace -lhopspack -lncsuopt -lcport -lnomad -loptpp -lpsuade -lamplsolver" 709 710 DAKOTALIB+=" -L${BOOST_ROOT}/lib -lboost_filesystem -lboost_program_options -lboost_regex -lboost_serialization -lboost_system" -
issm/trunk-jpl/src/c/Makefile.am
r27154 r27202 829 829 830 830 # External packages 831 LDADD += $( CHACOLIB) $(DAKOTALIB) $(PETSCLIB) $(MUMPSLIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(PARMETISLIB) $(METISLIB) $(NEOPZLIB) $(TAOLIB) $(M1QN3LIB) $(SEMICLIB) $(PLAPACKLIB) $(MPLAPACKLIB) $(SUPERLULIB) $(SPOOLESLIB) $(BLACSLIB) $(HDF5LIB) $(HYPRELIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(MLLIB) $(SCOTCHLIB) $(MKLLIB) $(MPILIB) $(MATHLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(GSLLIB) $(AMPILIB) $(ADJOINTMPILIB) $(ADOLCLIB) $(MPILIB) $(METEOIOLIB) $(SNOWPACKLIB) $(PROJLIB) $(ESMFLIB) $(OSLIBS)831 LDADD += $(SEMICLIB) $(M1QN3LIB) $(CHACOLIB) $(PETSCLIB) $(MUMPSLIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(PARMETISLIB) $(METISLIB) $(NEOPZLIB) $(TAOLIB) $(PLAPACKLIB) $(MPLAPACKLIB) $(SUPERLULIB) $(SPOOLESLIB) $(BLACSLIB) $(HDF5LIB) $(HYPRELIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(MLLIB) $(SCOTCHLIB) $(MKLLIB) $(MATHLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(GSLLIB) $(AMPILIB) $(ADJOINTMPILIB) $(ADOLCLIB) $(MPILIB) $(METEOIOLIB) $(SNOWPACKLIB) $(PROJLIB) $(ESMFLIB) $(OSLIBS) 832 832 833 833 if FORTRAN … … 840 840 issm_slc_SOURCES = main/issm_slc.cpp 841 841 issm_slc_CXXFLAGS= $(CXXFLAGS) $(CXXOPTFLAGS) 842 issm_slc_LDADD = $(DAKOTALIB) $(LDADD) 842 843 843 844 if OCEAN … … 857 858 issm_dakota_SOURCES = main/issm_dakota.cpp 858 859 issm_dakota_CXXFLAGS= $(CXXFLAGS) $(CXXOPTFLAGS) $(COPTFLAGS) 859 issm_dakota_LDADD =$(LDADD)860 issm_dakota_LDADD = $(DAKOTALIB) $(LDADD) 860 861 bin_PROGRAMS += issm_post 861 862 issm_post_SOURCES = main/issm_post.cpp -
issm/trunk-jpl/src/m/dev/devpath.py
r26353 r27202 37 37 print('Warning: devpath.py: cluster settings should be in {}'.format(jpl_path)) 38 38 39 from runme import runme #first because plotmodel may fail 39 try: # Avoid circular import 40 from runme import runme # First, because plotmodel may fail 41 except: 42 pass 40 43 from plotmodel import plotmodel 41 44 -
issm/trunk-jpl/test/NightlyRun/IdFromString.py
r24256 r27202 2 2 from IdToName import IdToName 3 3 import os 4 import re 4 5 5 6 # use verbose = False to print output when this is called by command line … … 27 28 ids = [] 28 29 idnames = [] 29 for f in os.listdir('.'): 30 if f.endswith('.py') and f.startswith('test'): 31 # all tests look like: "testwxyz.py" so 5th to 3rd to last is always the full id 32 s = int(f[4:-3]) 33 name = IdToName(s) 34 if (string == ' * ') or (name is not None and string in name): 35 ids.append(s) 36 idnames.append(name) 30 flist = [f for f in os.listdir('.') if re.match('test[0-9]+.py', f)] # File name must follow the format "test<integer>.py" 31 list_ids = [int(re.search(r'\d+',file.split('.')[0]).group()) for file in flist] # Retrieve test IDs 32 for i in list_ids: 33 name = IdToName(i) 34 if (string == ' * ') or (name is not None and string in name): 35 ids.append(i) 36 idnames.append(name) 37 37 38 38 #Return if no test found -
issm/trunk-jpl/test/NightlyRun/runme.m
r27117 r27202 88 88 % }}} 89 89 %GET ids {{{ 90 flist=dir; %use dir, as it seems to act OS independent90 flist=dir; %use dir, as it seems to act OS independent 91 91 list_ids=[]; 92 92 for i=1:numel(flist), … … 101 101 disp(['WARNING: ignore file ' flist(i).name]); 102 102 else 103 list_ids(end+1)=id; %Keep test id only (strip 'test' and '.m')103 list_ids(end+1)=id; %Keep test id only (strip 'test' and '.m') 104 104 end 105 105 end -
issm/trunk-jpl/test/NightlyRun/runme.py
r27167 r27202 8 8 # 9 9 import argparse 10 from glob import glob11 10 import os 12 from re import search, split 11 import re 13 12 from sys import float_info 14 13 from traceback import format_exc … … 116 115 # }}} 117 116 #GET ids {{{ 118 flist = glob('test*.py') #File name must start with 'test' and must end by '.py' and must be different than 'test.py' 119 list_ids = [int(search(r'\d+',file.split('.')[0]).group()) for file in flist if not file == 'test.py'] # Keep test id only (skip 'test' and '.py') 120 121 i1, i2 = parallelrange(rank, numprocs, len(list_ids)) #Get tests for this cpu only 117 flist = [f for f in os.listdir('.') if re.match('test[0-9]+.py', f)] # File name must follow the format "test<integer>.py" 118 list_ids = [int(re.search(r'\d+',file.split('.')[0]).group()) for file in flist] # Retrieve test IDs 119 i1, i2 = parallelrange(rank, numprocs, len(list_ids)) # Get tests for this CPU only 122 120 list_ids = list_ids[i1:i2 + 1] 123 121 if np.size(id) > 0 and id is not None: … … 172 170 test_ids = list(test_ids) 173 171 test_ids.sort() 172 print(test_ids) 174 173 # }}} 175 174 … … 213 212 for key in mdl.results.__dict__.keys(): 214 213 if 'Solution' in key: 215 solvetype = split('Solution', key)[0]214 solvetype = re.split('Solution', key)[0] 216 215 217 216 #we save the results, scrap them and solve. … … 224 223 try: 225 224 #first look for indexing 226 if search(r'\d+$', fieldname):227 index = int( search(r'\d+$', fieldname).group()) - 1228 fieldname = fieldname[: search(r'\d+$', fieldname).start()]225 if re.search(r'\d+$', fieldname): 226 index = int(re.search(r'\d+$', fieldname).group()) - 1 227 fieldname = fieldname[:re.search(r'\d+$', fieldname).start()] 229 228 elif 'FirstStep' in fieldname: 230 229 index = 0 231 fieldname = fieldname[: search('FirstStep', fieldname).start()]230 fieldname = fieldname[:re.search('FirstStep', fieldname).start()] 232 231 elif 'SecondStep' in fieldname: 233 232 index = 1 234 fieldname = fieldname[: search('SecondStep', fieldname).start()]233 fieldname = fieldname[:re.search('SecondStep', fieldname).start()] 235 234 elif 'ThirdStep' in fieldname: 236 235 index = 2 237 fieldname = fieldname[: search('ThirdStep', fieldname).start()]236 fieldname = fieldname[:re.search('ThirdStep', fieldname).start()] 238 237 else: 239 238 index = 0 … … 270 269 #probably severalmatches, we take the last one which should be the good one (Needs to be controled in the list above) 271 270 sufix = sufixes[np.squeeze(np.where([suf in fieldname for suf in sufixes]))[-1]] 272 fieldname = fieldname[: search(sufix, fieldname).start()]271 fieldname = fieldname[:re.search(sufix, fieldname).start()] 273 272 elif fieldname.endswith("P") and index == 1: 274 273 #we are looking for P2 but 2 as been considered as an index and so shifted by -1
Note:
See TracChangeset
for help on using the changeset viewer.