Skip to content

Dealing with padding #58

Description

@roughhawkbit

Potential inconsistency between SpatialGrid.isValid(DiscreteVector dC) (1) and SpatialGrid.isValidOrPadded(int i, int j, int k) (2). The comment for (1) claims that it excludes padding, whereas (2) is commented as including padding. (1) allows values for 0 <= i < nI, 0 <= j < nJ, 0 <= k < nK and (2) allows values for 0 <= i <= nI, 0 <= j <= nJ, 0 <= k <= nK. So, while there is a difference in how the two deal with nI/nJ/nK values, they deal with 0 values identically.

A third, unused, method SpatialGrid.isValidOrPadded(DiscreteVector dC) allowed values for -1 <= i < nI, -1 <= j < nJ, -1 <= k < nK. This will be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions