Skip to content

Commit e722fad

Browse files
authored
Merge pull request #342 from SciML/ap/fix_23_tests
Fix the 23 test problems
2 parents 4312353 + 3fbf55b commit e722fad

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ MINPACK = "1.2"
7979
MaybeInplace = "0.1.1"
8080
NLsolve = "4.5"
8181
NaNMath = "1"
82-
NonlinearProblemLibrary = "0.1.1"
82+
NonlinearProblemLibrary = "0.1.2"
8383
OrdinaryDiffEq = "6.63"
8484
Pkg = "1"
8585
PrecompileTools = "1.2"

test/core/23_test_problems.jl

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ end
4040
alg_ops = (NewtonRaphson(),)
4141

4242
broken_tests = Dict(alg => Int[] for alg in alg_ops)
43-
broken_tests[alg_ops[1]] = [1, 6]
43+
broken_tests[alg_ops[1]] = [1]
4444

4545
test_on_library(problems, dicts, alg_ops, broken_tests)
4646
end
@@ -54,12 +54,12 @@ end
5454
TrustRegion(; radius_update_scheme = RadiusUpdateSchemes.NLsolve))
5555

5656
broken_tests = Dict(alg => Int[] for alg in alg_ops)
57-
broken_tests[alg_ops[1]] = [6, 11, 21]
58-
broken_tests[alg_ops[2]] = [6, 11, 21]
59-
broken_tests[alg_ops[3]] = [6, 11, 21]
60-
broken_tests[alg_ops[4]] = [6, 11, 21]
61-
broken_tests[alg_ops[5]] = [6, 21]
62-
broken_tests[alg_ops[6]] = [6, 21]
57+
broken_tests[alg_ops[1]] = [11, 21]
58+
broken_tests[alg_ops[2]] = [11, 21]
59+
broken_tests[alg_ops[3]] = [11, 21]
60+
broken_tests[alg_ops[4]] = [11, 21]
61+
broken_tests[alg_ops[5]] = [21]
62+
broken_tests[alg_ops[6]] = [21]
6363

6464
test_on_library(problems, dicts, alg_ops, broken_tests)
6565
end
@@ -69,9 +69,9 @@ end
6969
LevenbergMarquardt(; linsolve = CholeskyFactorization()))
7070

7171
broken_tests = Dict(alg => Int[] for alg in alg_ops)
72-
broken_tests[alg_ops[1]] = [6, 11, 21]
73-
broken_tests[alg_ops[2]] = [6, 11, 21]
74-
broken_tests[alg_ops[3]] = [6, 11, 21]
72+
broken_tests[alg_ops[1]] = [11, 21]
73+
broken_tests[alg_ops[2]] = [11, 21]
74+
broken_tests[alg_ops[3]] = [11, 21]
7575

7676
test_on_library(problems, dicts, alg_ops, broken_tests)
7777
end
@@ -80,7 +80,7 @@ end
8080
alg_ops = (DFSane(),)
8181

8282
broken_tests = Dict(alg => Int[] for alg in alg_ops)
83-
broken_tests[alg_ops[1]] = [1, 2, 3, 5, 6, 21]
83+
broken_tests[alg_ops[1]] = [1, 2, 3, 5, 21]
8484

8585
test_on_library(problems, dicts, alg_ops, broken_tests)
8686
end
@@ -93,9 +93,9 @@ end
9393
Broyden(; init_jacobian = Val(:true_jacobian), update_rule = Val(:diagonal)))
9494

9595
broken_tests = Dict(alg => Int[] for alg in alg_ops)
96-
broken_tests[alg_ops[1]] = [1, 5, 6, 11]
97-
broken_tests[alg_ops[2]] = [1, 5, 6, 8, 11, 18]
98-
broken_tests[alg_ops[3]] = [1, 5, 6, 9, 11]
96+
broken_tests[alg_ops[1]] = [1, 5, 11]
97+
broken_tests[alg_ops[2]] = [1, 5, 8, 11, 18]
98+
broken_tests[alg_ops[3]] = [1, 5, 9, 11]
9999
broken_tests[alg_ops[4]] = [1, 5, 6, 8, 11]
100100
broken_tests[alg_ops[5]] = [1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 21]
101101
broken_tests[alg_ops[6]] = [2, 3, 4, 5, 6, 8, 9, 11, 12, 21, 22]
@@ -107,8 +107,8 @@ end
107107
alg_ops = (Klement(), Klement(; init_jacobian = Val(:true_jacobian_diagonal)))
108108

109109
broken_tests = Dict(alg => Int[] for alg in alg_ops)
110-
broken_tests[alg_ops[1]] = [1, 2, 4, 5, 6, 11, 22]
111-
broken_tests[alg_ops[2]] = [2, 4, 5, 6, 7, 18, 22]
110+
broken_tests[alg_ops[1]] = [1, 2, 4, 5, 11, 22]
111+
broken_tests[alg_ops[2]] = [2, 4, 5, 7, 18, 22]
112112

113113
test_on_library(problems, dicts, alg_ops, broken_tests)
114114
end
@@ -117,7 +117,7 @@ end
117117
alg_ops = (PseudoTransient(; alpha_initial = 10.0),)
118118

119119
broken_tests = Dict(alg => Int[] for alg in alg_ops)
120-
broken_tests[alg_ops[1]] = [1, 6, 9, 18, 21, 22]
120+
broken_tests[alg_ops[1]] = [1, 9, 18, 21, 22]
121121

122122
test_on_library(problems, dicts, alg_ops, broken_tests)
123123
end

0 commit comments

Comments
 (0)