Repository navigation
Conversation
DAEProblem, DAEFunction and generate_rhs already pass keywords they do not consume into Symbolics.CodegenFunctionOptions, and process_kwargs filters them out of the problem's solver keywords. So DAEProblem(sys, op, tspan; fuse_broadcasts = true) turns on SymbolicUtils' fused broadcast codegen once Symbolics has the fuse_broadcasts option, with no source change here. The test pins that path: the generated residual contains fused broadcasts exactly when Symbolics and SymbolicUtils support them, never by default, and the fused residual is bitwise equal to the unfused one. Agent-Harness: Claude Code 2.1.302 Agent-Model: claude-opus-5-5 Agent-Session: aa65e380-52df-443a-9f57-8c20c56babb9 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Conflict in lib/ModelingToolkitBase/test/array_equation_dae.jl: both sides appended a testset at the end of the file; kept both (the fuse_broadcasts testset from this PR and master's mixed array initial parameters testset). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: de59b94f-0227-49ea-adb5-b158639dad0b Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Keep both testsets in array_equation_dae.jl: upstream's one-element slice test and this PR's fuse_broadcasts test. Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: de59b94f-0227-49ea-adb5-b158639dad0b Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Contributor
|
Pushed 🤖 Posted by an AI agent · harness: Claude Code 2.1.325 · model: claude-sonnet-5-5 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR only adds a test; no source changes.
DAEProblem,DAEFunctionandgenerate_rhsalready pass keywords they don't consume intoSymbolics.CodegenFunctionOptions, andprocess_kwargsfilters them out of the solver keywords. SoDAEProblem(sys, op, tspan; fuse_broadcasts = true)turns on SymbolicUtils' fused broadcast codegen as soon as Symbolics has that option. This test pins that path.What it checks, on a 32-state array DAE:
fuse_broadcasts = trueexactly when Symbolics has the field and SymbolicUtils definesCode.FUSE_BROADCASTS_KEY.On registered Symbolics and SymbolicUtils the keyword is ignored and the test checks only that nothing changes, so it passes before the dependencies are released.
Depends on:
CodegenFunctionOptionsfield)Verified: 4/4 locally on this branch, with ModelingToolkitBase from SciML master @ 9082f85, Symbolics#2103 @ 0d4f2049 and SymbolicUtils#1161 @ a4505986, so fusion was on.
Downstream user: SciML/MethodOfLines.jl#722, the FDTD residuals.
🤖 Posted by an AI agent · harness: Claude Code 2.1.302 · model: claude-opus-5-5
Review: unreviewed
Session: aa65e380-52df-443a-9f57-8c20c56babb9