1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00
monofonIC/README.md

82 lines
3.4 KiB
Markdown
Raw Normal View History

2020-08-17 09:48:25 +02:00
# MUSIC2 - monofonIC
Modular high-precision IC generator for cosmological simulations. MUSIC2-monofonIC is for non-zoom full box ICs (use [MUSIC](https://bitbucket.org/ohahn/music) for zooms, MUSIC2 for zooms is in the works).
[Full manual is available here as a wiki](https://bitbucket.org/ohahn/monofonic/wiki/). Quick instructions follow below.
Currently supported features (list is growing, so check back):
- Support for up to 3rd order Lagrangian perturbation theory (i.e. 1,2, and 3LPT)
2020-08-21 16:30:59 +02:00
- Support for PPT (Semiclassical PT for Eulerian grids) up to 2nd order
- Support for mixed CDM+baryon sims
2020-08-17 09:48:25 +02:00
- Multiple Einstein-Boltzmann modules: direct interface with [CLASS](https://lesgourg.github.io/class_public/class.html), file input from CAMB, and fitting formulae (Eisenstein&Hu).
- Multiple output modules for RAMSES, Arepo and Gadget-2/3 via plugins (Swift and Nyx are next). New codes can be added (see how to contribute in CONTRIBUTING.md file)
- Hybrid parallelization with MPI+OpenMP/threads.
- Requires FFTW v3, GSL (and HDF5 for output for some codes), as well as a CMake build system.
2020-08-21 17:11:22 +02:00
## Contributing and Licensing
2020-08-21 16:30:59 +02:00
See file CONTRIBUTING.md on how to contribute to the development. The software is licensed under GPL v3 (see file LICENSE).
2020-08-21 17:11:22 +02:00
## Citing in scientific publications or presentations
2020-08-21 16:30:59 +02:00
If you use MUSIC2-monofonIC in your scientific work, you are required to acknowledge this by linking to this repository and citing the relevant papers:
2020-08-17 11:05:00 +02:00
2020-08-21 17:11:22 +02:00
- For total matter sims, or 3LPT/PLT related aspects: Michaux et al. 2020 (arXiv:TBD)
- For baryon+CDM sims, or PPT numerics related aspects: Hahn et al. 2020 (arXiv:TBD)
2020-08-21 16:31:25 +02:00
2020-08-21 17:11:22 +02:00
## Acknowledgments
2019-05-09 21:52:55 +02:00
2020-08-21 17:11:22 +02:00
We acknowledge support from the European Research Council (ERC) under the European Union<6F>s Horizon 2020 research and innovation programmes for the development of this software (Grant agreement No. 679145).
2020-08-21 17:08:54 +02:00
2019-09-04 12:29:48 +02:00
## Build Instructions
Clone code including submodules (currently only CLASS is used as a submodule):
2020-03-01 17:48:03 +01:00
git clone --recurse-submodules https://<username>@bitbucket.org/ohahn/monofonic.git
2019-09-04 12:29:48 +02:00
Create build directory, configure, and build:
mkdir monofonic/build; cd monofonic/build
ccmake ..
make
this should create an executable in the build directory.
2019-12-19 12:52:08 +01:00
If you run into problems with CMake not being able to find your local FFTW3 or HDF5 installation, it is best to give the path directly as
FFTW3_ROOT=<path> HDF5_ROOT=<path> ccmake ..
2019-12-19 12:55:56 +01:00
make sure to delete previous files generated by CMake before reconfiguring like this.
2019-12-19 12:58:35 +01:00
If you want to build on macOS, then it is strongly recommended to use GNU (or Intel) compilers instead of Apple's Clang. Install them e.g.
via homebrew and then configure cmake to use them instead of the macOS default compiler via
CC=gcc-9 CXX=g++-9 ccmake ..
This is necessary since Apple's compilers haven't supported OpenMP for years.
2019-12-19 12:55:56 +01:00
## Running
There is an example parameter file 'example.conf' in the main directory. Possible options are explained in it, it can be run
as a simple argument, e.g. from within the build directory:
2020-08-21 16:30:59 +02:00
./monofonIC ../example.conf
2019-12-19 12:55:56 +01:00
If you want to run with MPI, you need to enable MPI support via ccmake. Then you can launch in hybrid MPI+threads mode by
specifying the desired number of threads per task in the config file, and the number of tasks to be launched via
2020-08-21 16:30:59 +02:00
mpirun -np 16 ./monofonIC <path to config file>
2019-12-19 12:55:56 +01:00
It will then run with 16 tasks times the number of threads per task specified in the config file.