---
:og-title: MONOFONIC
---
# MONOFONIC
![monofonic-logo](../images/monofonic/monofonic-logo.png)

Generador modular de condiciones iniciales (IC) de alta precisión para simulaciones cosmológicas. MUSIC2-monofonIC está diseñado para generar condiciones iniciales de caja completa (full box) sin zoom.

## Versiones instaladas

Dado que MONOFONIC no tiene versionado, el binario presente en el clúster corresponde al commit más reciente al momento de compilar el paquete, que es el 387ac9f.

Características:
* Compilada con Intel OneAPI + OpenMPI 4.1.6
* FFTW 3.3.9
* HDF5 1.10.8
* GSL 2.8

## Como utilizar MONOFONIC

### Carga de módulo

Usted podrá cargar MONOFONIC de la siguiente manera:

```
module purge
module load monofonic
```

Una vez hecho esto, podrá usar el binario `monofonIC`.


### Scripts de ejemplo

#### Script MPI puro
::::{tab-set}

::: {tab-item} 1 Nodo
```
#!/bin/bash
#SBATCH --job-name=monofonic_test
#SBATCH --nodes=1
#SBATCH --ntasks=64
#SBATCH --time=00:30:00
#SBATCH --output=monofonic_%j.out
#SBATCH --error=monofonic_%j.err

module purge
module load monofonic

cp /data/shared/apps/monofonic/1.0/example.conf .
mpirun -np $SLURM_NTASKS monofonIC example.conf
``` 
:::

::: {tab-item} 2 Nodos
```
#!/bin/bash
#SBATCH --job-name=monofonic_test
#SBATCH --nodes=2
#SBATCH --ntasks=128
#SBATCH --time=00:30:00
#SBATCH --output=monofonic_%j.out
#SBATCH --error=monofonic_%j.err

module purge
module load monofonic

cp /data/shared/apps/monofonic/1.0/example.conf .
mpirun -np $SLURM_NTASKS monofonIC example.conf
```
:::

::::


## URLs útiles

Repositorio 1:\
[https://github.com/wullm/monofonic](https://github.com/wullm/monofonic)

Repositorio 2:\
[https://bitbucket.org/ohahn/monofonic](https://bitbucket.org/ohahn/monofonic)

Wiki:\
[https://bitbucket.org/ohahn/monofonic/wiki/Home](https://bitbucket.org/ohahn/monofonic/wiki/Home)

Opciones para configuraciones de caso:\
[https://bitbucket.org/ohahn/monofonic/wiki/ConfigurationFile](https://bitbucket.org/ohahn/monofonic/wiki/ConfigurationFile)