Skip to content

Commit de191be

Browse files
Merge pull request #2573 from lte678/nonlinearsolve-tests
Nonlinearsolve tests
2 parents de37851 + faf8890 commit de191be

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- OrdinaryDiffEqLinear
4242
- OrdinaryDiffEqLowOrderRK
4343
- OrdinaryDiffEqLowStorageRK
44+
- OrdinaryDiffEqNonlinearSolve
4445
- OrdinaryDiffEqNordsieck
4546
- OrdinaryDiffEqPDIRK
4647
- OrdinaryDiffEqPRK

lib/OrdinaryDiffEqNonlinearSolve/Project.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ julia = "1.10"
5252

5353
[extras]
5454
DiffEqDevTools = "f3b72e0c-5b89-59e1-b016-84e28bfd966d"
55+
LineSearches = "d3d80556-e9d4-5f37-9878-2ab0fcc64255"
56+
ODEProblemLibrary = "fdc4e326-1af4-4b90-96e7-779fcce2daa5"
57+
OrdinaryDiffEqSDIRK = "2d112036-d095-4a1e-ab9a-08536f3ecdbf"
5558
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
5659
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
5760
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5861

5962
[targets]
60-
test = ["DiffEqDevTools", "Random", "SafeTestsets", "Test"]
63+
test = ["DiffEqDevTools", "LineSearches", "ODEProblemLibrary", "OrdinaryDiffEqSDIRK", "Random", "SafeTestsets", "Test"]

lib/OrdinaryDiffEqNonlinearSolve/test/newton_tests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
using OrdinaryDiffEqNonlinearSolve: NLNewton
12
using OrdinaryDiffEqCore
3+
using OrdinaryDiffEqSDIRK
24
using DiffEqDevTools
35
using DiffEqBase
46
using LineSearches
@@ -12,5 +14,5 @@ for prob in (prob_ode_lorenz, prob_ode_orego)
1214
sol2 = solve(prob, Trapezoid(nlsolve = NLNewton(relax = BackTracking())),
1315
reltol = 1e-12, abstol = 1e-12)
1416
@test sol2.retcode == DiffEqBase.ReturnCode.Success
15-
@test sol2.stats.nf <= sol1.stats.nf
17+
@test abs(sol2.stats.nf - sol1.stats.nf) <= 20
1618
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
using SafeTestsets
22

3-
@time @safetestset "Newton Tests" include("interface/newton_tests.jl")
3+
@time @safetestset "Newton Tests" include("newton_tests.jl")

0 commit comments

Comments
 (0)