Commit 74fc232
Replace deprecated PDESystem .indvars/.depvars with qualified accessor calls
Use ModelingToolkit.get_ivs() and ModelingToolkit.get_dvs() instead of the
deprecated pde_system.indvars and pde_system.depvars property accessors.
The accessors must be module-qualified because NeuralPDE's selective import
(using ModelingToolkit: ModelingToolkit, PDESystem, ...) does not bring
get_ivs/get_dvs into the module namespace.
Fixes all three call sites: symbolic_discretize in discretize.jl and both
get_loss_function_neural_adapter methods in neural_adapter.jl.
Supersedes #1034 which used unqualified get_ivs/get_dvs causing
UndefVarError in all PDE-related tests.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 033c501 commit 74fc232
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
0 commit comments