Building Vaango
Instructions for building Vaango on Ubuntu are given below.
Prerequisites
Cmake:
- You will probably need to install
Cmake
to control the software compilation process. To do that:
Compilers:
- You also need to have
gfortran
:
- and a C Compiler known as
gcc
:
- You will need
boost
for parts of the code (and also the unit tests) to compile.
MPI and XML libraries:
- the
OpenMPI
libraries:
- and
libxml2
:
Other libraries:
- You will also need to install the development version of zlib.
- The Peridynamics code uses parts of the
Eigen3
library. You will have to install this library if you don’t have it in your system:
- In order for related code like MPM3D_xx etc. to work, you will also need the
VTK
libraries. Use
- In some older versions of
Vaango
,libpcl
is used read point data file. In order to get PCL(The Point Cloud Library) you need to run these three commands:
Building the executables
The Vaango repository
After you get the code from GitHub, follow these steps:
- Go to the
Vaango
directory:
- The source code is in the directory
src
.
Out-of-source optimized build
- For the optimized build, create a new directory called
opt
underVaango
:
- followed by:
- To create the make files do:
Out-of-source debug build
- For the debug build, create a directory
dbg
underVaango
:
- To create the makefiles for the debug build, use
Unit tests
If you want the units tests to be compiled, use the alternative command
Clang compiler:
If you want to used the clang
compiler instead of gcc
:
Visit build:
Older versions of Visit
required the following extra step if you want to make sure that Visit is able to read Uintah output format files (also called UDA files) you will need to use
Compiling the code:
- Next you need to compile the needed files from
src
. So enter youropt
directory and then type :
- After this compilation you have all the executable files in your
opt
directory. - The same process can also be used for the debug build.