------------------------------------------------------------------------------ Copy time instances information and create mesh times
| 5572 | //------------------------------------------------------------------------------ |
| 5573 | // Copy time instances information and create mesh times |
| 5574 | void 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 | //------------------------------------------------------------------------------ |
| 5605 | void vtkOpenFOAMReaderPrivate::AddFieldName( |
no test coverage detected