Skip to content

Commit 10848d6

Browse files
committed
testupdate
1 parent 3166141 commit 10848d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
4242
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4343

4444
[targets]
45-
test = ["DelayDiffEq", "DDEProblemLibrary", "ODEProblemLibrary", "SDEProblemLibrary", "OrdinaryDiffEq", "ParameterizedFunctions", "Random", "StochasticDiffEq", "StochasticDelayDiffEq", "Plots", "Test"]
45+
test = ["DelayDiffEq", "DDEProblemLibrary", "NonlinearSolve", "ODEProblemLibrary", "SDEProblemLibrary", "OrdinaryDiffEq", "ParameterizedFunctions", "Random", "StochasticDiffEq", "StochasticDelayDiffEq", "Plots", "Test"]

src/benchmark.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function WorkPrecision(prob::NonlinearProblem, alg, abstols, reltols, dts = noth
297297
sol = solve(_prob, alg; kwargs..., abstol = abstols[i], reltol = reltols[i])
298298

299299
if error_estimate == :l2
300-
errors[i] = sqrt(sum(ab2, sol .- appxsol))
300+
errors[i] = sqrt(sum(abs2, sol .- appxsol))
301301
else
302302
error("Unsupported norm used: $(error_estimate).")
303303
end

test/nonlinearsolve_wpdiagram_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Fetch pakages.
2-
using NonlinearSolve, StaticArrays, DiffEqDevTools, Plots
2+
using NonlinearSolve, DiffEqDevTools, Plots
33

44
# Prepares NonlinearProblem.
55
f(u, p) = u .* u .- p
6-
u0 = @SVector[1.0, 1.0]
6+
u0 = [1.0, 1.0]
77
p = 2.0
88
static_prob = NonlinearProblem(f, u0, p)
99
real_sol = solve(static_prob, NewtonRaphson(), reltol = 1e-15, abstol = 1e-15)

0 commit comments

Comments
 (0)