GADGET-4
setcomm Class Reference

#include <setcomm.h>

Inherited by IO_Def, domain< partset >, ewald, logs, memory, parameters, pm_mpi_fft [virtual], restart, simparticles, and test_io_bandwidth [virtual].

Public Member Functions

 setcomm (MPI_Comm Comm)
 
 setcomm (const char *str)
 
void initcomm (MPI_Comm Comm)
 
void mpi_printf (const char *fmt,...)
 
void determine_compute_nodes (void)
 

Public Attributes

MPI_Comm Communicator
 
int NTask
 
int ThisTask
 
int PTask
 
int ThisNode
 
int NumNodes = 0
 
int TasksInThisNode
 
int RankInThisNode
 
int MinTasksPerNode
 
int MaxTasksPerNode
 
long long MemoryOnNode
 
long long SharedMemoryOnNode
 

Detailed Description

Definition at line 22 of file setcomm.h.

Constructor & Destructor Documentation

◆ setcomm() [1/2]

setcomm ( MPI_Comm  Comm)
inline

Definition at line 25 of file setcomm.h.

◆ setcomm() [2/2]

setcomm ( const char *  str)
inline

Definition at line 26 of file setcomm.h.

Member Function Documentation

◆ determine_compute_nodes()

void determine_compute_nodes ( void  )
inline

Definition at line 98 of file setcomm.h.

◆ initcomm()

void initcomm ( MPI_Comm  Comm)
inline

Definition at line 45 of file setcomm.h.

◆ mpi_printf()

void mpi_printf ( const char *  fmt,
  ... 
)
inline

Definition at line 55 of file setcomm.h.

Member Data Documentation

◆ Communicator

MPI_Comm Communicator

Definition at line 31 of file setcomm.h.

◆ MaxTasksPerNode

int MaxTasksPerNode

the maximum number of MPI tasks that is found on any of the nodes

Definition at line 41 of file setcomm.h.

◆ MemoryOnNode

long long MemoryOnNode

Definition at line 42 of file setcomm.h.

◆ MinTasksPerNode

int MinTasksPerNode

the minimum number of MPI tasks that is found on any of the nodes

Definition at line 40 of file setcomm.h.

◆ NTask

int NTask

Definition at line 32 of file setcomm.h.

◆ NumNodes

int NumNodes = 0

the number of compute nodes used

Definition at line 37 of file setcomm.h.

◆ PTask

int PTask

Definition at line 34 of file setcomm.h.

◆ RankInThisNode

int RankInThisNode

rank of the MPI task on the current compute node

Definition at line 39 of file setcomm.h.

◆ SharedMemoryOnNode

long long SharedMemoryOnNode

Definition at line 43 of file setcomm.h.

◆ TasksInThisNode

int TasksInThisNode

number of MPI tasks on current compute node

Definition at line 38 of file setcomm.h.

◆ ThisNode

int ThisNode

the rank of the current compute node

Definition at line 36 of file setcomm.h.

◆ ThisTask

int ThisTask

Definition at line 33 of file setcomm.h.


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