Skip to content

Commit

Permalink
Use SciMLBase.Success instead of :Success as it is deprecated with Ju…
Browse files Browse the repository at this point in the history
…lia v1.9
  • Loading branch information
hwpang committed Sep 8, 2023
1 parent 28d5c53 commit 4aed680
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion iJulia/Gas-Catalyst Interface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"metadata": {},
"outputs": [],
"source": [
"sol.retcode == :Success"
"sol.retcode == SciMLBase.Success"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions src/EdgeAnalysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ function selectobjects(react,edgereact,coreedgedomains,coreedgeinters,domains,in
invalidobjects = []
terminated = false
conversion = 0.0
code = :Success
code = SciMLBase.Success

if tolbranchrxntocore != 0.0
branchfactor = 1.0/tolbranchrxntocore
Expand All @@ -1006,7 +1006,7 @@ function selectobjects(react,edgereact,coreedgedomains,coreedgeinters,domains,in
firsttime = true

nsteps = 0
while t < tf && Symbol(code) == :Success
while t < tf && code == SciMLBase.Success
step!(inte)
nsteps += 1
code = check_error(inte)
Expand All @@ -1028,7 +1028,7 @@ function selectobjects(react,edgereact,coreedgedomains,coreedgeinters,domains,in
end
end

if Symbol(code) == :Success
if code == SciMLBase.Success
return (terminated,false,invalidobjects,unimolecularthreshold,
bimolecularthreshold,trimolecularthreshold,maxedgespeciesrateratios,t,conversion)
else
Expand Down
2 changes: 1 addition & 1 deletion src/Simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function Simulation(sol::Q, domain::W, reducedmodelmappings::ReducedModelMapping

u = [unlumpsol(t) for t in sol.t]
t = sol.t
sol = SciMLBase.build_solution(sol.prob, sol.alg, t, u, retcode=:Success)
sol = SciMLBase.build_solution(sol.prob, sol.alg, t, u, retcode=SciMLBase.Success)

species_range = 1:length(getphasespecies(domain.phase))
names = getfield.(getphasespecies(domain.phase), :name)
Expand Down

0 comments on commit 4aed680

Please sign in to comment.