Skip to content

Commit de94f4e

Browse files
feat: add OverrideInitData
1 parent babd239 commit de94f4e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/SciMLBase.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ Internal. Used for signifying the AD context comes from a Tracker.jl context.
654654
struct TrackerOriginator <: ADOriginator end
655655

656656
include("utils.jl")
657+
include("initialization.jl")
657658
include("function_wrappers.jl")
658659
include("scimlfunctions.jl")
659660
include("alg_traits.jl")

src/initialization.jl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"""
2+
$(TYPEDEF)
3+
4+
A collection of all the data required for `OverrideInit`.
5+
"""
6+
struct OverrideInitData{IProb, UIProb, IProbMap, IProbPmap}
7+
"""
8+
The `AbstractNonlinearProblem` to solve for initialization.
9+
"""
10+
initializeprob::IProb
11+
"""
12+
A function which takes `(initializeprob, prob)` and updates
13+
the parameters of the former with their values in the latter.
14+
"""
15+
update_initializeprob!::UIProb
16+
"""
17+
A function which takes the solution of `initializeprob` and returns
18+
the state vector of the original problem.
19+
"""
20+
initializeprobmap::IProbMap
21+
"""
22+
A function which takes the solution of `initializeprob` and returns
23+
the parameter object of the original problem.
24+
"""
25+
initializeprobpmap::IProbPmap
26+
end

0 commit comments

Comments
 (0)