Documentation 6b54b78464
Loading...
Searching...
No Matches
CTecplotBinaryFileWriter::NodePartitioner Class Reference

Calculate the partitioning of nodes to determine: (a) For a given global node number, to which partition does it belong and what is its local node number; and (b) How many nodes are held by each partition. More...

#include <CTecplotBinaryFileWriter.hpp>

Public Member Functions

 NodePartitioner (unsigned long global_num_nodes, int num_ranks)
 
void GetOwningRankAndNodeNumber (unsigned long global_node_number, int &owning_rank, unsigned long &node_number)
 Determine the MPI rank that owns a global node number and its corresponding local node number.
 
int64_t GetRankNumNodes (int which_rank)
 Determine the number of nodes to be output by a particular rank.
 

Detailed Description

Calculate the partitioning of nodes to determine: (a) For a given global node number, to which partition does it belong and what is its local node number; and (b) How many nodes are held by each partition.

Constructor & Destructor Documentation

◆ NodePartitioner()

CTecplotBinaryFileWriter::NodePartitioner::NodePartitioner ( unsigned long  global_num_nodes,
int  num_ranks 
)
inline
Parameters
[in]global_num_nodes- The total number of nodes being output
[in]num_ranks- The number of MPI ranks involved in the output

Member Function Documentation

◆ GetOwningRankAndNodeNumber()

void CTecplotBinaryFileWriter::NodePartitioner::GetOwningRankAndNodeNumber ( unsigned long  global_node_number,
int &  owning_rank,
unsigned long &  node_number 
)
inline

Determine the MPI rank that owns a global node number and its corresponding local node number.

Parameters
global_node_number[in]- The global node number; global node numbers are sequential across all MPI ranks.
owning_rank[out]- The MPI rank that owns (will output) the global node
node_number[out]- The rank-local node number for the given global node number

◆ GetRankNumNodes()

int64_t CTecplotBinaryFileWriter::NodePartitioner::GetRankNumNodes ( int  which_rank)
inline

Determine the number of nodes to be output by a particular rank.

Parameters
which_rank[in]- The MPI rank \ret - The number of nodes that will be output by the give MPI rank.

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