VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkMPI.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMPI.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 
16 #ifndef __vtkMPI_h
17 #define __vtkMPI_h
18 
19 #ifndef USE_STDARG
20  #define USE_STDARG
21 #include "vtkParallelMPIModule.h" // For export macro
22  #include "mpi.h"
23  #undef USE_STDARG
24 #else
25  #include "mpi.h"
26 #endif
27 
28 #include "vtkSystemIncludes.h"
29 
31 {
32 public:
33  vtkMPICommunicatorOpaqueComm(MPI_Comm* handle = 0);
34 
35  MPI_Comm* GetHandle();
36 
37  friend class vtkMPICommunicator;
38  friend class vtkMPIController;
39 
40 protected:
41  MPI_Comm* Handle;
42 };
43 
45 {
46 public:
48  {
49  this->Handle=0;
50  }
51  MPI_Datatype DataType;
52  MPI_Status Status;
53  MPI_Comm* Handle;
54 };
55 
57 {
58 public:
59  vtkMPIOpaqueFileHandle() : Handle(MPI_FILE_NULL) { }
60  MPI_File Handle;
61 };
62 
63 //-----------------------------------------------------------------------------
65 {
66 public:
67  MPI_Request Handle;
68 };
69 
70 
71 #endif // __vtkMPI_h
72 // VTK-HeaderTest-Exclude: vtkMPI.h
Class for creating user defined MPI communicators.
Process communication using MPI.
#define VTKPARALLELMPI_EXPORT