Repository navigation
Order VariableMap x̄ by the dependent variables, not by Set iteration - #160
Merged
Merged
Conversation
VariableMap built allivs from get_all_depvars, whose Set order differs between Julia versions, so a boundary call such as u(t, 0, y) listed before u(t, x, y) turned x̄ from [x, y] into [y, x] on lts. Sort the dependent-variable calls by position of the variable in pdesys.dvs, full calls before boundary calls, then printed arguments. Adds test/variable_map_order.jl, which checks x̄ across permutations of the equations and boundary conditions and both declaration orders of two dependent variables. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/strongform-2-divergence Integration only. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/strongform-3-boundary Integration only. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/strongform-4-library Integration only. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/boundary-3-meshdomain Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/boundary-4-classifier Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/boundary-5-parse-bcs Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/boundary-6-to-box-bcs Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/strongform-5-pieces Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/boundarymap-accessor Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/parse-bcs-public Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/essential-order Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/mesh-axis-order Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
…e/m0-all Integration only; the variable_map.jl hunk is identical on both sides (conflict resolved with ours). Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
Integration only: master now contains SciML#141 and SciML#160. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
Integration only: master now contains SciML#141 and SciML#160. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
Integration only: master now contains SciML#141 and SciML#160. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
Integration only: master now contains SciML#141 and SciML#160. Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax-droid
pushed a commit
to xtalax-droid/PDEBase.jl
that referenced
this pull request
Oct 28, 2026
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.
Problem
VariableMap(pdesys, disc)builds the independent-variable listx̄fromget_all_depvars, which returns acollectof aSetunion. The order ofx̄(and so ofindvars(v)) therefore depends on the Julia version. A boundary call such asu(t, 0, y)can come out ahead of the full callu(t, x, y), which turnsx̄from[x, y]into[y, x]on Julia lts (1.10) but not on 1.x.Change
In
src/variable_map.jl, sort the dependent-variable calls before taking the union of their arguments:pdesys.dvs,x̄andindvarsnow follow the documented order and no longer depend onSetiteration. Single-variable box systems keep their previous order.Tests
New
test/variable_map_order.jlbuilds the same system with its equations and boundary conditions in several permutations (includingu(t, 0, y)beforeu(t, x, y)), and declares the dependent variablesq(t, y)andu(t, x, y)in both orders. It asserts thatx̄andindvarsare identical across permutations and equal[x, y]for[u, q]and[y, x]for[q, u]. It fails on master without the change (2 failures on 1.12) and passes on Julia lts (1.10.12) and 1.12.1, as dod_orders,system_unknownsandarray_variables;GROUP=CoreandGROUP=QApass on 1.12.1 (not run on lts). The permutation set is sampled, not exhaustive. Codex: approve, 0 findings.Context
This is the fix for the CI failures on the lts job of the StrongForm series (for example
test/strongform_boundary.jl:121on #150:ctx.sivswas[y, x]where[x, y]was expected). The M0 boundary line (#145) already carries the same hunk (commitd3f176a), so merging either first is expected to be conflict-free. MethodOfLines-visible behaviour changes only where master's order was nondeterministic (several dependent variables whose argument orders differ, or boundary calls listed before the full call).🤖 Posted by an AI agent · harness: Claude Code 2.1.312 · model: claude-sonnet-5-5
Review: unreviewed
Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2