Rename field associations
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. ADataSet
used to support having more than oneCellSet
, and so a field association on cells was actually bound to a particularCellSet
. However, that is no longer the case. ADataSet
has exactly oneCellSet
, so a cell field no longer has to point to aCellSet
. Thus the enumeration symbol forCells
should match the one forPoints
.
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 by Kenneth Moreland