FML
Loading...
Searching...
No Matches
FoF.h File Reference

Go to the source code of this file.

Data Structures

class  FML::FOF::FoFCell
 A gridcell in a grid used for speeding up the linking of particles The ID of the particles is their position in the particle list. More...
 

Namespaces

namespace  FML
 
namespace  FML::FOF
 This namespace deals how to link together particles in groups.
 

Typedefs

using FML::FOF::Timings = FML::UTILS::Timings
 

Enumerations

enum  FML::FOF::ParticleType { FML::FOF::BOUNDARY_PARTICLE = -1 , FML::FOF::REGULAR_PARTICLE = 0 }
 Type of particle for book-keeping. More...
 

Functions

template<class T , int NDIM, class FoFHaloClass >
void FML::FOF::FriendsOfFriends (T *part, size_t NumPart, double linking_length, int nmin_FoF_group, bool periodic, double Buffersize_over_Boxsize, std::vector< FoFHaloClass > &LocalFoFGroups, int Ngrid=FoF_Ngrid_max)
 Locate friends of friends groups and bin what you want over these groups.
 
template<class T , int NDIM>
void FML::FOF::ParticlesToCells (int Ngrid, int &Local_nx, double dx_boundary, T *part, size_t NumPart, T *part_boundary, size_t NumPart_boundary, std::vector< FoFCell > &PartCells, std::vector< size_t > &particlegriddata)
 Internal method: bin particles to a grid.
 

Variables

const constexpr size_t FML::FOF::no_FoF_ID = std::numeric_limits<size_t>::max()
 If a particle belongs to no FoF group it is given this FoF ID.
 
int FML::FOF::FoF_Ngrid_max = 1024
 The maximum grid we are allowed to use to bin the particle to This is just to have a memory limit in what the algorithm is allowed to allocate.
 
Timings FML::FOF::foftimer
 Records timings of the FoF search.
 
size_t FML::FOF::FoF_number_of_groups_reaching_buffer_edge {0}
 The number of groups found in the last call to FriendsOfFriends (summed over tasks) that reach the edge of the buffer of particles copied from the neighbor tasks.