source: issm/trunk/externalpackages/oofem/install.sh

Last change on this file was 24313, checked in by Mathieu Morlighem, 5 years ago

merged trunk-jpl and trunk for revision 24310

  • Property svn:executable set to *
File size: 809 bytes
RevLine 
[10711]1#!/bin/bash
[13395]2set -eu
[10711]3
4#Some cleanup
5rm -rf src
[11237]6rm -rf oofem-2.0
[10711]7mkdir src
8
[12332]9#Download from ISSM server
[24313]10$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/oofem-2.0.tar.gz' 'oofem-2.0.tar.gz'
[12332]11
[10711]12#Untar
[11237]13tar -zxvf oofem-2.0.tar.gz
[10711]14
15#Move oofem into src directory
[11237]16mv oofem-2.0/* src
17rm -rf oofem-2.0
[10711]18
19# currently a basic serial configuration, see http://www.oofem.org/wiki/doku.php?id=installation
20# for details on enabling the IML++ and PETSc libraries, and for configuring the parallel version
[11237]21cd src
22./configure OOFEM_TARGET=oofem-2.0 --enable-dss
[10711]23
24#Compile oofem
[11237]25cd targets/oofem-2.0
[13395]26if [ $# -eq 0 ]; then
[11237]27 make
28else
29 make -j $1
[10711]30fi
31
32# build verification tools
33cd ../../tools && make all
34
35# testing solver
[11237]36cd ../targets/oofem-2.0 && make tests && less ./test_results
Note: See TracBrowser for help on using the repository browser.