VTK
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
vtkMPICommunicatorReceiveDataInfo
Definition: vtkMPI.h:45
vtkMPICommunicatorOpaqueRequest::Handle
MPI_Request Handle
Definition: vtkMPI.h:67
vtkMPICommunicatorOpaqueComm
Definition: vtkMPI.h:31
vtkMPIOpaqueFileHandle::vtkMPIOpaqueFileHandle
vtkMPIOpaqueFileHandle()
Definition: vtkMPI.h:59
vtkMPICommunicatorOpaqueComm::Handle
MPI_Comm * Handle
Definition: vtkMPI.h:41
vtkMPICommunicator
Class for creating user defined MPI communicators.
Definition: vtkMPICommunicator.h:52
vtkMPICommunicatorOpaqueRequest
Definition: vtkMPI.h:65
vtkMPICommunicatorReceiveDataInfo::DataType
MPI_Datatype DataType
Definition: vtkMPI.h:51
vtkMPICommunicatorReceiveDataInfo::Status
MPI_Status Status
Definition: vtkMPI.h:52
vtkMPICommunicatorReceiveDataInfo::Handle
MPI_Comm * Handle
Definition: vtkMPI.h:53
VTKPARALLELMPI_EXPORT
#define VTKPARALLELMPI_EXPORT
Definition: vtkParallelMPIModule.h:15
vtkMPIOpaqueFileHandle::Handle
MPI_File Handle
Definition: vtkMPI.h:60
vtkMPIOpaqueFileHandle
Definition: vtkMPI.h:57
vtkMPICommunicatorOpaqueComm::vtkMPICommunicatorOpaqueComm
vtkMPICommunicatorOpaqueComm(MPI_Comm *handle=0)
vtkMPIController
Process communication using MPI.
Definition: vtkMPIController.h:61
vtkParallelMPIModule.h
vtkMPICommunicatorReceiveDataInfo::vtkMPICommunicatorReceiveDataInfo
vtkMPICommunicatorReceiveDataInfo()
Definition: vtkMPI.h:47
vtkSystemIncludes.h
vtkMPICommunicatorOpaqueComm::GetHandle
MPI_Comm * GetHandle()