PhotoNs-3 is a cosmological simulation code for the large-scale structure of mass distribution in the LCDM universe.
External Dependences
- 2Decomp&FFT (version 1.5)
- FFTW-3.3.8
- compiler for C/C++, Fortran, CUDA/HIP, and MPI
The accuracy and formulae of the Particale-Mesh Fast-Multipole Method have been verified in PhotoNs-2. In the third version, further technical optimizations for parallel processing and heterogeneous acceleration have been implemented.
Quick Start install the 2decomp&FFT-1.5 and FFTW (optional), then one can build following the Makefile.
cd $WORK_PATH make make demo
- set cosmological parameters in 'src/photoNs.c'
- set mesh number in 'inc/setparam.h'
- set control parameters in 'src/setparam.c'
Note that total particle number must be NSIDEMESH**3 in current version.