VTK  9.5.20250826
vtkMPIUtilities Namespace Reference

Functions

template<typename... T>
void Print (vtkMPIController *comm, const char *format, T &&... args)
 Rank 0 prints the user-supplied formatted message to stdout.
 
template<typename... T>
void Printf (vtkMPIController *comm, const char *formatArg, T &&... args)
 Rank 0 prints the user-supplied formatted message to stdout.
 
template<typename... T>
void SynchronizedPrint (vtkMPIController *comm, const char *format, T &&... args)
 Each rank, r_0 to r_{N-1}, prints the formatted message to stdout in rank order.
 
template<typename... T>
void SynchronizedPrintf (vtkMPIController *comm, const char *formatArg, T &&... args)
 Each rank, r_0 to r_{N-1}, prints the formatted message to stdout in rank order.
 

Function Documentation

◆ Print()

template<typename... T>
void vtkMPIUtilities::Print ( vtkMPIController comm,
const char *  format,
T &&...  args 
)

Rank 0 prints the user-supplied formatted message to stdout.

This method works just like vtk::print, but, requires an additional argument to specify the MPI controller for the application. NOTE: This is a collective operation, all ranks in the given communicator must call this method. The format should follow std::format.

Definition at line 26 of file vtkMPIUtilities.h.

◆ Printf()

template<typename... T>
void vtkMPIUtilities::Printf ( vtkMPIController comm,
const char *  formatArg,
T &&...  args 
)

Rank 0 prints the user-supplied formatted message to stdout.

This method works just like vtk::print, but, requires an additional argument to specify the MPI controller for the application. NOTE: This is a collective operation, all ranks in the given communicator must call this method. The format should follow std::format.

Definition at line 38 of file vtkMPIUtilities.h.

◆ SynchronizedPrint()

template<typename... T>
void vtkMPIUtilities::SynchronizedPrint ( vtkMPIController comm,
const char *  format,
T &&...  args 
)

Each rank, r_0 to r_{N-1}, prints the formatted message to stdout in rank order.

That is, r_i prints the supplied message right after r_{i-1}. NOTE: This is a collective operation, all ranks in the given communicator must call this method. The format should follow std::format.

Definition at line 58 of file vtkMPIUtilities.h.

◆ SynchronizedPrintf()

template<typename... T>
void vtkMPIUtilities::SynchronizedPrintf ( vtkMPIController comm,
const char *  formatArg,
T &&...  args 
)

Each rank, r_0 to r_{N-1}, prints the formatted message to stdout in rank order.

That is, r_i prints the supplied message right after r_{i-1}. NOTE: This is a collective operation, all ranks in the given communicator must call this method. The format should follow std::format.

Definition at line 112 of file vtkMPIUtilities.h.