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

Clean up generate_initializesystem() #3051

Merged
merged 12 commits into from
Oct 5, 2024

Conversation

hersle
Copy link
Contributor

@hersle hersle commented Sep 16, 2024

While working on #3050, I found generate_initializesystem() a little hard to follow. I thought I could try to clean it up a little, after it has accumulated several fixes recently.

Please feel free to ignore this if it is not helpful. I know @AayushSabharwal is working on parameter initialization, so I wouldn't want this merged before if it clutters that!

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

@AayushSabharwal
Copy link
Member

Thanks, this looks amazing! I can very easily rebase the parameter initialization on top of this, so it shouldn't need to wait.

@AayushSabharwal
Copy link
Member

Could you rebase this? Would love to get this merged

@hersle
Copy link
Contributor Author

hersle commented Sep 26, 2024

Sure, I will do my best when I get back next week :)

@hersle
Copy link
Contributor Author

hersle commented Oct 3, 2024

I tried to improve and simplify the handling of vector equations and scalarization a bit.
I also added a test for it that fails without these changes, so there are now fixes, too.

@hersle
Copy link
Contributor Author

hersle commented Oct 4, 2024

Tests seem to pass.

@ChrisRackauckas
Copy link
Member

Is that failure on master?

@hersle
Copy link
Contributor Author

hersle commented Oct 5, 2024

Yes, looks like it.

kwargs...)
sts, eqs = unknowns(sys), equations(sys)
guesses = Dict(),
default_dd_guess = 0.0,
Copy link
Member

Choose a reason for hiding this comment

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

Is the old name documented anywhere?

@ChrisRackauckas ChrisRackauckas merged commit 3088d1f into SciML:master Oct 5, 2024
21 of 25 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.

3 participants