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

Method SetupInformation

IO/Geometry/vtkOpenFOAMReader.cxx:5574–5602  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Copy time instances information and create mesh times

Source from the content-addressed store, hash-verified

5572//------------------------------------------------------------------------------
5573// Copy time instances information and create mesh times
5574void vtkOpenFOAMReaderPrivate::SetupInformation(const std::string& casePath,
5575 const std::string& regionName, const std::string& procName, vtkOpenFOAMReaderPrivate* master,
5576 bool requirePolyMesh, const bool skipComputingMetaData)
5577{
5578 vtkFoamDebug(<< "SetupInformation (" << this->RegionName << "/" << procName
5579 << ") polyMesh:" << requirePolyMesh << "\n");
5580
5581 // Copy parent, path and timestep information from master
5582 this->CasePath = casePath;
5583 this->RegionName = regionName;
5584 this->ProcessorName = procName;
5585 this->Parent = master->Parent;
5586 this->TimeValues->Delete();
5587 this->TimeValues = master->TimeValues;
5588 this->TimeValues->Register(nullptr);
5589 this->TimeNames->Delete();
5590 this->TimeNames = master->TimeNames;
5591 this->TimeNames->Register(nullptr);
5592
5593 // Clear any cached knowledge
5594 this->PolyMeshTimeIndexPoints.clear();
5595 this->PolyMeshTimeIndexFaces.clear();
5596
5597 // Normally expect a (default region) polyMesh/, but not for multi-region cases
5598 if (requirePolyMesh)
5599 {
5600 this->PopulateMeshTimeIndices(skipComputingMetaData);
5601 }
5602}
5603
5604//------------------------------------------------------------------------------
5605void vtkOpenFOAMReaderPrivate::AddFieldName(

Callers 1

MakeInformationVectorMethod · 0.45

Calls 4

DeleteMethod · 0.65
RegisterMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected