|
|
#SLIM installation on 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
|
|
|
```
|
|
|
Add your build directory to the PATH environment variable. While in your build directory run :
|
|
|
```
|
|
|
echo "PATH=\$PATH:$PWD" >> ~/.bashrc
|
|
|
source ~/.bashrc
|
|
|
```
|
|
|
At this point, the slim installation is complete. To try it, you can run one of the automatic benchmarks. E.g. :
|
|
|
```
|
|
|
cd ../modules/slim3d/tests/swe3dKatoPhilipps
|
|
|
rundgpy test.py
|
|
|
```
|
|
|
It should end with "TEST SUCCEED". |
|
|
\ No newline at end of file |