* Get the block name and id of a given element in a block. */
| 1229 | * Get the block name and id of a given element in a block. |
| 1230 | */ |
| 1231 | std::pair<int, std::string> GetSubElementBlockInfo( |
| 1232 | unsigned char vtkCellType, std::string elementType) const |
| 1233 | { |
| 1234 | const bool preservedStructure = this->ElementCounts.size() == 1; |
| 1235 | if (preservedStructure) |
| 1236 | { |
| 1237 | return std::make_pair(this->BlockId, this->RootName); |
| 1238 | } |
| 1239 | else |
| 1240 | { |
| 1241 | const int splitElementBlockId = |
| 1242 | this->StartSplitElementBlockId + static_cast<int>(vtkCellType); |
| 1243 | const std::string blockName = this->RootName + "_" + elementType; |
| 1244 | return std::make_pair(splitElementBlockId, blockName); |
| 1245 | } |
| 1246 | } |
| 1247 | |
| 1248 | virtual Ioss::EntityBlock* CreateEntity(Ioss::DatabaseIO* db, const std::string& blockName, |
| 1249 | const std::string& elementType, int64_t elementCount) const = 0; |
no test coverage detected