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

[macOS] Bizarre CUTEst u/creport() bug #86

Closed
jfowkes opened this issue Aug 15, 2024 · 0 comments · Fixed by #87
Closed

[macOS] Bizarre CUTEst u/creport() bug #86

jfowkes opened this issue Aug 15, 2024 · 0 comments · Fixed by #87
Assignees
Labels
bug Something isn't working

Comments

@jfowkes
Copy link
Owner

jfowkes commented Aug 15, 2024

Further investigation of the failing macOS CI tests has revealed what appears a genuine CUTEst bug in u/creport():

 >>> import pycutest
>>> p = pycutest.import_problem('BOX2')
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 >>> 
>>> p.report()
{'f': 0, 'g': 5, 'H': 0, 'Hprod': 0, 'tsetup': 0.0, 'trun': 0.0, 'c': None, 'cg': None, 'cH': None}
0.000000 5.125000 0.000000 0.000000 0.000000 0.000000 0.000000 >>> p.report()
{'f': 0, 'g': 6, 'H': 0, 'Hprod': 0, 'tsetup': 0.0, 'trun': 0.0, 'c': None, 'cg': None, 'cH': None}
0.000000 6.812500 0.000000 0.000000 0.000000 0.000000 0.000000 >>> p.report()
{'f': 0, 'g': 7, 'H': 0, 'Hprod': 0, 'tsetup': 0.0, 'trun': 0.0, 'c': None, 'cg': None, 'cH': None}
0.000000 7.812500 0.000000 0.000000 0.000000 0.000000 0.000000 >>> p.report()
{'f': 0, 'g': 8, 'H': 0, 'Hprod': 0, 'tsetup': 0.0, 'trun': 0.0, 'c': None, 'cg': None, 'cH': None}
0.000000 8.500000 0.000000 0.000000 0.000000 0.000000 0.000000 >>> 

The intermediate prints are the actual values of calls as returned by the C interface.

It turns out the issue is due to the time array passed in to u/creport() being too small in the C interface.

@jfowkes jfowkes added bug Something isn't working upstream This is an upstream issue labels Aug 15, 2024
@jfowkes jfowkes self-assigned this Aug 15, 2024
@jfowkes jfowkes linked a pull request Aug 15, 2024 that will close this issue
@jfowkes jfowkes removed the upstream This is an upstream issue label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant