Skip to content

[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

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

serenity4
Copy link
Member

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.

@serenity4
Copy link
Member Author

@Keno does the code in test/validation.jl look aligned with your expectations?

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.
Copy link
Member Author

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.

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.

Add rewrite validator
1 participant