VTK
dox
Parallel
MPI
vtkMPIUtilities.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMPIUtilities.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
#ifndef vtkMPIUtilities_h
16
#define vtkMPIUtilities_h
17
18
#include "vtkParallelMPIModule.h"
// For export macro
19
20
// Forward declarations
21
class
vtkMPIController
;
22
23
namespace
vtkMPIUtilities
24
{
25
26
// Description:
27
// Rank 0 prints the user-supplied formatted message to stdout.
28
// This method works just like printf, but, requires an additional
29
// argument to specify the MPI controller for the application.
30
// NOTE: This is a collective operation, all ranks in the given communicator
31
// must call this method.
32
VTKPARALLELMPI_EXPORT
33
void
Printf
(
vtkMPIController
* comm,
const
char
* format, ...);
34
35
// Description:
36
// Each rank, r_0 to r_{N-1}, prints the formatted message to stdout in
37
// rank order. That is, r_i prints the supplied message right after r_{i-1}.
38
// NOTE: This is a collective operation, all ranks in the given communicator
39
// must call this method.
40
VTKPARALLELMPI_EXPORT
41
void
SynchronizedPrintf
(
vtkMPIController
* comm,
const
char
* format, ...);
42
43
}
// END namespace vtkMPIUtilities
44
45
#endif // vtkMPIUtilities_h
46
// VTK-HeaderTest-Exclude: vtkMPIUtilities.h
vtkMPIUtilities
Definition:
vtkMPIUtilities.h:23
vtkMPIUtilities::SynchronizedPrintf
VTKPARALLELMPI_EXPORT void SynchronizedPrintf(vtkMPIController *comm, const char *format,...)
vtkMPIUtilities::Printf
VTKPARALLELMPI_EXPORT void Printf(vtkMPIController *comm, const char *format,...)
vtkMPIController
Process communication using MPI.
Definition:
vtkMPIController.h:61
Generated by
1.8.16