Skip to content

Stop infinite loop when a dependent variable is missing from PDESystem - #674

Merged
utkuyilmaz1903 merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:fix/issue-475-missing-depvar
Sep 2, 2026
Merged

utkuyilmaz1903 merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:fix/issue-475-missing-depvar

Conversation

@utkuyilmaz1903

Copy link
Copy Markdown
Member

Fixes #475

transform_pde_system! retried expand_derivatives on the same term when a PDE unknown was not in the dependent-variable list, so it printed the same warning forever.

If expansion does not change the term, we now throw an ArgumentError pointing at the missing unknown. Added a regression test for the example in the issue.

@utkuyilmaz1903
utkuyilmaz1903 marked this pull request as ready for review September 2, 2026 13:28
@utkuyilmaz1903
utkuyilmaz1903 merged commit b1d818f into SciML:master Sep 2, 2026
69 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 7, 2026
- Trim the array-form capability list from MOLFiniteDifference. (#673)
- Stop infinite expansion when a PDE unknown is missing from the system. (#674)
- Support vector-valued functions in ArrayDiscretization (#675)
- Test ModelingToolkitNeuralNets terms and fix the compiled ODE path (#678)
- Add a tutorial on training a neural network term in a PDE (#679)
- Stack vector field inputs and batch network calls in ArrayDiscretization (#680)
- Add a tutorial on learning the Brusselator reaction with a neural network (#681)
- Stack scalar inputs with field slices in ArrayDiscretization (#682)
- Test callable diffusion coefficients (#683)
- Reconstruct array observables once per PDE field (#676)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.

Forgetting a variable in PDESystem results in infinite loop

1 participant