Skip to content

Commit

Permalink
Add mass in rop matrix for film domain; start should be 0 not 1 becau…
Browse files Browse the repository at this point in the history
…se it's used as start+i
  • Loading branch information
hwpang committed Aug 8, 2023
1 parent 0941aca commit 12072da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,12 @@ function rops(ssys::SystemSimulation, t)
vdiffs = Array{Any,1}(undef, length(domains))
vCvave = Array{Any,1}(undef, length(domains))
vphi = Array{Any,1}(undef, length(domains))
ropmat = spzeros(Nrxns, Nspcs)
start = 1
if any([domain isa FragmentBasedConstantTrhoDomain for domain in domains])
ropmat = spzeros(Nrxns, Nspcs + 1)
else
ropmat = spzeros(Nrxns, Nspcs)
end
start = 0
for (k, sim) in enumerate(ssys.sims)
vns[k], vcs[k], vT[k], vP[k], vV[k], vC[k], vN[k], vmu[k], vkfs[k], vkrevs[k], vHs[k], vUs[k], vGs[k], vdiffs[k], vCvave[k], vphi[k] = calcthermo(sim.domain, ssys.sol(t), t)
cstot[sim.domain.indexes[1]:sim.domain.indexes[2]] = vcs[k]
Expand Down

0 comments on commit 12072da

Please sign in to comment.