Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK-m VTK-m
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 206
    • Issues 206
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 35
    • Merge requests 35
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTK-mVTK-m
  • Merge requests
  • !2381

Add UnknownArrayHandle::CastAndCallWithExtractedArray

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kenneth Moreland requested to merge kmorel/vtk-m:cast-call-for-component into master Jan 11, 2021
  • Overview 31
  • Commits 10
  • Pipelines 14
  • Changes 18

The main point of this MR is to implement CastAndCallWithExtractedArray in UnknownArrayHandle. This provides a convenience for calling a function for most ArrayHandle types.

This was used to update some functions like MapFieldMergeAverage and MapFieldPermutation.

The extra use of RecombineVec defined by ArrayHandleRecombineVec required several fixes to make the behavior of the values more expected. For example, several assignment operators had to be added or fixed with RecombineVec and other Vec objects.

Edited Jan 11, 2021 by Kenneth Moreland
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cast-call-for-component