GADGET-4
ngbtree Class Reference

#include <ngbtree.h>

Inherits tree< ngbnode, simparticles, ngbpoint_data, foreign_sphpoint_data >.

Inherited by sph.

Public Types

typedef tree< ngbnode, simparticles, ngbpoint_data, foreign_sphpoint_databasetree
 
- Public Types inherited from tree< ngbnode, simparticles, ngbpoint_data, foreign_sphpoint_data >
enum  ftype
 
typedef decltype(Tp->P) pdata
 

Public Member Functions

void update_velocities (void)
 
void update_maxhsml (void)
 
void update_vbounds (int i, int *nchanged, int *nodelist, char *flag_changed)
 
void check_bounds (void)
 
void update_node_recursive (int no, int sib, int mode) override
 
void exchange_topleafdata (void) override
 
void fill_in_export_points (ngbpoint_data *exp_point, int i, int no) override
 
void report_log_message (void) override
 
- Public Member Functions inherited from tree< ngbnode, simparticles, ngbpoint_data, foreign_sphpoint_data >
void tree_add_to_fetch_stack (ngbnode *nop, int nodetoopen, unsigned char shmrank)
 
void tree_add_to_work_stack (int target, int no, unsigned char shmrank, int mintopleafnode)
 
void prepare_shared_memory_access (void)
 
void cleanup_shared_memory_access (void)
 
void tree_fetch_foreign_nodes (enum ftype fetch_type)
 
void tree_initialize_leaf_node_access_info (void)
 
foreign_sphpoint_dataget_foreignpointsp (int n, unsigned char shmrank)
 
subfind_dataget_PSp (int n, unsigned char shmrank)
 
pdata get_Pp (int n, unsigned char shmrank)
 
sph_particle_dataget_SphPp (int n, unsigned char shmrank)
 
 tree ()
 
int treebuild (int ninsert, int *indexlist)
 
void treefree (void)
 
void treeallocate (int max_partindex, simparticles *Pptr, domain< simparticles > *Dptr)
 
void treeallocate_share_topnode_addresses (void)
 
void tree_export_node_threads (int no, int i, thread_data *thread, offset_tuple off=0)
 
void tree_export_node_threads_by_task_and_node (int task, int nodeindex, int i, thread_data *thread, offset_tuple off=0)
 
ngbnodeget_nodep (int no)
 
ngbnodeget_nodep (int no, unsigned char shmrank)
 
int * get_nextnodep (unsigned char shmrank)
 
ngbpoint_dataget_pointsp (int no, unsigned char shmrank)
 
void tree_get_node_and_task (int i, int &no, int &task)
 

Additional Inherited Members

- Static Public Member Functions inherited from tree< ngbnode, simparticles, ngbpoint_data, foreign_sphpoint_data >
static bool compare_ghostrank (const fetch_data &a, const fetch_data &b)
 
static bool compare_workstack (const workstack_data &a, const workstack_data &b)
 
- Public Attributes inherited from tree< ngbnode, simparticles, ngbpoint_data, foreign_sphpoint_data >
domain< simparticles > * D
 
simparticlesTp
 
int * Father
 
int * Nextnode
 
int * NodeSibling
 
int * NodeIndex
 
ngbnodeTopNodes
 
ngbnodeNodes
 
ngbnodeForeign_Nodes
 
foreign_sphpoint_dataForeign_Points
 
ptrdiff_t * TreeNodes_offsets
 
ptrdiff_t * TreePoints_offsets
 
ptrdiff_t * TreeNextnode_offsets
 
ptrdiff_t * TreeForeign_Nodes_offsets
 
ptrdiff_t * TreeForeign_Points_offsets
 
ptrdiff_t * TreeP_offsets
 
ptrdiff_t * TreeSphP_offsets
 
ptrdiff_t * TreePS_offsets
 
void ** TreeSharedMemBaseAddr
 
unsigned char * NodeLevel
 
ngbpoint_dataPoints
 
int * IndexList
 
int * ResultIndexList
 
int * Send_offset
 
int * Send_count
 
int * Recv_count
 
int * Recv_offset
 
int MaxPart
 
int MaxNodes
 
int NumNodes
 
int NumPartImported
 
int NumPartExported
 
int NumForeignNodes
 
int MaxForeignNodes
 
int NumForeignPoints
 
int MaxForeignPoints
 
long long sum_NumForeignNodes
 
long long sum_NumForeignPoints
 
int FirstNonTopLevelNode
 
int EndOfTreePoints
 
int EndOfForeignNodes
 
int ImportedNodeOffset
 
int Ninsert
 
int NextFreeNode
 
MPI_Comm TreeSharedMemComm
 
int TreeSharedMem_ThisTask
 
int TreeSharedMem_NTask
 
int TreeInfoHandle
 
double Buildtime
 
int NumOnFetchStack
 
int MaxOnFetchStack
 
fetch_data * StackToFetch
 
int NumOnWorkStack
 
int MaxOnWorkStack
 
int NewOnWorkStack
 
int AllocWorkStackBaseLow
 
int AllocWorkStackBaseHigh
 
workstack_data * WorkStack
 

Detailed Description

Definition at line 116 of file ngbtree.h.

Member Typedef Documentation

◆ basetree

Member Function Documentation

◆ check_bounds()

void check_bounds ( void  )

Definition at line 160 of file ngbtree_build.cc.

◆ exchange_topleafdata()

void exchange_topleafdata ( void  )
overridevirtual

◆ fill_in_export_points()

void fill_in_export_points ( ngbpoint_data exp_point,
int  i,
int  no 
)
overridevirtual

◆ report_log_message()

void report_log_message ( void  )
overridevirtual

◆ update_maxhsml()

void update_maxhsml ( void  )

Definition at line 697 of file ngbtree_build.cc.

◆ update_node_recursive()

void update_node_recursive ( int  no,
int  sib,
int  mode 
)
overridevirtual

this routine determines the node ranges a given internal node and all its subnodes using a recursive computation. The result is stored in the Nodes[] structure in the sequence of this tree-walk. mode = 0: process a leaf branch, mode = 1: process top-level nodes

Implements tree< ngbnode, simparticles, ngbpoint_data, foreign_sphpoint_data >.

Definition at line 254 of file ngbtree_build.cc.

◆ update_vbounds()

void update_vbounds ( int  i,
int *  nchanged,
int *  nodelist,
char *  flag_changed 
)

Definition at line 410 of file ngbtree_build.cc.

◆ update_velocities()

void update_velocities ( void  )

Definition at line 664 of file ngbtree_build.cc.


The documentation for this class was generated from the following files: