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

Reduce tolerance for DSMC CI test #4576

Merged

Conversation

roelof-groenewald
Copy link
Member

@roelof-groenewald roelof-groenewald commented Jan 5, 2024

After #4572 updated the DSMC test to have a fixed random seed we can reduce the tolerance of that CI test so that it is more sensitive to breaking changes.

  • Update benchmark with new Azure values.

@@ -57,4 +55,4 @@

density_data = np.load( 'ion_density_case_1.npy' )
print(repr(density_data))
assert np.allclose(density_data, ref_density, rtol=0.01)
assert np.allclose(density_data, ref_density, rtol=1e-3)
Copy link
Member

Choose a reason for hiding this comment

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

How small can rtol be? The density should be exactly reproducible.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll leave it to the default (1e-5) and we can see if it that causes any issues.

@roelof-groenewald roelof-groenewald changed the title [WIP] Reduce tolerance for DSMC CI test Reduce tolerance for DSMC CI test Jan 5, 2024
Copy link
Member

@dpgrote dpgrote left a comment

Choose a reason for hiding this comment

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

Looks good!

@roelof-groenewald roelof-groenewald enabled auto-merge (squash) January 5, 2024 19:32
@roelof-groenewald roelof-groenewald merged commit 5b765dc into ECP-WarpX:development Jan 5, 2024
41 checks passed
@roelof-groenewald roelof-groenewald deleted the dsmc_test_tolerance branch January 5, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tests Tests and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants