Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK-m
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dave Pugmire
VTK-m
Commits
abedf61e
Commit
abedf61e
authored
3 years ago
by
Sujin Philip
Browse files
Options
Downloads
Patches
Plain Diff
Fix probe filter field mapping
All probed fields should become point fields in output
parent
bf6d6ca5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vtkm/filter/Probe.hxx
+11
-2
11 additions, 2 deletions
vtkm/filter/Probe.hxx
with
11 additions
and
2 deletions
vtkm/filter/Probe.hxx
+
11
−
2
View file @
abedf61e
...
...
@@ -69,8 +69,17 @@ VTKM_CONT inline bool Probe::MapFieldOntoOutput(vtkm::cont::DataSet& result,
}
else
if
(
field
.
IsFieldCell
())
{
return
vtkm
::
filter
::
MapFieldPermutation
(
field
,
this
->
Worklet
.
GetCellIds
(),
result
,
this
->
InvalidValue
);
vtkm
::
cont
::
Field
outField
;
if
(
vtkm
::
filter
::
MapFieldPermutation
(
field
,
this
->
Worklet
.
GetCellIds
(),
outField
,
this
->
InvalidValue
))
{
// output field should be associated with points
outField
=
vtkm
::
cont
::
Field
(
field
.
GetName
(),
vtkm
::
cont
::
Field
::
Association
::
POINTS
,
outField
.
GetData
());
result
.
AddField
(
outField
);
return
true
;
}
return
false
;
}
else
if
(
field
.
IsFieldGlobal
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment