Commit f73576ec authored by Kenneth Leiter's avatar Kenneth Leiter

ENH: Add unpartition method to partitioner.

Unpartition method takes an XdmfGridCollection of unstructured grids
and zips them back together into a single XdmfUnstructuredGrid. It uses
GlobalNodeIds to perform the unpartitioning.

Also added some functionality to the partitioner so that it will properly
partition set attributes of types other than scalar.
parent dd6850a1
This diff is collapsed.
......@@ -92,6 +92,17 @@ public:
const MetisScheme metisScheme = DUAL_GRAPH,
const shared_ptr<XdmfHeavyDataWriter> heavyDataWriter = shared_ptr<XdmfHeavyDataWriter>()) const;
* Unpartitions an XdmfGridCollection of unstructured grids into a single
* XdmfUnstructuredGrid.
* @param gridToPartition an XdmfGridUnstructured to partition.
* @return a unstructured grid containing the unpartitioned grid.
unpartition(const shared_ptr<XdmfGridCollection> gridToUnPartition) const;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment