Skip to content

fix to using zero tolerances#1066

Closed
PatNichols wants to merge 1 commit intodevelopfrom
bugfix/fix_zero_tolerance_on_ctest
Closed

fix to using zero tolerances#1066
PatNichols wants to merge 1 commit intodevelopfrom
bugfix/fix_zero_tolerance_on_ctest

Conversation

@PatNichols
Copy link
Copy Markdown
Contributor

Description

Some of the ctests are failing due to the tolerances being set to zero. This PR will hopefully fix this by assigning a small but non-zero tolerance from these tests.

Issue(s) addressed

-fixes #1063

Acceptance Criteria (Definition of Done)

ctests that should fail will hopefully fail but those with small errors due to compiler differences will pass.

Dependencies

None

Copy link
Copy Markdown
Contributor

@fabiolrdiniz fabiolrdiniz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding me here, @PatNichols. I'm a little bit confused. Why don't use the IODA_CONV_COMP_TOL for the comparison of the tests that are failing? It's already defined in the code (see line 341).

#
# For a converter that is generating new data, use a non-zero tolerance.
set(IODA_CONV_COMP_TOL_ZERO "0.0")
set(IODA_CONV_COMP_TOL_ZERO "1.e-7")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PatNichols do not think this is the way to go... this definition should remain zero

my approach was to change those tests to use the other tolerance:

IODA_CONV_COMP_TOL please see my PR #1064

@BenjaminRuston
Copy link
Copy Markdown
Collaborator

this is redundant functionally with #1064

@PatNichols PatNichols deleted the bugfix/fix_zero_tolerance_on_ctest branch June 9, 2023 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove zero tolerances for a couple composition related ctests

3 participants