Skip to content

Commit

Permalink
convert PyDict to Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Jul 5, 2024
1 parent 6a25178 commit f03afd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrms/rmsTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_simulate(self):
rxns = phaseDict["gas"]["Reactions"]
ig = rms.IdealGas(spcs,rxns,name="gas")
initialconds = {"T":1000.0,"P":10.0e5,"H2":2.0,"O2":1.0}
domain,y0 = rms.ConstantTPDomain(phase=ig,initialconds=initialconds)
domain,y0,p = rms.ConstantTPDomain(phase=ig,initialconds=jl.convert(jl.Dict,initialconds))
react = rms.Reactor(domain,y0,(0.0,10.001))
sol = rms.solve(react.ode,rms.CVODE_BDF(),abstol=1e-20,reltol=1e-8)
sim = rms.Simulation(sol,domain)
Expand Down

0 comments on commit f03afd9

Please sign in to comment.