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: fix setindex! not erroring appropriately for integrators #657

Merged

Conversation

AayushSabharwal
Copy link
Member

@AayushSabharwal AayushSabharwal commented Mar 26, 2024

Close #653

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 30.12%. Comparing base (7888fa4) to head (a07a002).

Files Patch % Lines
src/integrator_interface.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #657      +/-   ##
==========================================
+ Coverage   30.03%   30.12%   +0.09%     
==========================================
  Files          55       55              
  Lines        4309     4308       -1     
==========================================
+ Hits         1294     1298       +4     
+ Misses       3015     3010       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 380 to 381
@test_throws ErrorException oint[X]=1.0
@test_throws ErrorException setu(oint, X)(oint, 10.0)
Copy link
Member

Choose a reason for hiding this comment

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

Why would this error?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Changing out the u vector is different from mutating it. These functions should just mutate u.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed now

@AayushSabharwal AayushSabharwal force-pushed the as/integrator-setindex-error branch from 0f2c5aa to a07a002 Compare April 1, 2024 08:38
@ChrisRackauckas ChrisRackauckas merged commit a0d9a31 into SciML:master Apr 1, 2024
32 of 42 checks passed
@AayushSabharwal AayushSabharwal deleted the as/integrator-setindex-error branch April 2, 2024 06:17
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.

Inconsistent behaviour when changing integrator variable value
2 participants