|
|
|
---
|
|
|
|
title: Linux
|
|
|
|
---
|
|
|
|
# Linux
|
|
|
|
Before installing BLASTER, users should take a look at the documentation of DART ([here](https://gitlab.uliege.be/am-dept/dartflo/-/wikis/build_linux)) as most required packages are required by BLASTER and DART. All necessary commands are repeated in this page.
|
|
|
|
|
|
|
|
**Required packages**
|
|
|
|
```bash
|
|
|
|
# Common
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install git git-lfs
|
|
|
|
sudo apt install build-essential cmake
|
|
|
|
sudo apt install swig
|
|
|
|
sudo apt install libtbb-dev
|
|
|
|
sudo apt install libeigen3-dev
|
|
|
|
sudo apt install gmsh
|
|
|
|
# Python 3
|
|
|
|
sudo apt install python3-dev
|
|
|
|
sudo apt install python3-mpi4py python3-numpy python3-scipy python3-matplotlib
|
|
|
|
```
|
|
|
|
**Optional packages**
|
|
|
|
```bash
|
|
|
|
# MKL
|
|
|
|
sudo apt install libmkl-dev
|
|
|
|
echo "export INCLUDE=${INCLUDE}:/usr/include/mkl" >> ~/.bashrc
|
|
|
|
# MUMPS
|
|
|
|
sudo apt install libmumps-seq-dev
|
|
|
|
# VTK
|
|
|
|
sudo apt install libvtk9-dev libvtk9-qt-dev python3-vtk9
|
|
|
|
# Documentation
|
|
|
|
sudo apt install doxygen
|
|
|
|
sudo apt install graphviz
|
|
|
|
```
|
|
|
|
**Build**
|
|
|
|
```bash
|
|
|
|
# Get the code
|
|
|
|
git lfs install # enable large file support
|
|
|
|
git clone git@gitlab.uliege.be:am-dept/blaster.git # ssh only
|
|
|
|
cd blaster
|
|
|
|
git checkout dev
|
|
|
|
git pull
|
|
|
|
git submodule init # Enable DART
|
|
|
|
git submodule update
|
|
|
|
cd modules/dartflo
|
|
|
|
git submodule init # Enable amfe
|
|
|
|
git submodule update
|
|
|
|
cd ../../
|
|
|
|
# Build
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
|
|
|
make [-j4]
|
|
|
|
[make install] # to install
|
|
|
|
[make dox] # to build the documentation
|
|
|
|
# Test
|
|
|
|
ctest [-E exclude_pattern] [-R include_pattern] [-j4]
|
|
|
|
``` |
|
|
|
\ No newline at end of file |