Closed pbartholomew08 closed 3 months ago
Starting from
VERT=000
CELL=111
where it kind of maps to binary coding for each direction being staggered or not, the rest can be
X_FACE = 011
Y_FACE = 101
Z_FACE = 110
X_EDGE = 100
Y_EDGE = 010
Z_EDGE = 001
and then to avoid Z_EDGE==1
we can add one zero at the end of each. Pushed a commit in #124 implementing this.
The constants used to identify directions and data locations are both integers. The
VERT=1
andCELL=2
constants overlap with the directions1 <= DIR_* <= 4
(X,Y,Z,Cartesian) and therefore interfaces cannot discriminate incorrect uses.Proposal: The values of the directions have a semantic meaning (maps to coordinate vector indices), the values for
VERT
andCELL
is somewhat arbitrary, suggest choosing values that are not in the direction range to prevent accidental uses.