Commit aff82c5
Use stiff solver in DEIM test (#164)
* Use stiff solver in DEIM test
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
* Fix DEIM test init: supply consistent u0 instead of missing-guess hack
The full-order solve returned InitialFailure on the current MTK v11 /
MethodOfLines stack, so the snapshot had a single time column and
`POD(snapshot, 3)` errored with "Number of modes should be in {1,...,1}".
Root cause is initialization, not the solver. Passing
`missing_guess_value = Constant(0.0)` left every discretized state as a
missing guess, so MethodOfLines' initialization system was structurally
singular and underdetermined (1 equation for 11 unknowns). MTK fell back
to a least-squares initialization that diverged from the all-zero guess
(residual norm ~4.9e4, MaxIters), producing a garbage u0 (values ~1e19)
and an InitialFailure return code. Switching the solver to Rodas5P did
not help because the failure happens during initialization, before any
step is taken.
The boundary conditions fix every state to 0 at t=0 (v(x,0)=w(x,0)=0 and
i₀(0)=0), so the correct initial condition is simply all zeros. Providing
it explicitly makes the initialization well-posed and the solve succeeds,
yielding a 15-column snapshot that exercises POD/DEIM as intended.
Verified on the CI-failing stack (MethodOfLines 0.11.14, MTK 11.31.1,
ModelingToolkitBase 1.51.0, PDEBase 0.1.27): GROUP=Core Pkg.test() passes
(Core/deim.jl 4/4) and Runic --check is clean.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
---------
Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>1 parent 35d5474 commit aff82c5
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
0 commit comments