-
-
Notifications
You must be signed in to change notification settings - Fork 224
refactor: BLT sort equations and variables in tearing #3681
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
Conversation
@@ -182,7 +183,7 @@ end | |||
prob = ODEProblem(sys, [], (0.0, 1.0)) | |||
sol = solve(prob) | |||
@test SciMLBase.successful_retcode(sol) | |||
@test sol.u[1] ≈ [1.0, 1.0, 0.5, 0.5] | |||
@test sol[x, 1] ≈ [1.0, 1.0, 0.5, 0.5] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be scalar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x
is an array symbolic
@variables x(t)[1:4] y(t)[1:2]
Does this apply to all system types, e.g. ODEs? |
Yes, all system types will have their equations sorted in BLT order. |
4d219b9
to
3e124da
Compare
well there is only one system type 😅 |
Yeah, I guess better phrasing is "all types of systems" |
Ok, that was what I hoped and suspected, great! 😃 Are there any current plans to extend the strongly coupled logic to other problems as well, such as |
The FMI test fails because it relies on variable order. I have a fix locally and verified that it works. Will let the rest of CI run, and if it passes I'll just push and merge. |
ac2da4b
to
e45ae8a
Compare
…onlinearProblem`
e45ae8a
to
26437e2
Compare
This turned out to be more work than I thought, but it works!