Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VTK-m
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Belnut
VTK-m
Commits
f0a342e4
Commit
f0a342e4
authored
Dec 29, 2018
by
Abhishek Yenpure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding fix for Clip failure
- Failure reported by Matt Larsen Bug :
vtk/vtk-m#329
parent
c4bf46ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
vtkm/worklet/Clip.h
vtkm/worklet/Clip.h
+7
-10
No files found.
vtkm/worklet/Clip.h
View file @
f0a342e4
...
...
@@ -394,7 +394,6 @@ public:
{
(
void
)
shape
;
vtkm
::
Id
clipIndex
=
clipDataIndex
;
// Start index for the cells of this case.
vtkm
::
Id
cellIndex
=
clipStats
.
NumberOfCells
;
// Start index to store connevtivity of this case.
...
...
@@ -636,15 +635,13 @@ public:
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Id
>
cellPointReverseConnectivity
;
cellPointReverseConnectivity
.
Allocate
(
total
.
NumberOfInCellIndices
);
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Id
>
cellPointInterpolationKeys
;
cellPointInterpolationKeys
.
Allocate
(
total
.
NumberOfInCellInterpPoints
);
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Id
>
cellPointInterpolationInfo
;
cellPointInterpolationInfo
.
Allocate
(
total
.
NumberOfInCellInterpPoints
);
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Id
>
cellPointEdgeReverseConnectivity
;
cellPointEdgeReverseConnectivity
.
Allocate
(
total
.
NumberOfInCellEdgeIndices
);
vtkm
::
cont
::
ArrayHandle
<
EdgeInterpolation
>
cellPointEdgeInterpolation
;
cellPointEdgeInterpolation
.
Allocate
(
total
.
NumberOfInCellEdgeIndices
);
this
->
InCellInterpolationKeys
.
Allocate
(
total
.
NumberOfInCellInterpPoints
);
this
->
InCellInterpolationInfo
.
Allocate
(
total
.
NumberOfInCellInterpPoints
);
this
->
CellMapOutputToInput
.
Allocate
(
total
.
NumberOfCells
);
GenerateCellSet
cellSetWorklet
(
value
);
...
...
@@ -667,8 +664,7 @@ public:
// Get unique EdgeInterpolation : unique edge points.
// LowerBound for edgeInterpolation : get index into new edge points array.
// LowerBound for cellPoitnEdgeInterpolation : get index into new edge points array.
//vtkm::cont::ArrayHandle<clipping::EdgeInterpolation> uniqueEdgeInterpolations;
// LowerBound for cellPointEdgeInterpolation : get index into new edge points array.
vtkm
::
cont
::
Algorithm
::
SortByKey
(
edgeInterpolation
,
edgePointReverseConnectivity
,
EdgeInterpolation
::
LessThanOp
());
vtkm
::
cont
::
Algorithm
::
Copy
(
edgeInterpolation
,
this
->
EdgePointsInterpolation
);
...
...
@@ -697,9 +693,10 @@ public:
scatterEdgePointConnectivity
);
scatterEdgeDispatcher
.
Invoke
(
edgeInterpolationIndexToUnique
,
edgePointReverseConnectivity
,
connectivity
);
scatterEdgeDispatcher
.
Invoke
(
cellInterpolationIndexToUnique
,
cellPointEdgeReverseConnectivity
,
cellPointInterpolationInfo
);
//Add offset in connectivity of all new in-cell points.
scatterEdgeDispatcher
.
Invoke
(
cellInterpolationIndexToUnique
,
cellPointEdgeReverseConnectivity
,
this
->
InCellInterpolationInfo
);
// Add offset in connectivity of all new in-cell points.
ScatterInCellConnectivity
scatterInCellPointConnectivity
(
this
->
InCellPointsOffset
);
vtkm
::
worklet
::
DispatcherMapField
<
ScatterInCellConnectivity
>
scatterInCellDispatcher
(
scatterInCellPointConnectivity
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment