|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|

Go to the source code of this file.
Classes | |
| class | Particle |
Macros | |
| #define | _NDIM 3 |
Functions | |
| void | read_particles (std::string filename, std::vector< Particle > &P) |
| void | assign_to_grid (Grid< 3, double > &f, std::vector< Particle > &P, std::string store_grid_filename) |
| bool | exists (std::string filename) |
| int | main (int argc, char **argv) |
| void assign_to_grid | ( | Grid< 3, double > & | f, |
| std::vector< Particle > & | P, | ||
| std::string | store_grid_filename | ||
| ) |
Definition at line 88 of file fofr.cpp.
References Catch::cout(), Grid< NDIM, T >::dump_to_file(), Grid< NDIM, T >::get_N(), Grid< NDIM, T >::get_Ntot(), Grid< NDIM, T >::get_y(), mfunc_bm::iz, max(), anonymous_namespace{chameleon.cpp}::min(), Particle::x, Particle::y, and Particle::z.
Referenced by main(), and Particle::Particle().
| bool exists | ( | std::string | filename | ) |
Definition at line 129 of file fofr.cpp.
Referenced by main(), Particle::Particle(), and read_particles().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 134 of file fofr.cpp.
References assign_to_grid(), Catch::cout(), exists(), MultiGrid< NDIM, T >::get_grid(), MultiGrid< NDIM, T >::get_N(), MultiGrid< NDIM, T >::get_Nlevel(), Grid< NDIM, T >::max(), Grid< NDIM, T >::min(), Grid< NDIM, T >::read_from_file(), read_particles(), and MultiGrid< NDIM, T >::restrict_down().
| void read_particles | ( | std::string | filename, |
| std::vector< Particle > & | P | ||
| ) |
Definition at line 50 of file fofr.cpp.
References Catch::cout(), and exists().
Referenced by main(), and Particle::Particle().