mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Clip: Release resources early
This commit is contained in:
parent
863c8e3dc6
commit
758fedc661
@ -645,6 +645,9 @@ public:
|
||||
this->CellMapOutputToInput);
|
||||
this->InterpolationKeysBuilt = false;
|
||||
|
||||
clipTableIndices.ReleaseResources();
|
||||
cellSetStats.ReleaseResources();
|
||||
|
||||
// Get unique EdgeInterpolation : unique edge points.
|
||||
// LowerBound for edgeInterpolation : get index into new edge points array.
|
||||
// LowerBound for cellPointEdgeInterpolation : get index into new edge points array.
|
||||
@ -658,12 +661,14 @@ public:
|
||||
edgeInterpolation,
|
||||
edgeInterpolationIndexToUnique,
|
||||
EdgeInterpolation::LessThanOp());
|
||||
edgeInterpolation.ReleaseResources();
|
||||
|
||||
vtkm::cont::ArrayHandle<vtkm::Id> cellInterpolationIndexToUnique;
|
||||
vtkm::cont::Algorithm::LowerBounds(this->EdgePointsInterpolation,
|
||||
cellPointEdgeInterpolation,
|
||||
cellInterpolationIndexToUnique,
|
||||
EdgeInterpolation::LessThanOp());
|
||||
cellPointEdgeInterpolation.ReleaseResources();
|
||||
|
||||
this->EdgePointsOffset = scalars.GetNumberOfValues();
|
||||
this->InCellPointsOffset =
|
||||
|
Loading…
Reference in New Issue
Block a user