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
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf src
6rm -rf oofem-2.0
7mkdir src
8
9#Download from ISSM server
10$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/oofem-2.0.tar.gz' 'oofem-2.0.tar.gz'
11
12#Untar
13tar -zxvf oofem-2.0.tar.gz
14
15#Move oofem into src directory
16mv oofem-2.0/* src
17rm -rf oofem-2.0
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
21cd src
22./configure OOFEM_TARGET=oofem-2.0 --enable-dss
23
24#Compile oofem
25cd targets/oofem-2.0
26if [ $# -eq 0 ]; then
27 make
28else
29 make -j $1
30fi
31
32# build verification tools
33cd ../../tools && make all
34
35# testing solver
36cd ../targets/oofem-2.0 && make tests && less ./test_results
Note: See TracBrowser for help on using the repository browser.