----------------------------------------------------------------------------
| 1227 | |
| 1228 | //---------------------------------------------------------------------------- |
| 1229 | int GetAssociation(const std::string& assoc) |
| 1230 | { |
| 1231 | if (assoc == "element") |
| 1232 | { |
| 1233 | return vtkDataObject::CELL; |
| 1234 | } |
| 1235 | else if (assoc == "vertex") |
| 1236 | { |
| 1237 | return vtkDataObject::POINT; |
| 1238 | } |
| 1239 | |
| 1240 | throw std::runtime_error("unsupported association " + assoc); |
| 1241 | } |
| 1242 | VTK_ABI_NAMESPACE_END |
| 1243 | } // vtkDataObjectToConduit namespace |
no outgoing calls
no test coverage detected