Skip to content

Commit

Permalink
Test that file is saved
Browse files Browse the repository at this point in the history
  • Loading branch information
hwpang committed Nov 14, 2023
1 parent e8cb30f commit a165085
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/TestReactors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ domain,y0,p = ConstantTPDomain(phase=ig,initialconds=initialconds) #Define the d
react = Reactor(domain,y0,(0.0,150.11094);p=p) #Create the reactor object
sol = solve(react.ode,CVODE_BDF(),abstol=1e-20,reltol=1e-12); #solve the ode associated with the reactor
sim = Simulation(sol,domain);
save(sim, "test.csv")
@test isfile("test.csv")

spcnames = getfield.(ig.species,:name)
h2ind = findfirst(isequal("H2"),spcnames)
Expand Down

0 comments on commit a165085

Please sign in to comment.