1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00
High order LPT/PPT cosmological IC generator for single resolution cosmological simulations
Find a file
Oliver Hahn 2fe35aa2b4 fixes
2020-02-25 18:36:54 +01:00
external class submodule update 2020-02-24 21:27:27 +01:00
include Merge branch 'develop' into constraint 2020-02-24 18:14:24 +01:00
src fixes 2020-02-25 18:36:54 +01:00
testing/RAMSES added RAMSES testing namelist and conf file 2019-08-08 18:54:10 +02:00
.gitignore added .DS_store to ignore 2019-08-05 17:41:56 +02:00
.gitmodules Changed the CLASS repository to the fork. 2019-05-15 15:21:14 +02:00
CMakeLists.txt removed sanitizer options from cmake 2020-01-25 23:31:50 +01:00
example.conf added constraint mode copying. needs testing 2020-02-25 18:36:46 +01:00
example_testing.conf small optimizations 2019-12-19 13:54:24 +01:00
FindFFTW3.cmake fixed a mistake in FindFFTW cmake script 2019-10-12 15:06:12 +02:00
ics.conf small optimizations 2019-12-19 13:54:24 +01:00
README.md README.md edited online with Bitbucket 2019-12-19 11:58:35 +00:00
version.cmake added compile time version information output and new logo 2019-09-04 12:07:40 +02:00

monofonIC

High order LPT/QPT tool for single resolution simulations

Build Instructions

Clone code including submodules (currently only CLASS is used as a submodule):

git clone --recurse-submodules https://ohahn@bitbucket.org/ohahn/monofonic.git

Create build directory, configure, and build:

mkdir monofonic/build; cd monofonic/build

ccmake ..

make

this should create an executable in the build directory.

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 ..

make sure to delete previous files generated by CMake before reconfiguring like this.

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.

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:

 ./monofonic ../example.conf

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

 mpirun -np 16 ./monofonic <path to config file>

It will then run with 16 tasks times the number of threads per task specified in the config file.