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

Last change on this file since 10711 was 10711, checked in by cborstad, 13 years ago

added oofem external package

  • Property svn:executable set to *
File size: 878 bytes
Line 
1#!/bin/bash
2
3#Get number of cpus on current platform
4NUMCPUS=$1;
5
6#version of doxygen
7version=`echo *.tar.gz | sed 's/\.tar\.gz//g' | sed 's/oofem-//g'`
8
9#Some cleanup
10rm -rf src
11rm -rf oofem-$version
12
13#Create src and install directories
14mkdir src
15
16#Untar
17tar -zxvf oofem-$version.tar.gz
18
19#Move oofem into src directory
20mv oofem-$version/* src
21rm -rf oofem-$version
22
23# currently a basic serial configuration, see http://www.oofem.org/wiki/doku.php?id=installation
24# for details on enabling the IML++ and PETSc libraries, and for configuring the parallel version
25cd src && ./configure OOFEM_TARGET=oofem-$version --enable-dss && cd targets/oofem-$version
26
27#Compile oofem
28if [ -z $NUMCPUS ];
29then
30 make
31
32 else
33 make -j $NUMCPUS
34fi
35
36# build verification tools
37cd ../../tools && make all
38
39# testing solver
40cd ../targets/oofem-$version && make tests && less ./test_results
Note: See TracBrowser for help on using the repository browser.