-
-
Notifications
You must be signed in to change notification settings - Fork 212
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(nonlinearsystem): Fix codegen issue for vector parameters #3382
base: master
Are you sure you want to change the base?
Conversation
test? What does this solve? |
This solves a codegen issue for __mtk_arg_2 = ___mtkparameters___[1]
var"vol1₊rho_0[1]" = __mtk_arg_2[1]
var"vol1₊rho_0[2]" = __mtk_arg_2[2]
var"vol2₊rho_0[1]" = __mtk_arg_2[3]
var"vol2₊rho_0[2]" = __mtk_arg_2[4]
... but the entire vector variable (e.g. As for the test, I've been trying to get one based on the existing ModelingToolkit.jl/test/scc_nonlinear_problem.jl Lines 165 to 255 in 0a5c1ce
rho_0 a 1 element vector and register the full_pressure or liquid_pressure /gas_pressure functions, but I'm running into other issues (differentiation wrt array expression).
|
10a91da
to
d3ed2d6
Compare
Rebased on master and added test. |
Looks like it's failing? |
The failures seem to be due to aliasing, I think we can re-trigger |
Co-authored-by: Aayush Sabharwal <[email protected]>
ed3b9d1
to
78f0552
Compare
Looks like the fix was already merged, this just adds the test |
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 "accidentally fixed" this in #3390, so this PR adds the test
Test fails though? Needs to rebase? |
Co-authored-by: Aayush Sabharwal [email protected]
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.