Skip to content

Commit 4533e29

Browse files
committed
Adjust constantspcindexes and thermovariabledict index
1 parent 3296b9e commit 4533e29

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Reactor.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ function Reactor(domains::T,y0s::W,tspan::W2,interfaces::Z=Tuple(),ps::X=DiffEqB
6969
domain.rxnarray[i,j] += k-1
7070
end
7171
end
72+
for i in 1:length(domain.constantspeciesinds)
73+
domain.constantspeciesinds[i] += k-1
74+
end
75+
for (thermovar,ind) in domain.thermovariabledict
76+
domain.thermovariabledict[thermovar] += k-1
77+
end
7278
domain.indexes[1] = k
7379
k += Nspcs
7480
domain.indexes[2] = k-1

0 commit comments

Comments
 (0)