Skip to content
Snippets Groups Projects
Commit d204cfba authored by Sean McBride's avatar Sean McBride
Browse files

Relaxed overly tight floating-point comparison


This fixes a test failure on arm64 Macs, with default compiler options (that is, without `-ffp-model=strict`), where the dist2 value is not exactly zero but very tiny (due to fma, fused multiply add).

Specifically, in the UnitTestCells test it previously output:

```
Testing EvaluatePosition in/out test...cell center failed inOut: 1 point: -1.04083e-17, 0, 0-> pcoords: 0, 0, 0: closestPoint: -1.04083e-17, 0, 0 dist2: 1.08334e-34 weights: -0.0625 -0.0625 0.5625 0.5625
vtkCubicLine FAILED
```

Also fixed unrelated spelling/typo.

Co-authored-by: default avatarDavid Gobbi <david.gobbi@gmail.com>
parent b300f41d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment