MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Classes | |
struct | BaseGroup |
struct | Group |
struct | FOFGroups |
Typedefs | |
typedef struct FOFGroups | FOFGroups |
Functions | |
void | set_fof_params (ParameterSet *ps) |
void | fof_init (double DMMeanSeparation) |
FOFGroups | fof_fof (DomainDecomp *ddecomp, const int StoreGrNr, MPI_Comm Comm) |
void | fof_finish (FOFGroups *fof) |
void | fof_seed (FOFGroups *fof, ActiveParticles *act, double atime, MPI_Comm Comm) |
void | fof_save_groups (FOFGroups *fof, const char *OutputDir, const char *FOFFileBase, int num, Cosmology *CP, double atime, const double *MassTable, int MetalReturnOn, int BlackholeOn, MPI_Comm Comm) |
void | fof_save_particles (FOFGroups *fof, const char *OutputDir, const char *FOFFileBase, int num, int SaveParticles, Cosmology *CP, double atime, const double *MassTable, int MetalReturnOn, int BlackholeOn, MPI_Comm Comm) |
void fof_finish | ( | FOFGroups * | fof | ) |
Definition at line 257 of file fof.c.
References FOFGroups::Group, message(), MPI_TYPE_GROUP, myfree, mymalloc_usedbytes, and walltime_measure.
Referenced by run(), runfof(), and test_fof().
FOFGroups fof_fof | ( | DomainDecomp * | ddecomp, |
const int | StoreGrNr, | ||
MPI_Comm | Comm | ||
) |
Definition at line 151 of file fof.c.
References fof_alloc_group(), fof_assign_grnr(), fof_compare_HaloLabel_MinID(), fof_compile_base(), fof_compile_catalogue(), fof_label_primary(), fof_label_secondary(), fof_params, FOFParams::FOFHaloComovingLinkingLength, FOFParams::FOFPrimaryLinkTypes, force_tree_free(), force_tree_rebuild_mask(), BaseGroup::GrNr, FOFGroups::Group, message(), fof_particle_list::MinID, BaseGroup::MinID, MPI_TYPE_GROUP, MPIU_Barrier, myfree, mymalloc, mymalloc_usedbytes, part_manager_type::NumPart, P, PartManager, fof_particle_list::Pindex, qsort_openmp, and walltime_measure.
Referenced by run(), runfof(), and test_fof().
void fof_init | ( | double | DMMeanSeparation | ) |
Definition at line 66 of file fof.c.
References fof_params, FOFParams::FOFHaloComovingLinkingLength, and FOFParams::FOFHaloLinkingLength.
Referenced by init().
void fof_save_groups | ( | FOFGroups * | fof, |
const char * | OutputDir, | ||
const char * | FOFFileBase, | ||
int | num, | ||
Cosmology * | CP, | ||
double | atime, | ||
const double * | MassTable, | ||
int | MetalReturnOn, | ||
int | BlackholeOn, | ||
MPI_Comm | Comm | ||
) |
Definition at line 1113 of file fof.c.
References CP, fof_params, fof_save_particles(), and FOFParams::FOFSaveParticles.
Referenced by run(), and runfof().
void fof_save_particles | ( | FOFGroups * | fof, |
const char * | OutputDir, | ||
const char * | FOFFileBase, | ||
int | num, | ||
int | SaveParticles, | ||
Cosmology * | CP, | ||
double | atime, | ||
const double * | MassTable, | ||
int | MetalReturnOn, | ||
int | BlackholeOn, | ||
MPI_Comm | Comm | ||
) |
Definition at line 32 of file fofpetaio.c.
References conversions::atime, part_manager_type::Base, slots_manager_type::Base, build_buffer_fof(), CP, destroy_io_blocks(), endrun(), IOTable::ent, fastpm_strdup_printf(), fof_distribute_particles(), fof_radix_Group_GrNr(), fof_register_io_blocks(), fof_write_header(), FOFGroups::Group, conversions::hubble, hubble_function(), message(), MPIU_Barrier, mpsort_mpi, myfree, mymalloc, IOTableEntry::name, FOFGroups::Ngroups, part_manager_type::NumPart, petaio_build_buffer(), petaio_build_selection(), petaio_destroy_buffer(), petaio_save_block(), IOTableEntry::ptype, ptype, PTYPE_FOF_GROUP, register_io_blocks(), FOFGroups::TotNgroups, IOTable::used, and walltime_measure.
Referenced by fof_save_groups().
void fof_seed | ( | FOFGroups * | fof, |
ActiveParticles * | act, | ||
double | atime, | ||
MPI_Comm | Comm | ||
) |
Definition at line 1290 of file fof.c.
References ActiveParticles::ActiveParticle, cmp_seed_task(), fof_params, fof_seed_make_one(), FOFGroups::Group, slots_manager_type::info, Group::LenType, Group::Mass, Group::MassType, part_manager_type::MaxPart, slot_info::maxsize, message(), FOFParams::MinFoFMassForNewSeed, FOFParams::MinMStarForNewSeed, MPI_Alltoallv_smart(), MPI_TYPE_GROUP, myfree, mymalloc, mymalloc2, FOFGroups::Ngroups, NTask, ActiveParticles::NumActiveParticle, part_manager_type::NumPart, PartManager, qsort_openmp, Group::seed_index, Group::seed_task, slot_info::size, slots_reserve(), SlotsManager, ta_free, ta_malloc, ThisTask, and walltime_measure.
Referenced by run().
void set_fof_params | ( | ParameterSet * | ps | ) |
Definition at line 50 of file fof.c.
References fof_params, FOFParams::FOFHaloLinkingLength, FOFParams::FOFHaloMinLength, FOFParams::FOFPrimaryLinkTypes, FOFParams::FOFSaveParticles, FOFParams::FOFSecondaryLinkTypes, FOFParams::MinFoFMassForNewSeed, FOFParams::MinMStarForNewSeed, param_get_double(), param_get_int(), and ThisTask.
Referenced by read_parameter_file().