-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cell size as a reference value in "almost-equals" comparison
Issue 53 was failing with an unreasonably precise comparison of values (point, gridline) near zero. Fixed by including the grid cell size as part of the calculation of a reasonably scaled epsilon, in general the utility almost_equals now also takes an argument for an indicative order-of-magnitude reference value.
- Loading branch information
1 parent
d30e186
commit fd501cb
Showing
3 changed files
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters