Skip to content
GitLab
  • Menu
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 193
    • Issues 193
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 37
    • Merge requests 37
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & 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
  • VTK
  • VTK-mVTK-m
  • Merge requests
  • !2733

Rename field associations

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kenneth Moreland requested to merge kmorel/vtk-m:rename-field-associations into master Mar 17, 2022
  • Overview 13
  • Commits 2
  • Pipelines 6
  • Changes 82

The symbols in vtkm::cont::Field::Association have been changed from ANY, WHOLE_MESH, POINTS, and CELL_SET to Any, WholeMesh, Points, and Cells, respectively. The reason for this change is twofold:

  • The general standard that VTK-m follows for enum struct enumerators is to use camel case (with the first character capitalized), not all upper case.
  • The use of CELL_SET for fields associated with cells is obsolete. A DataSet used to support having more than one CellSet, and so a field association on cells was actually bound to a particular CellSet. However, that is no longer the case. A DataSet has exactly one CellSet, so a cell field no longer has to point to a CellSet. Thus the enumeration symbol for Cells should match the one for Points.

For backward compatibility, the old enumerations still exist. They are aliases for the new names, and they are marked as deprecated, so using them will result in a compiler warning (on some systems).

Fixes #667 (closed)

Edited Mar 18, 2022 by Kenneth Moreland
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: rename-field-associations