GADGET-4
|
#include <gravtree.h>
Inherits basenode.
Public Member Functions | |
int | getSofteningClass (void) |
Public Attributes | |
MyDouble | mass |
vector< MyIntPosType > | s |
unsigned char | maxsofttype |
unsigned char | minsofttype |
Public Attributes inherited from basenode | |
std::atomic< node_bit_field > | flag_already_fetched |
vector< MyIntPosType > | center |
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 |
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.
|
inline |
Definition at line 90 of file gravtree.h.
MyDouble mass |
mass of node
Definition at line 65 of file gravtree.h.
unsigned char maxsofttype |
hold the maximum gravitational softening of particles
Definition at line 83 of file gravtree.h.
unsigned char minsofttype |
hold the minimum gravitational softening of particles
Definition at line 84 of file gravtree.h.
center of mass of node (in integer coordinates!)
Definition at line 66 of file gravtree.h.