The current grid spacing guess uses the mode of the calculated nodal distances.
In a "highly non-uniform" grid, the distances between nodes is a continuum between some min and max. In that case, no two distances can be expected to be equal, so the mode is meaningless.
We should introduce some check for the significance of the mode and fall back to the median if needed.
The current grid spacing guess uses the mode of the calculated nodal distances.
In a "highly non-uniform" grid, the distances between nodes is a continuum between some min and max. In that case, no two distances can be expected to be equal, so the mode is meaningless.
We should introduce some check for the significance of the mode and fall back to the median if needed.