|
MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <mpi.h>#include <math.h>#include "partmanager.h"#include "forcetree.h"#include "gravity.h"#include "petaio.h"#include "domain.h"#include "run.h"Go to the source code of this file.
Functions | |
| char * | GDB_format_particle (int i) |
| void | register_extra_blocks (struct IOTable *IOTable) |
| double | copy_and_mean_accn (double(*PairAccn)[3]) |
| void | check_accns (double *meanerr_tot, double *maxerr_tot, double(*PairAccn)[3], double meanacc) |
| void | run_gravity_test (int RestartSnapNum, Cosmology *CP, const double Asmth, const int Nmesh, const int FastParticleType, const inttime_t Ti_Current, const char *OutputDir, const struct header_data *header) |
| void check_accns | ( | double * | meanerr_tot, |
| double * | maxerr_tot, | ||
| double(*) | PairAccn[3], | ||
| double | meanacc | ||
| ) |
Definition at line 45 of file runtests.c.
References GravPM, MPI_INT64, part_manager_type::NumPart, P, and PartManager.
Referenced by run_gravity_test().
| double copy_and_mean_accn | ( | double(*) | PairAccn[3] | ) |
Definition at line 25 of file runtests.c.
References MPI_INT64, part_manager_type::NumPart, P, and PartManager.
Referenced by run_gravity_test().
| char* GDB_format_particle | ( | int | i | ) |
Definition at line 58 of file gdbtools.c.
References add, GravPM, and P.
Referenced by run_gravity_test().
| void register_extra_blocks | ( | struct IOTable * | IOTable | ) |
Definition at line 16 of file runtests.c.
References GravPM, IO_REG_WRONLY, and ptype.
Referenced by run_gravity_test().
| void run_gravity_test | ( | int | RestartSnapNum, |
| Cosmology * | CP, | ||
| const double | Asmth, | ||
| const int | Nmesh, | ||
| const int | FastParticleType, | ||
| const inttime_t | Ti_Current, | ||
| const char * | OutputDir, | ||
| const struct header_data * | header | ||
| ) |
Definition at line 71 of file runtests.c.
References part_manager_type::BoxSize, check_accns(), copy_and_mean_accn(), CP, destroy_io_blocks(), domain_decompose_full(), domain_free(), endrun(), gravshort_tree_params::ErrTolForceAcc, fastpm_strdup_printf(), force_tree_free(), force_tree_rebuild(), GDB_format_particle(), get_gravshort_treepar(), grav_short_pair(), grav_short_tree(), Cosmology::GravInternal, gravpm_force(), gravpm_init_periodic(), Cosmology::Hubble, init_driftkicktime(), message(), myfree, mymalloc2, NTask, part_manager_type::NumPart, Cosmology::Omega0, PartManager, petaio_save_snapshot(), petapm_destroy(), gravshort_tree_params::Rcut, rebuild_activelist(), register_extra_blocks(), register_io_blocks(), set_gravshort_treepar(), header_data::TimeIC, header_data::TimeSnapshot, and header_data::UnitLength_in_cm.
Referenced by runtests().