Skip to content

Commit cd65806

Browse files
hotfix constructors for initialization
1 parent fac81a1 commit cd65806

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SciMLBase"
22
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
33
authors = ["Chris Rackauckas <[email protected]> and contributors"]
4-
version = "2.27.0"
4+
version = "2.27.1"
55

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

src/scimlfunctions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,8 +2281,8 @@ function ODEFunction{iip, specialize}(f;
22812281
DEFAULT_OBSERVED,
22822282
colorvec = __has_colorvec(f) ? f.colorvec : nothing,
22832283
sys = __has_sys(f) ? f.sys : nothing,
2284-
initializeprob = __has_initializeprob(f) ? f.sys : nothing,
2285-
initializeprobmap = __has_initializeprobmap(f) ? f.sys : nothing
2284+
initializeprob = __has_initializeprob(f) ? f.initializeprob : nothing,
2285+
initializeprobmap = __has_initializeprobmap(f) ? f.initializeprobmap : nothing
22862286
) where {iip,
22872287
specialize
22882288
}
@@ -3193,8 +3193,8 @@ function DAEFunction{iip, specialize}(f;
31933193
DEFAULT_OBSERVED,
31943194
colorvec = __has_colorvec(f) ? f.colorvec : nothing,
31953195
sys = __has_sys(f) ? f.sys : nothing,
3196-
initializeprob = __has_initializeprob(f) ? f.sys : nothing,
3197-
initializeprobmap = __has_initializeprobmap(f) ? f.sys : nothing) where {iip,
3196+
initializeprob = __has_initializeprob(f) ? f.initializeprob : nothing,
3197+
initializeprobmap = __has_initializeprobmap(f) ? f.initializeprobmap : nothing) where {iip,
31983198
specialize
31993199
}
32003200
if jac === nothing && isa(jac_prototype, AbstractSciMLOperator)

0 commit comments

Comments
 (0)