Installation¶
First step to install neXtSIM is to download this repository :
git clone https://github.com/nextsimhub/nextsimdg.git
You will get the main branch of the code, if you need a specific version :
git clone -b v1.0 https://github.com/nextsimhub/nextsimdg.git
Dependencies¶
To compile neXtSIM, you need to install first some libraries :
Compilation on MAC OS¶
If your package manager is Homebrew :
brew install netcdf
brew install netcdf-cxx
brew install boost
brew install cmake
brew install eigen
cd nextsimdg
mkdir -p build
cd build
cmake ..
make
Compilation on a Debian-based Linux distribution (Debian, Ubuntu, etc)¶
You must have root privilege :
sudo apt-get update
sudo apt-get install netcdf-bin libnetcdf-c++4-dev libboost-all-dev cmake libeigen3-dev
cd nextsimdg
mkdir -p build
cd build
cmake ..
make
Compilation with dependencies installation via conda¶
Install conda via anaconda or miniconda (no root privileges required)
conda create --name nextsimdg
conda activate nextsimdg
conda install -c conda-forge netcdf-cxx4
conda install -c conda-forge boost
conda install -c anaconda cmake
cd nextsimdg
mkdir -p build
cd build
cmake ..
make