GADGET-4
gravtree.h File Reference

declares the gravitational tree node structure and a class for gravity tree calculation More...

#include "gadgetconfig.h"
#include <string.h>
#include "../data/simparticles.h"
#include "../data/symtensors.h"
#include "../domain/domain.h"
#include "../mpi_utils/mpi_utils.h"
#include "../tree/tree.h"

Go to the source code of this file.

Classes

struct  gravnode
 
struct  gravpoint_data
 
struct  foreign_gravpoint_data
 
struct  ewald_data
 
class  gravtree< partset >
 
struct  gravtree< partset >::mesh_factors
 
struct  gravtree< partset >::resultsactiveimported_data
 
struct  gravtree< partset >::index_data
 
struct  gravtree< partset >::gfactors
 

Macros

#define NTAB   256 /* size of short-range look up */
 
#define TREE_DO_BASE_PM   1
 
#define TREE_DO_HIGHRES_PM   2
 
#define TREE_ACTIVE_CUTTOFF_BASE_PM   4
 
#define TREE_ACTIVE_CUTTOFF_HIGHRES_PM   8
 
#define TREE_MIN_WORKSTACK_SIZE   100000
 
#define TREE_EXPECTED_CYCLES   80
 
#define NODE_TYPE_LOCAL_PARTICLE   0
 
#define NODE_TYPE_TREEPOINT_PARTICLE   1
 
#define NODE_TYPE_FETCHED_PARTICLE   2
 
#define NODE_TYPE_LOCAL_NODE   3
 
#define NODE_TYPE_FETCHED_NODE   4
 
#define NODE_USE   0
 
#define NODE_OPEN   1
 
#define NODE_DISCARD   2
 
#define MAX_TREE_ALLOC_FACTOR   30.0
 
#define TAKE_NSLOTS_IN_ONE_GO   32
 
#define HIGHEST_NEEDEDORDER_EWALD_DPHI   1
 
#define EWALD_TAYLOR_ORDER   2
 

Detailed Description

declares the gravitational tree node structure and a class for gravity tree calculation

Definition in file gravtree.h.

Macro Definition Documentation

◆ EWALD_TAYLOR_ORDER

#define EWALD_TAYLOR_ORDER   2

Definition at line 179 of file gravtree.h.

◆ HIGHEST_NEEDEDORDER_EWALD_DPHI

#define HIGHEST_NEEDEDORDER_EWALD_DPHI   1

Definition at line 153 of file gravtree.h.

◆ MAX_TREE_ALLOC_FACTOR

#define MAX_TREE_ALLOC_FACTOR   30.0

Definition at line 39 of file gravtree.h.

◆ NODE_DISCARD

#define NODE_DISCARD   2

Definition at line 37 of file gravtree.h.

◆ NODE_OPEN

#define NODE_OPEN   1

Definition at line 36 of file gravtree.h.

◆ NODE_TYPE_FETCHED_NODE

#define NODE_TYPE_FETCHED_NODE   4

Definition at line 33 of file gravtree.h.

◆ NODE_TYPE_FETCHED_PARTICLE

#define NODE_TYPE_FETCHED_PARTICLE   2

Definition at line 31 of file gravtree.h.

◆ NODE_TYPE_LOCAL_NODE

#define NODE_TYPE_LOCAL_NODE   3

Definition at line 32 of file gravtree.h.

◆ NODE_TYPE_LOCAL_PARTICLE

#define NODE_TYPE_LOCAL_PARTICLE   0

Definition at line 29 of file gravtree.h.

◆ NODE_TYPE_TREEPOINT_PARTICLE

#define NODE_TYPE_TREEPOINT_PARTICLE   1

Definition at line 30 of file gravtree.h.

◆ NODE_USE

#define NODE_USE   0

Definition at line 35 of file gravtree.h.

◆ NTAB

#define NTAB   256 /* size of short-range look up */

Definition at line 18 of file gravtree.h.

◆ TAKE_NSLOTS_IN_ONE_GO

#define TAKE_NSLOTS_IN_ONE_GO   32

Definition at line 41 of file gravtree.h.

◆ TREE_ACTIVE_CUTTOFF_BASE_PM

#define TREE_ACTIVE_CUTTOFF_BASE_PM   4

Definition at line 23 of file gravtree.h.

◆ TREE_ACTIVE_CUTTOFF_HIGHRES_PM

#define TREE_ACTIVE_CUTTOFF_HIGHRES_PM   8

Definition at line 24 of file gravtree.h.

◆ TREE_DO_BASE_PM

#define TREE_DO_BASE_PM   1

Definition at line 21 of file gravtree.h.

◆ TREE_DO_HIGHRES_PM

#define TREE_DO_HIGHRES_PM   2

Definition at line 22 of file gravtree.h.

◆ TREE_EXPECTED_CYCLES

#define TREE_EXPECTED_CYCLES   80

Definition at line 27 of file gravtree.h.

◆ TREE_MIN_WORKSTACK_SIZE

#define TREE_MIN_WORKSTACK_SIZE   100000

Definition at line 26 of file gravtree.h.