We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3305d2 commit a914076Copy full SHA for a914076
src/systems/reaction/reactionsystem.jl
@@ -34,17 +34,16 @@ end
34
35
function essemble_diffusion(rs)
36
eqs = Expression[Constant(0) for x in rs.dvs, y in rs.rxs]
37
- @show size(eqs)
38
39
for (j,rx) in enumerate(rs.rxs)
40
for reactant in rx.reactants
41
i = findfirst(x->x.op == reactant.op,rs.dvs)
42
- eqs[i,j] -= sqrt(rx.rate) * reaction_expr(rx.reactants)
+ eqs[i,j] = -sqrt(rx.rate) * reaction_expr(rx.reactants)
43
end
44
45
for product in rx.products
46
i = findfirst(x->x.op == product.op,rs.dvs)
47
- eqs[i,j] += sqrt(rx.rate) * reaction_expr(rx.reactants)
+ eqs[i,j] = sqrt(rx.rate) * reaction_expr(rx.reactants)
48
49
50
eqs
0 commit comments