Skip to content

Nonlinearsolve tests #2573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- OrdinaryDiffEqLinear
- OrdinaryDiffEqLowOrderRK
- OrdinaryDiffEqLowStorageRK
- OrdinaryDiffEqNonlinearSolve
- OrdinaryDiffEqNordsieck
- OrdinaryDiffEqPDIRK
- OrdinaryDiffEqPRK
Expand Down
5 changes: 4 additions & 1 deletion lib/OrdinaryDiffEqNonlinearSolve/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ julia = "1.10"

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

[targets]
test = ["DiffEqDevTools", "Random", "SafeTestsets", "Test"]
test = ["DiffEqDevTools", "LineSearches", "ODEProblemLibrary", "OrdinaryDiffEqSDIRK", "Random", "SafeTestsets", "Test"]
4 changes: 3 additions & 1 deletion lib/OrdinaryDiffEqNonlinearSolve/test/newton_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using OrdinaryDiffEqNonlinearSolve: NLNewton
using OrdinaryDiffEqCore
using OrdinaryDiffEqSDIRK
using DiffEqDevTools
using DiffEqBase
using LineSearches
Expand All @@ -12,5 +14,5 @@ for prob in (prob_ode_lorenz, prob_ode_orego)
sol2 = solve(prob, Trapezoid(nlsolve = NLNewton(relax = BackTracking())),
reltol = 1e-12, abstol = 1e-12)
@test sol2.retcode == DiffEqBase.ReturnCode.Success
@test sol2.stats.nf <= sol1.stats.nf
@test abs(sol2.stats.nf - sol1.stats.nf) <= 20
end
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqNonlinearSolve/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
using SafeTestsets

@time @safetestset "Newton Tests" include("interface/newton_tests.jl")
@time @safetestset "Newton Tests" include("newton_tests.jl")
Loading