| 111 | } |
| 112 | |
| 113 | std::vector<vtkSmartPointer<vtkCellGrid>> vtkIOSSCellGridReaderInternal::GetElementBlock( |
| 114 | const std::string& blockName, vtkIOSSReader::EntityType vtk_entity_type, |
| 115 | const DatabaseHandle& handle, int timestep, vtkIOSSCellGridReader* self) |
| 116 | { |
| 117 | (void)vtk_entity_type; |
| 118 | auto region = this->GetRegion(handle); |
| 119 | auto group_entity = region->get_entity(blockName, Ioss::EntityType::ELEMENTBLOCK); |
| 120 | if (!group_entity) |
| 121 | { |
| 122 | throw std::runtime_error("No group entity for element block."); |
| 123 | } |
| 124 | |
| 125 | return this->GetElementBlock(blockName, group_entity, handle, timestep, self); |
| 126 | } |
| 127 | |
| 128 | std::vector<vtkSmartPointer<vtkCellGrid>> vtkIOSSCellGridReaderInternal::GetElementBlock( |
| 129 | const std::string& blockName, const Ioss::GroupingEntity* group_entity, |
no test coverage detected