VTK
dox
Parallel
MPI4Py
vtkMPI4PyCommunicator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMPI4PyCommunicator.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
=========================================================================*/
26
#ifndef vtkMPI4PyCommunicator_h
27
#define vtkMPI4PyCommunicator_h
28
29
#include "vtkPython.h"
// For PyObject*; must be first
30
31
#include "vtkParallelMPI4PyModule.h"
// For export macro
32
#include "
vtkObject.h
"
33
34
class
vtkMPICommunicator
;
35
36
class
VTKPARALLELMPI4PY_EXPORT
vtkMPI4PyCommunicator
:
public
vtkObject
37
{
38
public
:
39
40
vtkTypeMacro(
vtkMPI4PyCommunicator
,
vtkObject
);
41
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
42
43
static
vtkMPI4PyCommunicator
*
New
();
44
vtkMPI4PyCommunicator
();
45
49
static
PyObject
*
ConvertToPython
(
vtkMPICommunicator
* comm);
50
54
static
vtkMPICommunicator
*
ConvertToVTK
(
PyObject
* comm);
55
56
private
:
57
vtkMPI4PyCommunicator
(
const
vtkMPI4PyCommunicator
&) =
delete
;
58
void
operator=(
const
vtkMPI4PyCommunicator
&) =
delete
;
59
};
60
61
#endif
vtkMPI4PyCommunicator::vtkMPI4PyCommunicator
vtkMPI4PyCommunicator()
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:60
PyObject
struct _object PyObject
Definition:
vtkMatplotlibMathTextUtilities.h:35
vtkMPI4PyCommunicator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMPI4PyCommunicator::ConvertToVTK
static vtkMPICommunicator * ConvertToVTK(PyObject *comm)
Convert an mpi4py communicator into a VTK communicator.
vtkMPICommunicator
Class for creating user defined MPI communicators.
Definition:
vtkMPICommunicator.h:53
vtkMPI4PyCommunicator::ConvertToPython
static PyObject * ConvertToPython(vtkMPICommunicator *comm)
Convert a VTK communicator into an mpi4py communicator.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkObject.h
vtkMPI4PyCommunicator
Class for bridging MPI4Py with vtkMPICommunicator.
Definition:
vtkMPI4PyCommunicator.h:37
vtkMPI4PyCommunicator::New
static vtkMPI4PyCommunicator * New()
Generated by
1.8.18