19 #ifndef vtkMPIPixelView_h
20 #define vtkMPIPixelView_h
37 MPI_Initialized(&mpiOk);
40 std::cerr <<
"This class requires the MPI runtime." << std::endl;
47 MPI_Datatype nativeType;
48 iErr=MPI_Type_contiguous(
58 domain.
Size(domainDims);
64 decomp.
Size(decompDims);
72 unsigned long long nCells=decomp.
Size();
73 iErr=MPI_Type_contiguous((
int)nCells, nativeType, &view);
76 MPI_Type_free(&nativeType);
82 iErr=MPI_Type_create_subarray(
92 MPI_Type_free(&nativeType);
96 iErr=MPI_Type_commit(&view);
99 MPI_Type_free(&nativeType);
103 MPI_Type_free(&nativeType);
void GetStartIndex(int first[2]) const
int vtkMPIPixelViewNew(const vtkPixelExtent &domain, const vtkPixelExtent &decomp, int nComps, MPI_Datatype &view)
void Size(T nCells[2]) const