MCPcopy Create free account
hub / github.com/Kitware/VTK / ReadIntScalar

Method ReadIntScalar

IO/MPIParallel/vtkMPIMultiBlockPLOT3DReader.cxx:233–250  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

231
232//------------------------------------------------------------------------------
233int vtkMPIMultiBlockPLOT3DReader::ReadIntScalar(void* vfp, int extent[6], int wextent[6],
234 vtkDataArray* scalar, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord& record)
235
236{
237 if (!this->CanUseMPIIO())
238 {
239 return this->Superclass::ReadIntScalar(vfp, extent, wextent, scalar, offset, record);
240 }
241
242 vtkIdType n = vtkStructuredData::GetNumberOfPoints(extent);
243 vtkMPIPLOT3DArrayReader<int> arrayReader;
244 arrayReader.ByteOrder = this->Internal->Settings.ByteOrder;
245 vtkIdType preskip, postskip;
246 vtkMultiBlockPLOT3DReaderInternals::CalculateSkips(extent, wextent, preskip, postskip);
247 vtkIntArray* intArray = static_cast<vtkIntArray*>(scalar);
248 return arrayReader.ReadScalar(
249 vfp, offset, preskip, n, postskip, intArray->GetPointer(0), record) == n;
250}
251
252//------------------------------------------------------------------------------
253int vtkMPIMultiBlockPLOT3DReader::ReadScalar(void* vfp, int extent[6], int wextent[6],

Callers

nothing calls this directly

Calls 4

CanUseMPIIOMethod · 0.95
GetNumberOfPointsFunction · 0.50
ReadScalarMethod · 0.45
GetPointerMethod · 0.45

Tested by

no test coverage detected