Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with g2c_aecpackf()/g2c_aecpackd() and add test #512

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

AlysonStahl-NOAA
Copy link
Contributor

Fixes #511

tests/tst_aec.c Outdated
for (i = 0; i < DATA_LEN; i++)
{
/* printf("%g %g\n", fld[i], fld_in[i]); */
if (fld[i] != fld_in[i])
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor quibble, but should this be getting compared within some small tolerance since it's floating-point data?

@edwardhartnett
Copy link
Contributor

Is this ready to merge?

@AlysonStahl-NOAA
Copy link
Contributor Author

It is now. I just added those fixes to the value comparison.

@edwardhartnett edwardhartnett merged commit 5793191 into NOAA-EMC:develop Sep 23, 2024
33 checks passed
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.

g2c_aecpackf() and g2c_aecpackd() only work for constant data values
3 participants