File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ function CommonSolve.solve(prob::SciMLBase.SCCNonlinearProblem; kwargs...)
27
27
CommonSolve. solve (prob, SCCAlg (nothing , nothing ); kwargs... )
28
28
end
29
29
30
+ function CommonSolve. solve (prob:: SciMLBase.SCCNonlinearProblem , alg:: AbstractNonlinearAlgorithm ; kwargs... )
31
+ CommonSolve. solve (prob, SCCAlg (alg, nothing ); kwargs... )
32
+ end
33
+
30
34
probvec (prob:: Union{NonlinearProblem, NonlinearLeastSquaresProblem} ) = prob. u0
31
35
probvec (prob:: LinearProblem ) = prob. b
32
36
Original file line number Diff line number Diff line change 65
65
scc_sol= solve (sccprob, scc_alg)
66
66
@test sol ≈ manualscc ≈ scc_sol
67
67
68
+ # Backwards compat of alg choice
69
+ scc_sol= solve (sccprob, NewtonRaphson ())
70
+ @test sol ≈ manualscc ≈ scc_sol
71
+
68
72
import NonlinearSolve # Required for Default
69
73
70
74
# Test default interface
You can’t perform that action at this time.
0 commit comments