-
Notifications
You must be signed in to change notification settings - Fork 1
[WIP] Implement rewrite validator #55
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
base: main
Are you sure you want to change the base?
Conversation
Not to confuse it with the nonlocal insertion
@Keno does the code in |
sciml_prob = DiffEqBase.get_concrete_problem(our_prob, true); | ||
f_compressed = sciml_prob.f.f | ||
f_compressed(residuals_compressed, du_compressed, u_compressed, p, t) | ||
# XXX: `ddt(x₁)` gets substituted by `x₁ *ᵢ x₂` for the last equation after scheduling. |
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.
I briefly mentioned it in our last call, but I'm not sure I understand how we should work around that assuming that the overall approach is correct. Codegen looks at the past du
for the first equation but then looks at its expected value (i.e. its RHS) for the last equation, even though we are using ddt(x1)
in both expressions.
Closes #47.
This PR is based on #54, for a clean view of the changes see the comparison against that PR.
This is still largely a work in progress, I am just putting it here for discussion.