source:
issm/oecreview/Archive/24307-24683/ISSM-24310-24311.diff@
24684
Last change on this file since 24684 was 24684, checked in by , 5 years ago | |
---|---|
File size: 34.3 KB |
-
../trunk-jpl/m4/issm_options.m4
395 395 TRIANGLELIB="-Wl,`cygpath -m $TRIANGLE_ROOT/`triangle.lib" 396 396 ;; 397 397 *linux*) 398 TRIANGLELIB=$TRIANGLE_ROOT/triangle.a399 398 if test "x$HAVE_JAVASCRIPT" = "xyes"; then 400 399 dnl go to the bit code, not the library. 401 400 TRIANGLELIB=$TRIANGLE_ROOT/triangle.o … … 482 481 AC_DEFINE_UNQUOTED([_DAKOTA_VERSION_],"$DAKOTA_VERSION",[Dakota version number]) 483 482 484 483 DAKOTAFLAGS="" 484 dnl TODO: Should we also be checking if HAVE_BOOST before adding boost libs? 485 485 case "${host_os}" in 486 486 *cygwin*) 487 487 if test x$DAKOTA_VERSION = x5.1 || test x$DAKOTA_VERSION = x5.2; then … … 506 506 AC_DEFINE([DAKOTA_HAVE_MPI],[1],[enabling parallel MPI]) 507 507 else if test x$DAKOTA_VERSION = x6.1 || test x$DAKOTA_VERSION = x6.2; then 508 508 DAKOTAFLAGS="-DDISABLE_DAKOTA_CONFIG_H -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DDAKOTA_PLUGIN -DBOOST_DISABLE_ASSERTS -DDAKOTA_HAVE_BOOST_FS -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 -DDAKOTA_UTILIB -DHAVE_ADAPTIVE_SAMPLING -DHAVE_CONMIN -DDAKOTA_DDACE -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL" 509 DAKOTALIB="-L$DAKOTA_ROOT/lib -L$BOOST_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 -lboost_serialization -lboost_signals -lboost_regex -lboost_filesystem -lboost_system" 509 if test "x$enable_standalone_executables" = "xyes"; then 510 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 $BOOST_ROOT/lib/libboost_serialization.a $BOOST_ROOT/lib/libboost_signals.a $BOOST_ROOT/lib/libboost_regex.a $BOOST_ROOT/lib/libboost_filesystem.a $BOOST_ROOT/lib/libboost_system.a" 511 else 512 DAKOTALIB="-L$DAKOTA_ROOT/lib -L$BOOST_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 -lboost_serialization -lboost_signals -lboost_regex -lboost_filesystem -lboost_system" 513 fi 510 514 AC_DEFINE([DISABLE_DAKOTA_CONFIG_H],[1],[disabling DAKOTA_CONFIG_H]) 511 515 AC_DEFINE([DAKOTA_HAVE_MPI],[1],[enabling parallel MPI]) 512 516 else … … 525 529 AC_DEFINE([DISABLE_DAKOTA_CONFIG_H],[1],[disabling DAKOTA_CONFIG_H]) 526 530 AC_DEFINE([DAKOTA_HAVE_MPI],[1],[enabling parallel MPI]) 527 531 else if test x$DAKOTA_VERSION = x6.1 || test x$DAKOTA_VERSION = x6.2; then 528 DAKOTAFLAGS="-DDISABLE_DAKOTA_CONFIG_H -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DDAKOTA_PLUGIN -DBOOST_DISABLE_ASSERTS -DDAKOTA_HAVE_BOOST_FS -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 -DDAKOTA_UTILIB -DHAVE_ADAPTIVE_SAMPLING -DHAVE_CONMIN -DDAKOTA_DDACE -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL" 529 DAKOTALIB="-L$DAKOTA_ROOT/lib -L$BOOST_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 -lboost_serialization -lboost_signals -lboost_regex -lboost_filesystem -lboost_system" 532 DAKOTAFLAGS="-DDISABLE_DAKOTA_CONFIG_H -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DDAKOTA_PLUGIN -DBOOST_DISABLE_ASSERTS -DDAKOTA_HAVE_BOOST_FS -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 -DDAKOTA_UTILIB -DHAVE_ADAPTIVE_SAMPLING -DHAVE_CONMIN -DDAKOTA_DDACE -DHAVE_FSUDACE -DDAKOTA_HOPS -DHAVE_NCSU -DHAVE_NL2SOL -DHAVE_OPTPP -DDAKOTA_OPTPP -DHAVE_PSUADE -DHAVE_AMPL" 533 if test "x$enable_standalone_executables" = "xyes"; then 534 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 $BOOST_ROOT/lib/libboost_serialization.a $BOOST_ROOT/lib/libboost_signals.a $BOOST_ROOT/lib/libboost_regex.a $BOOST_ROOT/lib/libboost_filesystem.a $BOOST_ROOT/lib/libboost_system.a" 535 else 536 DAKOTALIB="-L$DAKOTA_ROOT/lib -L$BOOST_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 -lboost_serialization -lboost_signals -lboost_regex -lboost_filesystem -lboost_system" 537 fi 530 538 AC_DEFINE([DISABLE_DAKOTA_CONFIG_H],[1],[disabling DAKOTA_CONFIG_H]) 531 539 AC_DEFINE([DAKOTA_HAVE_MPI],[1],[enabling parallel MPI]) 532 540 else -
../trunk-jpl/externalpackages/adjoinablempi/install-macosx64.sh
9 9 #hg clone -r 268 http://mercurial.mcs.anl.gov//ad/AdjoinableMPI src 10 10 11 11 #Download from ISSM server 12 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'http s://issm.ess.uci.edu/files/externalpackages/adjoinablempi' 'adjoinablempi.tar.gz'12 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'http://issm.jpl.nasa.gov/files/externalpackages/adjoinablempi' 'adjoinablempi.tar.gz' 13 13 14 14 #Untar ADOL-C 15 15 tar -zxf adjoinablempi.tar.gz -
../trunk-jpl/externalpackages/dakota/install-6.2-macosx64-static.sh
1 #!/bin/bash 2 set -eu 3 4 # Constants 5 DAK_VER="6.2" 6 7 # Some cleanup 8 rm -rf build 9 rm -rf install 10 rm -rf tests 11 rm -rf src 12 mkdir build install src 13 14 # Download from ISSM server 15 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/dakota-${DAK_VER}-public.src.tar.gz" "dakota-${DAK_VER}-public-src.tar.gz" 16 17 # Untar 18 tar -zxvf dakota-${DAK_VER}-public-src.tar.gz 19 20 # Move Dakota to src directory 21 mv dakota-${DAK_VER}.0.src/* src 22 rm -rf dakota-${DAK_VER}.0.src 23 24 # Set up Dakota and CMake variables 25 DAK_PATH=$ISSM_DIR/externalpackages/dakota 26 27 export DAK_BUILD=$DAK_PATH/build 28 export DAK_INSTALL=$DAK_PATH/install 29 export DAK_SRC=$DAK_PATH/src 30 export MPIHOME=$ISSM_DIR/externalpackages/mpich/install 31 32 33 # Apply patches 34 cp $DAK_SRC/cmake/BuildDakotaTemplate.cmake $DAK_SRC/cmake/BuildDakotaCustom.cmake 35 patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/$DAK_VER/BuildDakotaCustom.cmake.mac.patch 36 patch $DAK_SRC/cmake/DakotaDev.cmake configs/$DAK_VER/DakotaDev.cmake.patch 37 patch $DAK_SRC/cmake/InstallDarwinDylibs.cmake configs/$DAK_VER/InstallDarwinDylibs.cmake.patch 38 patch $DAK_SRC/CMakeLists.txt configs/$DAK_VER/CMakeLists.txt.patch 39 patch src/src/NonDSampling.cpp configs/$DAK_VER/NonDSampling.cpp.patch 40 patch src/src/NonDLocalReliability.cpp configs/$DAK_VER/NonDLocalReliability.cpp.patch 41 patch src/packages/pecos/src/pecos_global_defs.hpp configs/$DAK_VER/pecos_global_defs.hpp.patch 42 43 # Configure and build Dakota 44 cd $DAK_BUILD 45 cmake \ 46 -C$DAK_SRC/cmake/BuildDakotaCustom.cmake \ 47 -C$DAK_SRC/cmake/DakotaDev.cmake \ 48 -DBUILD_STATIC_LIBS=ON \ 49 -DBUILD_SHARED_LIBS=OFF \ 50 -DBOOST_ROOT=$BOOST_ROOT \ 51 -DBoost_LIBRARY_DIRS=$BOOST_ROOT/lib \ 52 -DBoost_NO_BOOST_CMAKE=TRUE \ 53 -DBoost_NO_SYSTEM_PATHS=TRUE \ 54 -DCMAKE_INSTALL_PREFIX=$DAK_INSTALL \ 55 -DCMAKE_C_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicc \ 56 -DCMAKE_CXX_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicxx \ 57 -DCMAKE_Fortran_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpif77 \ 58 -DCMAKE_CXX_FLAGS=-fdelayed-template-parsing \ 59 -DHAVE_ACRO=off \ 60 -DHAVE_JEGA=off \ 61 $DAK_SRC 62 63 if [ $# -eq 0 ]; 64 then 65 make 66 make install 67 else 68 make -j $1 69 make -j $1 install 70 fi 71 72 # Set paths and library paths 73 export PATH=$DAK_INSTALL/bin:$DAK_INSTALL/test:$PATH 74 75 if [ -z ${DYLD_LIBRARY_PATH+x} ] 76 then 77 export DYLD_LIBRARY_PATH=$DAK_INSTALL/lib:$DAK_INSTALL/bin 78 else 79 export DYLD_LIBRARY_PATH=$DAK_INSTALL/lib:$DAK_INSTALL/bin:$DYLD_LIBRARY_PATH 80 fi -
../trunk-jpl/externalpackages/dakota/install-6.2-linux64-static.sh
Property changes on: ../trunk-jpl/externalpackages/dakota/install-6.2-macosx64-static.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property
1 #!/bin/bash 2 set -eu 3 4 # Constants 5 DAK_VER="6.2" 6 7 #Some cleanup 8 rm -rf Dakota 9 rm -rf src 10 rm -rf build 11 rm -rf install 12 mkdir src build install 13 14 #Download from ISSM server 15 $ISSM_DIR/scripts/DownloadExternalPackage.sh https://issm.ess.uci.edu/files/externalpackages/dakota-${DAK_VER}-public.src.tar.gz dakota-${DAK_VER}-public-src.tar.gz 16 17 #Untar 18 tar -zxvf dakota-${DAK_VER}-public-src.tar.gz 19 20 #Move Dakota to src directory 21 mv dakota-${DAK_VER}.0.src/* src 22 rm -rf dakota-${DAK_VER}.0.src 23 24 #Set up Dakota cmake variables and config 25 DAK_PATH=$ISSM_DIR/externalpackages/dakota 26 27 export DAK_BUILD=$DAK_PATH/build 28 export DAK_INSTALL=$DAK_PATH/install 29 export DAK_SRC=$DAK_PATH/src 30 export MPIHOME=$ISSM_DIR/externalpackages/mpich/install 31 export BOOST_ROOT=$ISSM_DIR/externalpackages/boost/install 32 33 cp $DAK_SRC/cmake/BuildDakotaTemplate.cmake $DAK_SRC/cmake/BuildDakotaCustom.cmake 34 patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/${DAK_VER}/BuildDakotaCustom.cmake.patch 35 patch $DAK_SRC/cmake/DakotaDev.cmake configs/${DAK_VER}/DakotaDev.cmake.patch 36 patch $DAK_SRC/CMakeLists.txt configs/${DAK_VER}/CMakeLists.txt.petsclibs.patch 37 38 #Apply patches 39 patch src/src/NonDSampling.cpp configs/${DAK_VER}/NonDSampling.cpp.patch 40 patch src/src/NonDLocalReliability.cpp configs/${DAK_VER}/NonDLocalReliability.cpp.patch 41 patch src/packages/pecos/src/pecos_global_defs.hpp configs/${DAK_VER}/pecos_global_defs.hpp.patch 42 43 #Setting CXXFLAGS to deal with C++11 incompatibility with Matlab's Boost 44 export CXXFLAGS='-std=c++98' 45 46 #Configure dakota 47 cd $DAK_BUILD 48 49 cmake -C$DAK_SRC/cmake/BuildDakotaCustom.cmake \ 50 -C$DAK_SRC/cmake/DakotaDev.cmake \ 51 -DBUILD_STATIC_LIBS=ON \ 52 -DBUILD_SHARED_LIBS=OFF \ 53 -DBOOST_ROOT=$BOOST_ROOT \ 54 -DBoost_LIBRARY_DIRS=$BOOST_ROOT/lib \ 55 -DBoost_NO_BOOST_CMAKE=TRUE \ 56 -DBoost_NO_SYSTEM_PATHS=TRUE \ 57 -DBoost_INSTALL_PREFIX=$DAK_INSTALL \ 58 -DCMAKE_C_FLAGS="-O2 -g -fPIC" \ 59 -DCMAKE_CXX_FLAGS="-O2 -g -fPIC" \ 60 -DCMAKE_Fortran_FLAGS="-O2 -g -fPIC" \ 61 -DCMAKE_C_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicc \ 62 -DCMAKE_CXX_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicxx \ 63 -DCMAKE_Fortran_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpif77 \ 64 -DHAVE_ACRO=off \ 65 -DHAVE_JEGA=off \ 66 $DAK_SRC 67 cd .. 68 69 #Compile and install dakota 70 cd $DAK_BUILD 71 72 if [ $# -eq 0 ]; 73 then 74 make 75 make install 76 else 77 make -j $1 78 make -j $1 install 79 fi 80 81 cd .. -
../trunk-jpl/externalpackages/boost/install-1.55-macosx-el_capitan-static.sh
Property changes on: ../trunk-jpl/externalpackages/dakota/install-6.2-linux64-static.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property
1 #!/bin/bash 2 set -eu 3 4 # NOTE: Stop after boostrap phase, and run 5 # 6 # bjam --debug-configuration 7 # 8 # to figure out which paths boost is using to include python. Make sure everyone 9 # of these paths is covered by python. If not, just make symlinks in 10 # externalpackages/python to what boost is expecting. There is NO WAY to get the 11 # boost library to include python support without doing that. 12 13 #Some cleanup 14 rm -rf install boost_1_55_0 src 15 mkdir install src 16 17 #Download from ISSM server 18 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/boost_1_55_0.tar.gz' 'boost_1_55_0.tar.gz' 19 20 #Untar 21 tar -zxvf boost_1_55_0.tar.gz 22 23 #Move boost into install directory 24 mv boost_1_55_0/* src 25 rm -rf boost_1_55_0 26 27 patch src/boost/atomic/detail/cas128strong.hpp ./configs/1.55/cas128strong.hpp.patch 28 patch src/boost/atomic/detail/gcc-atomic.hpp ./configs/1.55/gcc-atomic.hpp.patch 29 patch src/tools/build/v2/user-config.jam ./configs/1.55/user-config.jam.patch 30 patch src/tools/build/v2/tools/darwin.jam ./configs/1.55/darwin.jam.patch 31 patch src/tools/build/v2/tools/darwin.py ./configs/1.55/darwin.py.patch 32 33 #Configure and compile 34 cd src 35 ./bootstrap.sh \ 36 --prefix="$ISSM_DIR/externalpackages/boost/install" \ 37 --with-python=python 38 39 #Compile boost 40 # Need gcc with iconv installed in a location that has been added to your path 41 # export CC=/usr/local/gfortan/bin/gcc 42 # export CXX=/usr/local/gfortran/bin/g++ 43 ./bjam toolset=darwin link=static runtime-link=static install 44 45 #put bjam into install also: 46 mkdir ../install/bin 47 cp bjam ../install/bin -
../trunk-jpl/externalpackages/boost/install-1.55-linux64-static.sh
Property changes on: ../trunk-jpl/externalpackages/boost/install-1.55-macosx-el_capitan-static.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property
1 #!/bin/bash 2 #set -eu 3 #unhook set -eu because some target do fail and it is not a big deal 4 5 #Note of caution: stop after boostrap phase, and run 6 #bjam --debug-configuration, to figure out which paths boost is using to include 7 #python. make sure everyone of these paths is covered by python. If not, just make 8 #symlinks in externalpackages/python to what boost is expecting. Ther is NO WAY 9 #to get the boost library to include python support without doing that. 10 11 #Some cleanup 12 rm -rf install boost_1_55_0 src 13 mkdir install src 14 15 #Download from ISSM server 16 $ISSM_DIR/scripts/DownloadExternalPackage.sh https://issm.ess.uci.edu/files/externalpackages/boost_1_55_0.tar.gz boost_1_55_0.tar.gz 17 18 #Untar 19 tar -zxvf boost_1_55_0.tar.gz 20 21 #Move boost into install directory 22 mv boost_1_55_0/* src 23 rm -rf boost_1_55_0 24 25 #Setting CXXFLAGS to deal with C++11 incompatibility with Matlab's Boost 26 export CXXFLAGS='-std=c++98' 27 28 #Configure and compile 29 cd src 30 ./bootstrap.sh \ 31 --prefix="$ISSM_DIR/externalpackages/boost/install" \ 32 --with-python=python 33 34 #Compile boost 35 ./bjam toolset=gcc link=static install 36 37 #put bjam into install also 38 mkdir ../install/bin 39 cp bjam ../install/bin -
../trunk-jpl/packagers/ubuntu/package.sh
Property changes on: ../trunk-jpl/externalpackages/boost/install-1.55-linux64-static.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property
1 1 #!/bin/bash 2 2 3 echo "modify generic" 3 MATLAB_PATH="/usr/local/MATLAB/R2015a" 4 PACKAGE="ISSM" # Name of directory to copy distributable files to 5 TARBALL_NAME="issm-ubuntu" 6 TARBALL=$TARBALL_NAME.tar.gz 7 8 # Clean up from previous packaging 9 echo "Cleaning up existing assets" 10 cd $ISSM_DIR 11 rm -rf $PACKAGE 12 mkdir $PACKAGE 13 14 # Add/modify required binaries 4 15 cd $ISSM_DIR/bin 16 17 echo "Modify generic" 5 18 cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m 6 echo "move mpiexec to bin" 7 cp ../externalpackages/mpich/install/bin/mpiexec . 8 cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy . 9 echo "move gmsh to bin" 19 20 echo "Moving mpiexec to bin" 21 if [ -f ../externalpackages/mpich/install/bin/mpiexec ]; then 22 cp ../externalpackages/mpich/install/bin/mpiexec . 23 cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy . 24 else 25 echo "mpich not found" 26 fi 27 28 echo "Moving gmsh to bin" 10 29 if [ -f ../externalpackages/gmsh/install/gmsh ]; then 11 30 cp ../externalpackages/gmsh/install/gmsh . 12 31 else … … 13 32 echo "gmsh not found" 14 33 fi 15 34 16 # Check that test101 runs35 # Check that test101 runs 17 36 cd $ISSM_DIR/test/NightlyRun 18 37 rm matlab.log 19 /usr/local/MATLAB/R2015a/bin/matlab -nojvm -nosplash -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log38 $MATLAB_PATH/bin/matlab -nojvm -nosplash -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log 20 39 21 40 if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then 22 41 echo "test101 FAILED" 23 42 exit 1; 24 43 else 25 echo "test101 passed"44 echo "test101 PASSED" 26 45 fi 27 46 28 tarball_name='issm-ubuntu-static_build.tar.gz' 29 30 echo "Cleanup first" 47 echo "Creating tarball: ${TARBALL_NAME}" 31 48 cd $ISSM_DIR 32 rm $tarball_name 49 rm -f $TARBALL 50 cp -rf bin lib test examples scripts $PACKAGE/ 51 tar -czf $TARBALL $PACKAGE 52 ls -lah $TARBALL 33 53 34 echo "Creating tarball: ${tarball_name}"35 cd $ISSM_DIR36 rm -rf trunk37 mkdir trunk38 cp -rf bin lib test examples scripts trunk/39 tar -czf $tarball_name trunk40 ls -lah $tarball_name41 42 54 echo "Shipping binaries to website" 43 55 44 56 # We're using public key authentication method to upload the tarball The … … 55 67 source ~/.ssh/agent.sh 56 68 ssh-add ~/.ssh/ubuntu-bins_jenkins-to-ross 57 69 58 scp $ tarball_name ross.ics.uci.edu:/var/www/html/$tarball_name70 scp $TARBALL ross.ics.uci.edu:/var/www/html/$TARBALL 59 71 60 72 if [ $? -ne 0 ]; then 61 73 echo "The upload failed." -
../trunk-jpl/packagers/ubuntu-dakota/package.sh
1 #!/bin/bash 2 3 MATLAB_PATH="/usr/local/MATLAB/R2015a" 4 PACKAGE="ISSM" # Name of directory to copy distributable files to 5 TARBALL_NAME="issm-ubuntu-dakota" 6 TARBALL=$TARBALL_NAME.tar.gz 7 8 # Clean up from previous packaging 9 echo "Cleaning up existing assets" 10 cd $ISSM_DIR 11 rm -rf $PACKAGE 12 mkdir $PACKAGE 13 14 # Add/modify required binaries 15 cd $ISSM_DIR/bin 16 17 echo "Modify generic" 18 cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m 19 20 echo "Moving mpiexec to bin" 21 if [ -f ../externalpackages/mpich/install/bin/mpiexec ]; then 22 cp ../externalpackages/mpich/install/bin/mpiexec . 23 cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy . 24 else 25 echo "mpich not found" 26 fi 27 28 echo "Moving gmsh to bin" 29 if [ -f ../externalpackages/gmsh/install/gmsh ]; then 30 cp ../externalpackages/gmsh/install/gmsh . 31 else 32 echo "gmsh not found" 33 fi 34 35 # Check that test101 runs 36 cd $ISSM_DIR/test/NightlyRun 37 rm matlab.log 38 $MATLAB_PATH/bin/matlab -nojvm -nosplash -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log 39 40 if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then 41 echo "test101 FAILED" 42 exit 1; 43 else 44 echo "test101 PASSED" 45 fi 46 47 echo "Creating tarball: ${TARBALL_NAME}" 48 cd $ISSM_DIR 49 rm -f $TARBALL 50 cp -rf bin lib test examples scripts $PACKAGE/ 51 tar -czf $TARBALL $PACKAGE 52 ls -lah $TARBALL 53 54 echo "Shipping binaries to website" 55 56 # We're using public key authentication method to upload the tarball The 57 # following lines check to see if the SSH Agent is running. If not, then it is 58 # started and relevant information is forwarded to a script. 59 pgrep "ssh-agent" > /dev/null 60 if [ $? -ne 0 ]; then 61 echo "SSH Agent is not running. Starting it..." 62 ssh-agent > ~/.ssh/agent.sh 63 else 64 echo "SSH Agent is running..." 65 fi 66 67 source ~/.ssh/agent.sh 68 ssh-add ~/.ssh/ubuntu-bins_jenkins-to-ross 69 70 scp $TARBALL ross.ics.uci.edu:/var/www/html/$TARBALL 71 72 if [ $? -ne 0 ]; then 73 echo "The upload failed." 74 echo "Perhaps the SSH Agent was started by some other means." 75 echo "Try killing the agent and running again." 76 fi -
../trunk-jpl/packagers/macosx/package.sh
Property changes on: ../trunk-jpl/packagers/ubuntu-dakota/package.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property
1 1 #!/bin/bash 2 2 3 TARBALL_NAME='issm-mac-static_build' 3 MATLAB_PATH="/Applications/MATLAB_R2015b.app" 4 PACKAGE="ISSM" # Name of directory to copy distributable files to 5 TARBALL_NAME="issm-mac" 4 6 TARBALL=$TARBALL_NAME.tar.gz 5 7 6 8 # Clean up from previous packaging 7 9 echo "Cleaning up existing assets" 8 10 cd $ISSM_DIR 9 rm -rf trunk10 mkdir trunk11 rm -rf $PACKAGE 12 mkdir $PACKAGE 11 13 12 14 # Add/modify required binaries 13 15 cd $ISSM_DIR/bin … … 30 32 echo "gmsh not found" 31 33 fi 32 34 33 # Copy gmt to trunk35 # Copy gmt to package 34 36 # NOTE: The following assumes the precompiled version of gmt 35 37 echo "Moving gmt to externalpackages" 36 38 if [ -f $ISSM_DIR/externalpackages/gmt/install/bin/gmt ]; then 37 mkdir $ISSM_DIR/ trunk/externalpackages38 mkdir $ISSM_DIR/ trunk/externalpackages/gmt39 cp -a $ISSM_DIR/externalpackages/gmt/install /. $ISSM_DIR/trunk/externalpackages/gmt39 mkdir $ISSM_DIR/$PACKAGE/externalpackages 40 mkdir $ISSM_DIR/$PACKAGE/externalpackages/gmt 41 cp -a $ISSM_DIR/externalpackages/gmt/install $ISSM_DIR/$PACKAGE/externalpackages/gmt/install 40 42 else 41 43 echo "gmt not found" 42 44 fi … … 44 46 # Check that test101 runs 45 47 cd $ISSM_DIR/test/NightlyRun 46 48 rm matlab.log 47 /Applications/MATLAB_R2015b.app/bin/matlab -nodisplay -nojvm -nosplash -nodesktop -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log49 $MATLAB_PATH/bin/matlab -nodisplay -nojvm -nosplash -nodesktop -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log 48 50 49 51 if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then 50 52 echo "test101 FAILED" … … 56 58 echo "Creating tarball: ${TARBALL_NAME}" 57 59 cd $ISSM_DIR 58 60 rm -f $TARBALL 59 cp -rf bin lib test examples scripts trunk/61 cp -rf bin lib test examples scripts $PACKAGE/ 60 62 61 63 # Create link to gmt from bin 62 64 # NOTE: It is important that we are in the destination dir when sym linking so that the path is relative 63 if [ -f $ISSM_DIR/ trunk/externalpackages/gmt/bin/gmt ]; then64 cd $ISSM_DIR/ trunk/bin65 ln -s ../externalpackages/gmt/ bin/gmt ./gmt65 if [ -f $ISSM_DIR/$PACKAGE/externalpackages/gmt/install/bin/gmt ]; then 66 cd $ISSM_DIR/$PACKAGE/bin 67 ln -s ../externalpackages/gmt/install/bin/gmt ./gmt 66 68 fi 67 69 68 70 cd $ISSM_DIR 69 tar -czf $TARBALL trunk71 tar -czf $TARBALL $PACKAGE 70 72 ls -lah $TARBALL 71 73 72 74 echo "Shipping binaries to website" -
../trunk-jpl/packagers/macosx-dakota/package.sh
1 1 #!/bin/bash 2 2 3 echo "modify generic" 3 MATLAB_PATH="/Applications/MATLAB_R2015b.app" 4 PACKAGE="ISSM" # Name of directory to copy distributable files to 5 TARBALL_NAME="issm-mac-dakota" 6 TARBALL=$TARBALL_NAME.tar.gz 7 8 # Clean up from previous packaging 9 echo "Cleaning up existing assets" 10 cd $ISSM_DIR 11 rm -rf $PACKAGE 12 mkdir $PACKAGE 13 14 # Add/modify required binaries 4 15 cd $ISSM_DIR/bin 16 17 echo "Modifying generic" 5 18 cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m 6 echo "move mpiexec to bin"7 cp ../externalpackages/mpich/install/bin/mpiexec .8 cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy .9 19 10 #Check that test101 runs 20 echo "Moving mpiexec to bin" 21 if [ -f ../externalpackages/mpich/install/bin/mpiexec ]; then 22 cp ../externalpackages/mpich/install/bin/mpiexec . 23 cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy . 24 else 25 echo "mpich not found" 26 fi 27 28 # Check that test101 runs 11 29 cd $ISSM_DIR/test/NightlyRun 12 30 rm matlab.log 13 /Applications/MATLAB_R2015b.app/bin/matlab -nodisplay -nojvm -nosplash -nodesktop -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101);exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log31 $MATLAB_PATH/bin/matlab -nodisplay -nojvm -nosplash -nodesktop -r "try, addpath $ISSM_DIR/bin $ISSM_DIR/lib; runme('id',101); exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log 14 32 15 33 if [[ $(cat matlab.log | grep -c SUCCESS) -lt 10 ]]; then 16 34 echo "test101 FAILED" 17 35 exit 1; 18 36 else 19 echo "test101 passed"37 echo "test101 PASSED" 20 38 fi 21 39 22 #Package using the Package Maker from OSX, driven by command line. 23 tarball_name='issm-mac-dakota-static_build.tar.gz' 24 25 echo "Cleanup first" 40 echo "Creating tarball: ${TARBALL_NAME}" 26 41 cd $ISSM_DIR 27 rm $tarball_name 42 rm -f $TARBALL 43 cp -rf bin lib test examples scripts $PACKAGE/ 44 tar -czf $TARBALL $PACKAGE 45 ls -lah $TARBALL 28 46 29 echo "Creating tarball: ${tarball_name}"30 cd $ISSM_DIR31 rm -rf trunk32 mkdir trunk33 cp -rf bin lib test examples trunk/34 tar -czf $tarball_name trunk35 ls -lah $tarball_name36 37 47 echo "Shipping binaries to website" 38 48 39 49 # We're using public key authentication method to upload the tarball. The … … 50 60 source ~/.ssh/agent.sh 51 61 ssh-add ~/.ssh/macosx-bins_richese-to-ross 52 62 53 scp $ tarball_name ross.ics.uci.edu:/var/www/html/$tarball_name63 scp $TARBALL ross.ics.uci.edu:/var/www/html/$TARBALL 54 64 55 65 if [ $? -ne 0 ]; then 56 66 echo "The upload failed." -
../trunk-jpl/packagers/win10/package64.sh
1 1 #!/bin/bash 2 2 3 MATLAB_PATH="/cygdrive/c/Programs/MATLAB/R2015a" 4 PACKAGE="ISSM" # Name of directory to copy distributable files to 3 5 TARBALL_NAME='ISSM-Win10-64' 4 6 TARBALL=$TARBALL_NAME.tar.gz 5 MATLAB_PATH="/cygdrive/c/Programs/MATLAB/R2015a"6 7 7 8 # Source Windows environment 8 9 source $ISSM_DIR/externalpackages/windows/windows_environment.sh … … 10 11 # Clean up from previous packaging 11 12 echo "Cleaning up existing assets" 12 13 cd $ISSM_DIR 13 rm -rf trunk14 mkdir trunk14 rm -rf $PACKAGE 15 mkdir $PACKAGE 15 16 16 17 # Add/modify required binaries 17 18 cd $ISSM_DIR/bin … … 25 26 26 27 echo "Copying gmsh to bin" 27 28 if [ -f ../externalpackages/gmsh/install/gmsh.exe ]; then 28 cp ../externalpackages/gmsh/install/gmsh.exe . 29 cp ../externalpackages/gmsh/install/gmsh.exe ./gmsh.exe 29 30 else 30 31 echo "gmsh not found" 31 32 fi 32 33 33 # Copy gmt to trunk34 # Copy gmt to package 34 35 # NOTE: The following assumes the precompiled version of gmt 35 36 echo "Moving gmt to externalpackages" 36 37 if [ -f $ISSM_DIR/externalpackages/gmt/install/bin/gmt ]; then 37 mkdir $ISSM_DIR/ trunk/externalpackages38 mkdir $ISSM_DIR/ trunk/externalpackages/gmt39 cp -a $ISSM_DIR/externalpackages/gmt/install /. $ISSM_DIR/trunk/externalpackages/gmt38 mkdir $ISSM_DIR/$PACKAGE/externalpackages 39 mkdir $ISSM_DIR/$PACKAGE/externalpackages/gmt 40 cp -a $ISSM_DIR/externalpackages/gmt/install $ISSM_DIR/$PACKAGE/externalpackages/gmt/install 40 41 else 41 42 echo "gmt not found" 42 43 fi … … 66 67 echo "Creating tarball: ${TARBALL_NAME}" 67 68 cd $ISSM_DIR 68 69 rm -f $TARBALL 69 cp -rf bin lib test examples scripts trunk/70 cp -rf bin lib test examples scripts $PACKAGE/ 70 71 71 72 # Create link to gmt from bin 72 73 # NOTE: It is important that we are in the destination dir when sym linking so that the path is relative 73 if [ -f $ISSM_DIR/ trunk/externalpackages/gmt/bin/gmt ]; then74 cd $ISSM_DIR/ trunk/bin75 ln -s ../externalpackages/gmt/bin/gmt.exe ./gmt 74 if [ -f $ISSM_DIR/$PACKAGE/externalpackages/gmt/bin/gmt ]; then 75 cd $ISSM_DIR/$PACKAGE/bin 76 ln -s ../externalpackages/gmt/bin/gmt.exe ./gmt.exe 76 77 fi 77 78 78 79 cd $ISSM_DIR 79 tar -czf $TARBALL trunk80 tar -czf $TARBALL $PACKAGE 80 81 ls -lah $TARBALL 81 82 82 83 # Ship binaries to website -
../trunk-jpl/jenkins/linux64_ross_static
22 22 --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \ 23 23 --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \ 24 24 --with-math77-dir=$ISSM_DIR/externalpackages/math77/install \ 25 --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu /4.9-lgfortran" \26 --with- pic\27 --with- numthreads=4'25 --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu -lgfortran" \ 26 --with-numthreads=4 \ 27 --with-pic' 28 28 29 29 #PYTHON and MATLAB testing 30 30 MATLAB_TEST=0 … … 51 51 52 52 #number of cpus used in ISSM installation and compilation (one is usually 53 53 #safer as some packages are very sensitive to parallel compilation) 54 NUMCPUS_INSTALL= 1054 NUMCPUS_INSTALL=4 55 55 56 56 #number of cpus used in the nightly runs. 57 NUMCPUS_RUN= 1057 NUMCPUS_RUN=4 58 58 59 59 #Nightly run options. The matlab routine runme.m will be called 60 60 #as follows: runme($MATLAB_NROPTIONS). The options must be understandable … … 61 61 #by Matlab and runme.m 62 62 #ex: "'id',[101 102 103]" 63 63 ## FS 64 #PYTHON_NROPTIONS=" --exclude_name 'Dakota'"65 #MATLAB_NROPTIONS=" 'exclude',[243,701,702,703,435,IdFromString('Dakota')]"64 #PYTHON_NROPTIONS="" 65 #MATLAB_NROPTIONS="" -
../trunk-jpl/jenkins/linux64_ross_dakota_static
1 2 #-------------------------------# 3 # 1: ISSM general configuration # 4 #-------------------------------# 5 6 #MATLAB path 7 MATLAB_PATH="/usr/local/MATLAB/R2015a" 8 9 #ISSM CONFIGURATION 10 ISSM_CONFIG='--prefix=$ISSM_DIR\ 11 --enable-standalone-executables \ 12 --enable-standalone-modules \ 13 --enable-standalone-libraries \ 14 --with-matlab-dir=$MATLAB_PATH \ 15 --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \ 16 --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include \ 17 --with-mpi-libflags="$ISSM_DIR/externalpackages/mpich/install/lib/libmpifort.a $ISSM_DIR/externalpackages/mpich/install/lib/libmpi.a -lrt -lpthread" \ 18 --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \ 19 --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install \ 20 --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \ 21 --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \ 22 --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \ 23 --with-chaco-dir=$ISSM_DIR/externalpackages/chaco/install \ 24 --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \ 25 --with-boost-dir=$ISSM_DIR/externalpackages/boost/install \ 26 --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install \ 27 --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu -lgfortran" \ 28 --with-numthreads=4 \ 29 --with-pic' 30 31 #PYTHON and MATLAB testing 32 MATLAB_TEST=0 33 PYTHON_TEST=0 34 35 #-----------------------------------# 36 # 3: External packages installation # 37 #-----------------------------------# 38 39 #List of external pakages to be installed and their installation scripts 40 EXTERNALPACKAGES="autotools install.sh 41 cmake install.sh 42 chaco install.sh 43 mpich install-3.2-linux64-static.sh 44 m1qn3 install.sh 45 petsc install-3.7-linux64-static.sh 46 triangle install-linux64.sh 47 boost install-1.55-linux64-static.sh 48 dakota install-6.2-linux64-static.sh 49 shell2junit install.sh" 50 51 #-----------------# 52 # 4: test options # 53 #-----------------# 54 55 #number of cpus used in ISSM installation and compilation (one is usually 56 #safer as some packages are very sensitive to parallel compilation) 57 NUMCPUS_INSTALL=4 58 59 #number of cpus used in the nightly runs. 60 NUMCPUS_RUN=4 61 62 #Nightly run options. The matlab routine runme.m will be called 63 #as follows: runme($MATLAB_NROPTIONS). The options must be understandable 64 #by Matlab and runme.m 65 #ex: "'id',[101 102 103]" 66 #PYTHON_NROPTIONS="" 67 #MATLAB_NROPTIONS="" -
../trunk-jpl/examples/Pig2/runme.m
Property changes on: ../trunk-jpl/jenkins/linux64_ross_dakota_static ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property
1 steps= [1:8];1 steps=1; 2 2 3 if any(steps==1) 3 if any(steps==1) %Mesh Generation #1 4 4 5 5 %Mesh parameters 6 6 domain =['./DomainOutline.exp']; … … 157 157 158 158 if any(steps==6) %Transient Run #1 159 159 160 md = loadmodel('. ./Pig/Models/PIG_Control_drag');160 md = loadmodel('./Models/PIG_Control_drag'); 161 161 162 162 md.inversion.iscontrol=0; 163 163 md.transient.ismasstransport=1; -
../trunk-jpl
Note:
See TracBrowser
for help on using the repository browser.