Skip to content

Fix bug related to floating point precision in locator

Dave Pugmire requested to merge (removed):rectGridEval_precisionFix into master

When FloatDefault is compiled as double, the internal use of Float32 causes precision issues. When the point is cast to a float32, the test for IsInside() can return the wrong result. When this happens, the array index computed inside of FindCell will be out of bounds and cause a crash.

Merge request reports