GADGET-4
sph Class Reference

#include <sph.h>

Inherits ngbtree.

Public Member Functions

void compute_densities (void)
 
void density (int *targetlist, int ntarget)
 
void hydro_forces_determine (int ntarget, int *targetlist)
 
void tree_based_timesteps (void)
 
- Public Member Functions inherited from ngbtree
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)
 

Public Attributes

double fac_mu
 
- 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
 

Additional Inherited Members

- Public Types inherited from ngbtree
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
 
- 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)
 

Detailed Description

Definition at line 20 of file sph.h.

Member Function Documentation

◆ compute_densities()

void compute_densities ( void  )

Definition at line 410 of file density.cc.

◆ density()

void density ( int *  targetlist,
int  ntarget 
)

Definition at line 434 of file density.cc.

◆ hydro_forces_determine()

void hydro_forces_determine ( int  ntarget,
int *  targetlist 
)

Definition at line 271 of file hydra.cc.

◆ tree_based_timesteps()

void tree_based_timesteps ( void  )

Definition at line 316 of file timestep_treebased.cc.

Member Data Documentation

◆ fac_mu

double fac_mu

Definition at line 32 of file sph.h.


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