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
|
---|
4 | NUMCPUS=$1;
|
---|
5 |
|
---|
6 | #version of doxygen
|
---|
7 | version=`echo *.tar.gz | sed 's/\.tar\.gz//g' | sed 's/oofem-//g'`
|
---|
8 |
|
---|
9 | #Some cleanup
|
---|
10 | rm -rf src
|
---|
11 | rm -rf oofem-$version
|
---|
12 |
|
---|
13 | #Create src and install directories
|
---|
14 | mkdir src
|
---|
15 |
|
---|
16 | #Untar
|
---|
17 | tar -zxvf oofem-$version.tar.gz
|
---|
18 |
|
---|
19 | #Move oofem into src directory
|
---|
20 | mv oofem-$version/* src
|
---|
21 | rm -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
|
---|
25 | cd src && ./configure OOFEM_TARGET=oofem-$version --enable-dss && cd targets/oofem-$version
|
---|
26 |
|
---|
27 | #Compile oofem
|
---|
28 | if [ -z $NUMCPUS ];
|
---|
29 | then
|
---|
30 | make
|
---|
31 |
|
---|
32 | else
|
---|
33 | make -j $NUMCPUS
|
---|
34 | fi
|
---|
35 |
|
---|
36 | # build verification tools
|
---|
37 | cd ../../tools && make all
|
---|
38 |
|
---|
39 | # testing solver
|
---|
40 | cd ../targets/oofem-$version && make tests && less ./test_results
|
---|
Note:
See
TracBrowser
for help on using the repository browser.