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

Test: Relax Tolerance (OMP) #591

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Apr 26, 2024

In the last CI run for Windows w/ OpenMP the
initialize_from_array.py.analysis fails due to tolerance. Since this uses OpenMP, I think we could just relax the tolerance a little.

119/121 Test #119: initialize_from_array.py.analysis ...***Failed    0.51 sec
Filepaths on WINDOWS platforms may not contain slashes '/'! Replacing with backslashes '\' unconditionally!
Initial Beam:
sig x=1.46e-03, sig y=1.46e-03, sig z=1.00e-03
sig px=1.00e+01, sig py=9.97e+00, sig pz=2.01e+02
  rtol=0.006324555320336759 (ignored: atol~=0.0)
Traceback (most recent call last):
  File "D:\a\impactx\impactx\examples\initialize_from_array\analyze_from_array.py", line 60, in <module>
    assert np.allclose(
           ^^^^^^^^^^^^
AssertionError

In the last CI run for Windows w/ OpenMP the
`initialize_from_array.py.analysis` fails due to tolerance.
Since this uses OpenMP, I think we could just relax the
tolerance a little.

```
119/121 Test ECP-WarpX#119: initialize_from_array.py.analysis ...***Failed    0.51 sec
Filepaths on WINDOWS platforms may not contain slashes '/'! Replacing with backslashes '\' unconditionally!
Initial Beam:
sig x=1.46e-03, sig y=1.46e-03, sig z=1.00e-03
sig px=1.00e+01, sig py=9.97e+00, sig pz=2.01e+02
  rtol=0.006324555320336759 (ignored: atol~=0.0)
Traceback (most recent call last):
  File "D:\a\impactx\impactx\examples\initialize_from_array\analyze_from_array.py", line 60, in <module>
    assert np.allclose(
           ^^^^^^^^^^^^
AssertionError
```
@ax3l ax3l added backend: openmp Specific to OpenMP execution (CPUs) component: tests examples, tests and benchmarks labels Apr 26, 2024
@ax3l ax3l requested review from RTSandberg and cemitch99 April 26, 2024 15:56
@ax3l ax3l merged commit aa413b4 into ECP-WarpX:development Apr 26, 2024
15 checks passed
@ax3l ax3l deleted the test-from-array-tol branch April 26, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: openmp Specific to OpenMP execution (CPUs) component: tests examples, tests and benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant