VTK  9.1.0
vtkMPIMultiBlockPLOT3DReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkMPIMultiBlockPLOT3DReader.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=========================================================================*/
25#ifndef vtkMPIMultiBlockPLOT3DReader_h
26#define vtkMPIMultiBlockPLOT3DReader_h
27
28#include "vtkIOMPIParallelModule.h" // For export macro
30
31class VTKIOMPIPARALLEL_EXPORT vtkMPIMultiBlockPLOT3DReader : public vtkMultiBlockPLOT3DReader
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 vtkSetMacro(UseMPIIO, bool);
44 vtkGetMacro(UseMPIIO, bool);
45 vtkBooleanMacro(UseMPIIO, bool);
47
48protected:
51
57
58 int OpenFileForDataRead(void*& fp, const char* fname) override;
59 void CloseFile(void* fp) override;
60
61 int ReadIntScalar(void* vfp, int extent[6], int wextent[6], vtkDataArray* scalar,
62 vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord& currentRecord) override;
63 int ReadScalar(void* vfp, int extent[6], int wextent[6], vtkDataArray* scalar,
64 vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord& currentRecord) override;
65 int ReadVector(void* vfp, int extent[6], int wextent[6], int numDims, vtkDataArray* vector,
66 vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord& currentRecord) override;
68
69private:
71 void operator=(const vtkMPIMultiBlockPLOT3DReader&) = delete;
72};
73
74#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkMultiBlockPLOT3DReader subclass that uses MPI-IO to efficiently read binary files for 3D domains i...
void CloseFile(void *fp) override
int ReadIntScalar(void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord &currentRecord) override
static vtkMPIMultiBlockPLOT3DReader * New()
int OpenFileForDataRead(void *&fp, const char *fname) override
~vtkMPIMultiBlockPLOT3DReader() override
int ReadVector(void *vfp, int extent[6], int wextent[6], int numDims, vtkDataArray *vector, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord &currentRecord) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int ReadScalar(void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord &currentRecord) override
bool CanUseMPIIO()
Determines we should use MPI-IO for the current file.
@ vector
Definition: vtkX3D.h:243
@ extent
Definition: vtkX3D.h:351
@ offset
Definition: vtkX3D.h:444