----------------------------------------------------------------------------
| 1076 | |
| 1077 | //---------------------------------------------------------------------------- |
| 1078 | void FillConduitNodeAssembly(vtkPartitionedDataSetCollection* pdc, conduit_cpp::Node& conduit_node) |
| 1079 | { |
| 1080 | std::map<unsigned int, std::string> name_map; |
| 1081 | for (unsigned int pdsId = 0; pdsId < pdc->GetNumberOfPartitionedDataSets(); pdsId++) |
| 1082 | { |
| 1083 | name_map[pdsId] = ::GetPartitionedDSName(pdc, pdsId); |
| 1084 | } |
| 1085 | |
| 1086 | if (auto assembly = pdc->GetDataAssembly()) |
| 1087 | { |
| 1088 | auto assemblyNode = conduit_node["assembly"]; |
| 1089 | ::FillAssembly(name_map, assembly->GetRootNode(), assembly, assemblyNode); |
| 1090 | } |
| 1091 | } |
| 1092 | |
| 1093 | VTK_ABI_NAMESPACE_END |
| 1094 | } // vtkDataObjectToConduit namespace |