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

Method CloseFile

IO/MPIParallel/vtkMPIMultiBlockPLOT3DReader.cxx:215–230  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

213
214//------------------------------------------------------------------------------
215void vtkMPIMultiBlockPLOT3DReader::CloseFile(void* vfp)
216{
217 if (!this->CanUseMPIIO())
218 {
219 this->Superclass::CloseFile(vfp);
220 return;
221 }
222
223 vtkMPIOpaqueFileHandle* handle = reinterpret_cast<vtkMPIOpaqueFileHandle*>(vfp);
224 assert(handle);
225 if (MPI_File_close(&handle->Handle) != MPI_SUCCESS)
226 {
227 vtkErrorMacro("Failed to close file!");
228 }
229 delete handle;
230}
231
232//------------------------------------------------------------------------------
233int vtkMPIMultiBlockPLOT3DReader::ReadIntScalar(void* vfp, int extent[6], int wextent[6],

Callers

nothing calls this directly

Calls 2

CanUseMPIIOMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected