Skip to content

Commit 7ed01df

Browse files
Merge pull request #904 from SebastianM-C/patch-1
Fix `remake` for `SCCNonlinearProblem`
2 parents eaebe6e + f0a22a1 commit 7ed01df

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/remake.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,9 @@ function remake(prob::SCCNonlinearProblem; u0 = missing, p = missing, probs = mi
824824
if probs === missing
825825
probs = prob.probs
826826
end
827+
if explicitfuns! === missing
828+
explicitfuns! = prob.explictfuns!
829+
end
827830
offset = 0
828831
if u0 !== missing || p !== missing && parameters_alias
829832
probs = map(probs) do subprob

test/downstream/modelingtoolkit_remake.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ end
321321
@test state_values(sccprob2) 2ones(3)
322322
@test sccprob2.probs[1].u0 2ones(2)
323323
@test sccprob2.probs[2].u0 2ones(1)
324+
@test sccprob2.explicitfuns! !== missing
324325

325326
sccprob3 = remake(sccprob; p ==> 2.0])
326327
@test sccprob3.p === sccprob3.probs[1].p

0 commit comments

Comments
 (0)