|
|
# SLIM installation
|
|
|
|
|
|
SLIM is a a python library which means that the "input files" driving the simulations are actually python scripts interpreted by a python interpreter.
|
|
|
We do not provides binary distribution of slim, except for windows and in all cases, it is recommended to compile it from sources. To compile SLIM, a unix-like environment is required. Depending on your OS, several choices are possible.
|
|
|
|
|
|
## Linux
|
|
|
On Debian/Ubuntu install the following packages. The names might be slightly different on other distributions.
|
|
|
```
|
|
|
sudo apt-get update
|
|
|
sudo apt install gfortran git libblas-dev libglu1-mesa libhdf5-dev liblapack-dev libmetis-dev libnetcdf-dev libopenmpi-dev libsm6 libxcursor1 libxft2 libxinerama1 openmpi-bin python3-dev python3-mpi4py python3-numpy python3-scipy swig unzip libtiff-dev gmsh python3-netcdf4
|
|
|
```
|
|
|
Clone the SLIM git repository.
|
|
|
```
|
|
|
git clone https://git.immc.ucl.ac.be/dg/dg.git
|
|
|
```
|
|
|
Create a build directory in the dg directory and use cmake to generate the setup the build environment.
|
|
|
```
|
|
|
cd dg
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake .. -DENABLE_GOTM=1 -DPYTHON_EXECUTABLE=/usr/bin/python3
|
|
|
```
|
|
|
Build the library (it will takes some time ...)
|
|
|
```
|
|
|
make -j4
|
|
|
```
|
|
|
|
|
|
## OS X
|
|
|
## windows |