GADGET-4
gravnode Struct Reference

#include <gravtree.h>

Inherits basenode.

Public Member Functions

int getSofteningClass (void)
 

Public Attributes

MyDouble mass
 
vector< MyIntPosTypes
 
unsigned char maxsofttype
 
unsigned char minsofttype
 
- Public Attributes inherited from basenode
std::atomic< node_bit_fieldflag_already_fetched
 
vector< MyIntPosTypecenter
 
int sibling
 
int nextnode
 
int father
 
int OriginTask
 
int OriginNode
 
unsigned char level
 
unsigned char sibling_shmrank
 
unsigned char nextnode_shmrank
 
std::atomic_flag access
 
std::atomic< unsigned char > cannot_be_opened_locally
 
unsigned char not_empty: 1
 

Detailed Description

The tree node data structure. Nodes points to the actual memory allocated for the internal nodes, but is shifted such that Nodes[Sp.MaxPart] gives the first allocated node. Note that node numbers less than Sp.MaxPart are the leaf nodes that contain a single particle, and node numbers >= MaxPart+MaxNodes are "pseudo particles" that hang off the toplevel leaf nodes belonging to other tasks. These are not represented by this structure. Instead, the tree traversal for these are saved in the Nextnode, Prevnode and Father arrays, indexed with the node number in the case of real particles and by nodenumber-MaxNodes for pseudo particles.

Definition at line 63 of file gravtree.h.

Member Function Documentation

◆ getSofteningClass()

int getSofteningClass ( void  )
inline

Definition at line 90 of file gravtree.h.

Member Data Documentation

◆ mass

MyDouble mass

mass of node

Definition at line 65 of file gravtree.h.

◆ maxsofttype

unsigned char maxsofttype

hold the maximum gravitational softening of particles

Definition at line 83 of file gravtree.h.

◆ minsofttype

unsigned char minsofttype

hold the minimum gravitational softening of particles

Definition at line 84 of file gravtree.h.

◆ s

center of mass of node (in integer coordinates!)

Definition at line 66 of file gravtree.h.


The documentation for this struct was generated from the following file: