source: issm/oecreview/Archive/14312-15392/ISSM-14469-14470.diff

Last change on this file was 15393, checked in by Mathieu Morlighem, 12 years ago

NEW: adding Archive/14312-15392 for oecreview

File size: 3.9 KB
RevLine 
[15393]1Index: ../trunk-jpl/externalpackages/dakota/dakota_njs_notes_macos64.txt
2===================================================================
3--- ../trunk-jpl/externalpackages/dakota/dakota_njs_notes_macos64.txt (revision 14469)
4+++ ../trunk-jpl/externalpackages/dakota/dakota_njs_notes_macos64.txt (revision 14470)
5@@ -1,5 +0,0 @@
6-Matlab might try to use its local /Applications/MATLAB_R2011b.app/sys/os/maci64/ fortran libraries
7-instead of the gfortran package libraries. Matlab library is missing some symbols, so you might
8-need to link to the actual gfortran library
9-sudo cp /Applications/MATLAB_R2011b.app/sys/os/maci64/libgfortran.3.dynlib /Applications/MATLAB_R2011b.app/sys/os/maci64/libgfortran.3.dynlib.matlab
10-sudo ln -s /usr/local/gfortran/lib/gcc/x86_64-apple-darwin10/4.6.2/libgfortran.3.dylib libgfortran.3.dylib
11Index: ../trunk-jpl/externalpackages/dakota/README
12===================================================================
13--- ../trunk-jpl/externalpackages/dakota/README (revision 14469)
14+++ ../trunk-jpl/externalpackages/dakota/README (revision 14470)
15@@ -1,9 +0,0 @@
16-version 4.3 of dakota is not yet released. The 4.3 version
17-here refers to the VOTD release on May 12th 2009. While waiting
18-for 4.3, we consider the develpment version to be 4.3.
19-4.2 is replaced by 4.3, to handle fnEvalId extra arguemnt to the Dakota
20-structure.
21-
22-Be sure to set FC and F77 variable names to point to your fortran compiler, otherwise,
23- the LHS packages will pick up gfortran as its fortran compiler, which can create serious
24- troubles.
25Index: ../trunk-jpl/externalpackages/dakota/configs/5.2/Teuchos_ConfigDefs.hpp.patch
26===================================================================
27--- ../trunk-jpl/externalpackages/dakota/configs/5.2/Teuchos_ConfigDefs.hpp.patch (revision 0)
28+++ ../trunk-jpl/externalpackages/dakota/configs/5.2/Teuchos_ConfigDefs.hpp.patch (revision 14470)
29@@ -0,0 +1,2 @@
30+87a88
31+> #include <stddef.h>
32Index: ../trunk-jpl/externalpackages/dakota/install-5.2-linux64-larsen.sh
33===================================================================
34--- ../trunk-jpl/externalpackages/dakota/install-5.2-linux64-larsen.sh (revision 0)
35+++ ../trunk-jpl/externalpackages/dakota/install-5.2-linux64-larsen.sh (revision 14470)
36@@ -0,0 +1,53 @@
37+#!/bin/bash
38+set -eu
39+
40+#Some cleanup
41+rm -rf Dakota
42+rm -rf src
43+rm -rf install
44+mkdir src install
45+
46+#Download from ISSM server
47+$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/Dakota_5_2.src.tar.gz' 'Dakota_5_2.src.tar.gz'
48+
49+#Untar
50+tar -zxvf Dakota_5_2.src.tar.gz
51+
52+#Move Dakota to src directory
53+mv Dakota/* src
54+rm -rf Dakota
55+
56+#Apply patches
57+patch src/src/ParallelLibrary.C configs/5.2/ParallelLibrary.C.patch
58+patch src/src/ParallelLibrary.H configs/5.2/ParallelLibrary.H.patch
59+patch src/src/NonDSampling.C configs/5.2/NonDSampling.C.patch
60+patch src/src/NonDLocalReliability.C configs/5.2/NonDLocalReliability.C.patch
61+patch src/src/NonDUnilevelRBDO.C configs/5.2/NonDUnilevelRBDO.C.patch # source not even used?
62+patch src/packages/pecos/src/pecos_global_defs.hpp configs/5.2/pecos_global_defs.hpp.patch
63+patch src/packages/teuchos/src/Teuchos_ConfigDefs.hpp configs/5.2/Teuchos_ConfigDefs.hpp.patch
64+
65+#Configure dakota
66+cd src
67+./configure \
68+ --prefix="$ISSM_DIR/externalpackages/dakota/install" \
69+ --without-graphics \
70+ --with-pic \
71+ --disable-mpi \
72+ --with-plugin \
73+ --with-blas=/usr/lib/libblas.a \
74+ --with-lapack=/usr/lib/liblapack.a
75+
76+/u/astrid-r1b/morlighe/issmjpl/cron/trunk-jpl/externalpackages/blas/install/lib/libblas.a
77+cd ..
78+
79+#Compile and install dakota
80+cd src
81+if [ $# -eq 0 ];
82+then
83+ make
84+ make install
85+else
86+ make -j $1
87+ make -j $1 install
88+fi
89+cd ..
90
91Property changes on: ../trunk-jpl/externalpackages/dakota/install-5.2-linux64-larsen.sh
92___________________________________________________________________
93Added: svn:executable
94## -0,0 +1 ##
95+*
96\ No newline at end of property
Note: See TracBrowser for help on using the repository browser.