|
|
# Installation
|
|
|
## Linux
|
|
|
1. Install the HDF5 libraries:
|
|
|
```bash
|
|
|
sudo apt-get install libhdf5-dev
|
|
|
```
|
|
|
If you intend to use *CAXS*, install the latest version of [OpenMPI](https://www.open-mpi.org/) as well
|
|
|
(support of `mpif08` is mandatory).
|
|
|
2. Download the tar.gz archive in the _dist_ directory.
|
|
|
3. Extract its content anywhere you want executing:
|
|
|
```bash
|
|
|
tar xzvf exorem.tar.gz
|
|
|
```
|
|
|
4. `cd` yourself into the extracted _dist/exorem_ directory, then compile the code executing:
|
|
|
```bash
|
|
|
make exorem
|
|
|
```
|
|
|
5. Test the installation executing:
|
|
|
```bash
|
|
|
cd bin
|
|
|
./exorem.exe --version
|
|
|
```
|
|
|
Then:
|
|
|
```bash
|
|
|
./exorem.exe ../inputs/example.nml
|
|
|
```
|
|
|
|
|
|
Notes:
|
|
|
- you can compile all the programs coming with *Exo-REM* executing:
|
|
|
```bash
|
|
|
make
|
|
|
```
|
|
|
- you can compile the debug version (slower, but more informative on error) of *Exo-REM* executing:
|
|
|
```bash
|
|
|
make exorem_debug
|
|
|
```
|
|
|
or, for all the programs:
|
|
|
```bash
|
|
|
make debug
|
|
|
```
|
|
|
|
|
|
## Windows 10
|
|
|
1. Install your favourite Linux distribution on your computer following [these instructions](
|
|
|
https://docs.microsoft.com/en-gb/windows/wsl/install-win10).
|
|
|
2. Launch the Linux application.
|
|
|
3. Execute inside the Linux terminal:
|
|
|
```bash
|
|
|
apt-get update -y
|
|
|
apt-get upgrade -y
|
|
|
apt-get install -y build-essential
|
|
|
```
|
|
|
3. Follow the installation steps for Linux.
|
|
|
|
|
|
Note: to access to a Windows directory from your Linux application, use `/mnt`.
|
|
|
For example to `cd` into _C:\Users_ execute `cd /mnt/c/Users`. |
|
|
\ No newline at end of file |