Skip to content

Commit 4581631

Browse files
Merge branch 'master' into eisenstat-walker-rebased
2 parents 15f786b + 56fd8fe commit 4581631

File tree

6 files changed

+34
-22
lines changed

6 files changed

+34
-22
lines changed

Project.toml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ NonlinearSolveQuasiNewton = "9a2c21bd-3a47-402d-9113-8faf9a0ee114"
2222
NonlinearSolveSpectralMethods = "26075421-4e9a-44e1-8bd1-420ed7ad02b2"
2323
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
2424
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
25+
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
2526
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2627
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
2728
SciMLLogging = "a6db7da4-7206-11f0-1eab-35f2a5dbe1d1"
@@ -44,23 +45,13 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
4445
SpeedMapping = "f1835b91-879b-4a3f-a438-e4baacf14412"
4546
Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"
4647

47-
[sources.BracketingNonlinearSolve]
48-
path = "lib/BracketingNonlinearSolve"
49-
50-
[sources.NonlinearSolveBase]
51-
path = "lib/NonlinearSolveBase"
52-
53-
[sources.NonlinearSolveFirstOrder]
54-
path = "lib/NonlinearSolveFirstOrder"
55-
56-
[sources.NonlinearSolveQuasiNewton]
57-
path = "lib/NonlinearSolveQuasiNewton"
58-
59-
[sources.NonlinearSolveSpectralMethods]
60-
path = "lib/NonlinearSolveSpectralMethods"
61-
62-
[sources.SimpleNonlinearSolve]
63-
path = "lib/SimpleNonlinearSolve"
48+
[sources]
49+
BracketingNonlinearSolve = {path = "lib/BracketingNonlinearSolve"}
50+
NonlinearSolveBase = {path = "lib/NonlinearSolveBase"}
51+
NonlinearSolveFirstOrder = {path = "lib/NonlinearSolveFirstOrder"}
52+
NonlinearSolveQuasiNewton = {path = "lib/NonlinearSolveQuasiNewton"}
53+
NonlinearSolveSpectralMethods = {path = "lib/NonlinearSolveSpectralMethods"}
54+
SimpleNonlinearSolve = {path = "lib/SimpleNonlinearSolve"}
6455

6556
[extensions]
6657
NonlinearSolveFastLevenbergMarquardtExt = "FastLevenbergMarquardt"

lib/NonlinearSolveBase/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "NonlinearSolveBase"
22
uuid = "be0214bd-f91f-a760-ac4e-3421ce2b2da0"
33
authors = ["Avik Pal <[email protected]> and contributors"]
4-
version = "2.6.0"
4+
version = "2.7.0"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

lib/NonlinearSolveBase/src/NonlinearSolveBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import SciMLBase: solve, init, __init, __solve, wrap_sol, get_root_indp, isinpla
2929
using SciMLJacobianOperators: JacobianOperator, StatefulJacobianOperator
3030
using SciMLOperators: AbstractSciMLOperator, IdentityOperator
3131
using SciMLLogging: SciMLLogging, @SciMLMessage, @verbosity_specifier,
32-
AbstractVerbositySpecifier, AbstractVerbosityPreset,
32+
AbstractVerbositySpecifier, AbstractVerbosityPreset, AbstractMessageLevel,
3333
None, Minimal, Standard, Detailed, All, Silent, InfoLevel, WarnLevel
3434

3535
using SymbolicIndexingInterface: SymbolicIndexingInterface

lib/NonlinearSolveBase/src/verbosity.jl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ diagnostic messages, warnings, and errors during nonlinear system solution.
1616
- `threshold_state`: Messages about threshold state in low-rank methods
1717
- `forcing`: Messages about forcing parameter in Newton-Krylov methods
1818
19+
## Sensitivity Group
20+
- `sensitivity_vjp_choice`: Messages about VJP choice in sensitivity analysis (used by SciMLSensitivity.jl)
21+
1922
## Linear Solver Group
2023
- `linear_verbosity`: Verbosity configuration for linear solvers
2124
@@ -30,7 +33,7 @@ Create a `NonlinearVerbosity` using a preset configuration:
3033
- `SciMLLogging.Detailed()`: Comprehensive debugging information
3134
- `SciMLLogging.All()`: Maximum verbosity
3235
33-
NonlinearVerbosity(; error_control=nothing, numerical=nothing, linear_verbosity=nothing, kwargs...)
36+
NonlinearVerbosity(; error_control=nothing, numerical=nothing, sensitivity=nothing, linear_verbosity=nothing, kwargs...)
3437
3538
Create a `NonlinearVerbosity` with group-level or individual field control.
3639
@@ -63,7 +66,8 @@ NonlinearVerbosity
6366

6467
@verbosity_specifier NonlinearVerbosity begin
6568
toggles = (:linear_verbosity, :non_enclosing_interval, :alias_u0_immutable,
66-
:linsolve_failed_noncurrent, :termination_condition, :threshold_state, :forcing)
69+
:linsolve_failed_noncurrent, :termination_condition, :threshold_state, :forcing,
70+
:sensitivity_vjp_choice)
6771

6872
presets = (
6973
None = (
@@ -74,6 +78,7 @@ NonlinearVerbosity
7478
termination_condition = Silent(),
7579
threshold_state = Silent(),
7680
forcing = Silent()
81+
sensitivity_vjp_choice = Silent()
7782
),
7883
Minimal = (
7984
linear_verbosity = None(),
@@ -83,6 +88,7 @@ NonlinearVerbosity
8388
termination_condition = Silent(),
8489
threshold_state = Silent(),
8590
forcing = Silent()
91+
sensitivity_vjp_choice = Silent()
8692
),
8793
Standard = (
8894
linear_verbosity = None(),
@@ -92,6 +98,7 @@ NonlinearVerbosity
9298
termination_condition = WarnLevel(),
9399
threshold_state = WarnLevel(),
94100
forcing = InfoLevel()
101+
sensitivity_vjp_choice = WarnLevel()
95102
),
96103
Detailed = (
97104
linear_verbosity = Detailed(),
@@ -101,6 +108,7 @@ NonlinearVerbosity
101108
termination_condition = WarnLevel(),
102109
threshold_state = WarnLevel(),
103110
forcing = InfoLevel()
111+
sensitivity_vjp_choice = WarnLevel()
104112
),
105113
All = (
106114
linear_verbosity = Detailed(),
@@ -110,12 +118,14 @@ NonlinearVerbosity
110118
termination_condition = WarnLevel(),
111119
threshold_state = InfoLevel(),
112120
forcing = InfoLevel()
121+
sensitivity_vjp_choice = WarnLevel()
113122
)
114123
)
115124

116125
groups = (
117126
error_control = (:non_enclosing_interval, :alias_u0_immutable,
118127
:linsolve_failed_noncurrent, :termination_condition),
119128
numerical = (:threshold_state, :forcing)
129+
sensitivity = (:sensitivity_vjp_choice,)
120130
)
121131
end

lib/SciMLJacobianOperators/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "SciMLJacobianOperators"
22
uuid = "19f34311-ddf3-4b8b-af20-060888a46c0e"
3-
version = "0.1.13"
3+
version = "0.1.12"
44
authors = ["Avik Pal <[email protected]> and contributors"]
55

66
[deps]

test/verbosity_tests.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,24 @@
1616
@test v_none.non_enclosing_interval isa SciMLLogging.Silent
1717
@test v_none.threshold_state isa SciMLLogging.Silent
1818
@test v_none.alias_u0_immutable isa SciMLLogging.Silent
19+
@test v_none.sensitivity_vjp_choice isa SciMLLogging.Silent
1920

2021
@test v_minimal.non_enclosing_interval isa SciMLLogging.WarnLevel
2122
@test v_minimal.alias_u0_immutable isa SciMLLogging.Silent
2223
@test v_minimal.termination_condition isa SciMLLogging.Silent
24+
@test v_minimal.sensitivity_vjp_choice isa SciMLLogging.Silent
2325

2426
@test v_standard.non_enclosing_interval isa SciMLLogging.WarnLevel
2527
@test v_standard.threshold_state isa SciMLLogging.WarnLevel
28+
@test v_standard.sensitivity_vjp_choice isa SciMLLogging.WarnLevel
2629

2730
@test v_detailed.alias_u0_immutable isa SciMLLogging.WarnLevel
2831
@test v_detailed.termination_condition isa SciMLLogging.WarnLevel
32+
@test v_detailed.sensitivity_vjp_choice isa SciMLLogging.WarnLevel
2933

3034
@test v_all.linsolve_failed_noncurrent isa SciMLLogging.WarnLevel
3135
@test v_all.threshold_state isa SciMLLogging.InfoLevel
36+
@test v_all.sensitivity_vjp_choice isa SciMLLogging.WarnLevel
3237
end
3338

3439
@testset "Group-level keyword constructors" begin
@@ -40,6 +45,12 @@
4045

4146
v_numerical = NonlinearVerbosity(numerical = SciMLLogging.Silent())
4247
@test v_numerical.threshold_state isa SciMLLogging.Silent
48+
49+
v_sensitivity = NonlinearVerbosity(sensitivity = SciMLLogging.Silent())
50+
@test v_sensitivity.sensitivity_vjp_choice isa SciMLLogging.Silent
51+
52+
v_sensitivity2 = NonlinearVerbosity(sensitivity = SciMLLogging.InfoLevel())
53+
@test v_sensitivity2.sensitivity_vjp_choice isa SciMLLogging.InfoLevel
4354
end
4455

4556
@testset "Mixed group and individual settings" begin

0 commit comments

Comments
 (0)