Difference between revisions of "Sig Numerical Optimization / DAKOTA installation issues"

From OpenFOAMWiki
(DAKOTA installation issues)
(DAKOTA installation issues)
Line 20: Line 20:
  
  
**ccmake is the CMake curses interface. Project configuration settings may be specified interactively through this GUI.mCMake is a cross-platform build system generator.   
+
ccmake is the CMake curses interface. Project configuration settings may be specified interactively through this GUI. CMake is a cross-platform build system generator.   
  
**As soon as you enter in ccmake, press first the key "c" to configure the script. After configuring all scripts you can start the installation.   
+
As soon as you enter in ccmake, press first the key "c" to configure the script. After configuring all scripts you can start the installation.   
**Press the key "t" to get the advanced options. Then turn off the flag BUILD_SHARED_LIBS.
+
Press the key "t" to get the advanced options. Then turn off the option BUILD_SHARED_LIBS. We turn off this option because there is a naming conflict between one
**We do this because there is a conflict in some libraries between openfoam and dakota (libsampling.so).   
+
library OpenFOAM and one library DAKOTA (libsampling.so).  By doing this, we compile DAKOTA as a static library.  
So we compile dakota as static library
+
By the way you can configure the compilation here, so feel free to take a look at the output.
+
Personally speaking I only need to do this change and maybe enable MPI.
+
  
make -j8
+
By the way, while you are in ccmake you can configure many options of the compilation process, so feel free to take a look at all options. Personally speaking, I only need to compile DAKOTA as a static library and maybe enable MPI support.
  
make install
+
 
 +
7) make -j8
 +
 
 +
The -j options is to compile in parallel, in this case I am compiling with 8 processors.
 +
 
 +
 
 +
8) make install
  
 
 

Revision as of 14:30, 21 September 2014

DAKOTA installation issues

How to install DAKOTA in different Linux distributions:

  • Installing DAKOTA 6.0 in OpenSUSE 12.3

To install DAKOTA in any directory of your preference, follow these steps:

1) Create the installation directory ($DAKOTA_INS), and copy DAKOTA source code on it

2) tar -xzf dakota-6.0.0-public-src.tar.gz

3) mkdir dakota-6.0.0

4) cd dakota-6.0.0

5) cp $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaTemplate.cmake $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaCustom.cmake

6) ccmake -C $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaCustom.cmake $DAKOTA_INS/dakota-6.0.0.src -DCMAKE_INSTALL_PREFIX=$DAKOTA_INS/dakota-6.0.0


ccmake is the CMake curses interface. Project configuration settings may be specified interactively through this GUI. CMake is a cross-platform build system generator.  
As soon as you enter in ccmake, press first the key "c" to configure the script. After configuring all scripts you can start the installation.  
Press the key "t" to get the advanced options. Then turn off the option BUILD_SHARED_LIBS.  We turn off this option because there is a naming conflict between one 
library OpenFOAM and one library DAKOTA (libsampling.so).  By doing this, we compile DAKOTA as a static library. 
By the way, while you are in ccmake you can configure many options of the compilation process, so feel free to take a look at all options. Personally speaking, I only need to compile DAKOTA as a static library and maybe enable MPI support.


7) make -j8

The -j options is to compile in parallel, in this case I am compiling with 8 processors. 


8) make install


      • When you finish the compilation add the path to the .bashrc file.
      • In my case

export PATH=$PATH:/home/joegi/dakota/dakota-6.0.0/bin:/home/joegi/dakota/dakota-6.0.0/test export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/joegi/dakota/dakota-6.0.0/bin:/home/joegi/dakota/dakota-6.0.0/lib