Skip to content

Commit 11dc895

Browse files
Merge pull request #855 from AayushSabharwal/as/scimlfn-fix
fix: fix some SciMLFunction constructors
2 parents d366481 + b821d1e commit 11dc895

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/scimlfunctions.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,7 +2853,7 @@ function DynamicalODEFunction{iip, specialize}(f1, f2;
28532853
colorvec = __has_colorvec(f1) ? f1.colorvec :
28542854
nothing,
28552855
sys = __has_sys(f1) ? f1.sys : nothing,
2856-
initialization_data = __has_initialization_data(f) ? f.initialization_data :
2856+
initialization_data = __has_initialization_data(f1) ? f1.initialization_data :
28572857
nothing) where {
28582858
iip,
28592859
specialize
@@ -3195,7 +3195,7 @@ function SplitSDEFunction{iip, specialize}(f1, f2, g;
31953195
colorvec = __has_colorvec(f1) ? f1.colorvec :
31963196
nothing,
31973197
sys = __has_sys(f1) ? f1.sys : nothing,
3198-
initialization_data = __has_initialization_data(f) ? f.initialization_data :
3198+
initialization_data = __has_initialization_data(f1) ? f1.initialization_data :
31993199
nothing) where {
32003200
iip,
32013201
specialize
@@ -3282,7 +3282,7 @@ function DynamicalSDEFunction{iip, specialize}(f1, f2, g;
32823282
colorvec = __has_colorvec(f1) ? f1.colorvec :
32833283
nothing,
32843284
sys = __has_sys(f1) ? f1.sys : nothing,
3285-
initialization_data = __has_initialization_data(f) ? f.initialization_data :
3285+
initialization_data = __has_initialization_data(f1) ? f1.initialization_data :
32863286
nothing
32873287
) where {
32883288
iip,

test/downstream/problem_interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ prob = SteadyStateProblem(osys, u0, ps)
286286
@test prob[X2] == prob[osys.X2] == prob[:X2] == 0.2
287287
@test prob[[X, X2]] == prob[[osys.X, osys.X2]] == prob[[:X, :X2]] == [0.1, 0.2]
288288
@test getsym(prob, X)(prob) == getsym(prob, osys.X)(prob) == getsym(prob, :X)(prob) == 0.1
289-
@test getsym(prob, X2)(prob) == getsym(prob, osys.X2)(prob) == getsym(prob, :X2)(prob) == 0.2
289+
@test getsym(prob, X2)(prob) == getsym(prob, osys.X2)(prob) == getsym(prob, :X2)(prob) ==
290+
0.2
290291
@test getsym(prob, [X, X2])(prob) == getsym(prob, [osys.X, osys.X2])(prob) ==
291292
getsym(prob, [:X, :X2])(prob) == [0.1, 0.2]
292293
@test getsym(prob, (X, X2))(prob) == getsym(prob, (osys.X, osys.X2))(prob) ==

0 commit comments

Comments
 (0)