Commit 1cf0ae2
Restore ProblemTypeCtx as the discretization metadata key (#99)
* Revert PDEBaseMetadataCtx back to ProblemTypeCtx
Substituting a PDEBase-owned metadata key for `ProblemTypeCtx` silently
broke the MethodOfLines solution interface. `ProblemTypeCtx` is not a
private helper that can be reproduced locally: ModelingToolkitBase reads
it to populate `prob.problem_type`, and SciMLBase's `wrap_sol` dispatches
on that value to build a `PDETimeSeriesSolution`. With a different key the
metadata never reaches `problem_type`, `wrap_sol` falls through to the
identity method, and a raw `ODESolution` comes back with no error at
discretize or solve time, so `sol[u(t,x)]` fails.
Import it from ModelingToolkitBase, the owner, rather than through the
ModelingToolkit re-export. That satisfies the owner check; the remaining
publicness check needs the upstream `public` declaration in
SciML/ModelingToolkit.jl#4842, so keep one narrow
QA ignore until that ships.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117aJvytDT3y2jMi5Ng6Q5m
* Require ModelingToolkitBase 1.58 and drop the last QA ignore
`ProblemTypeCtx` is public as of ModelingToolkitBase 1.58.0
(SciML/ModelingToolkit.jl#4842), so PDEBase can
import it from its owner with no exception. QA is now fully strict.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117aJvytDT3y2jMi5Ng6Q5m
---------
Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 3ea8c85 commit 1cf0ae2
3 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments