Skip to content

Commit 8fae168

Browse files
committed
round 3
1 parent d60cb78 commit 8fae168

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/dsl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ function push_reactions!(reactions::Vector{ReactionStruct}, sub_line::ExprValues
476476
error("Some reaction metadata fields where repeated: $(metadata_entries)")
477477
end
478478

479-
push!(reactions,ReactionStruct(get_tup_arg(sub_line, i),
479+
push!(reactions, ReactionStruct(get_tup_arg(sub_line, i),
480480
get_tup_arg(prod_line, i), get_tup_arg(rate, i), metadata_i))
481481
end
482482
end

src/spatial_reaction_systems/spatial_ODE_systems.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ function build_odefunction(lrs::LatticeReactionSystem, vert_ps::Vector{Vector{T}
171171
set_nonzero = true)
172172
if sparse
173173
f = LatticeTransportODEf(ofunc_sparse, vert_ps, transport_rates, edge_ps, lrs)
174-
jac_vals = build_jac_prototype(ofunc_sparse.jac_prototype, transport_rates, lrs;
175-
set_nonzero = true)
174+
jac_vals = build_jac_prototype( ofunc_sparse.jac_prototype, transport_rates,
175+
lrs; set_nonzero = true)
176176
J = LatticeTransportODEjac(ofunc_dense, vert_ps, lrs, jac_vals, edge_ps, true)
177177
jac_prototype = jac_vals
178178
else
@@ -184,8 +184,8 @@ function build_odefunction(lrs::LatticeReactionSystem, vert_ps::Vector{Vector{T}
184184
if sparse
185185
ofunc_sparse = ODEFunction(osys; jac = false, sparse = true)
186186
f = LatticeTransportODEf(ofunc_sparse, vert_ps, transport_rates, edge_ps, lrs)
187-
jac_prototype = build_jac_prototype(ofunc_sparse.jac_prototype, transport_rates,
188-
lrs; set_nonzero = false)
187+
jac_prototype = build_jac_prototype(ofunc_sparse.jac_prototype,
188+
transport_rates, lrs; set_nonzero = false)
189189
else
190190
ofunc_dense = ODEFunction(osys; jac = false, sparse = false)
191191
f = LatticeTransportODEf(ofunc_dense, vert_ps, transport_rates, edge_ps, lrs)

src/spatial_reaction_systems/spatial_reactions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function check_spatial_reaction_validity(rs::ReactionSystem, tr::TransportReacti
9696
if any(isequal(tr.species, s) && !isequivalent(tr.species, s) for s in species(rs))
9797
error("A transport reaction used a species, $(tr.species), with metadata not matching its lattice reaction system. Please fetch this species from the reaction system and used in transport reaction creation.")
9898
end
99-
if any(isequal(rs_p, tr_p) && !isequivalent(rs_p, tr_p) for rs_p in parameters(rs),
99+
if any(isequal(rs_p, tr_p) && !isequivalent(rs_p, tr_p) for rs_p in parameters(rs),
100100
tr_p in Symbolics.get_variables(tr.rate))
101101
error("A transport reaction used a parameter with metadata not matching its lattice reaction system. Please fetch this parameter from the reaction system and used in transport reaction creation.")
102102
end

src/spatial_reaction_systems/utility.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ end
268268
# This is stored in location_types.
269269
function get_component_value(values::Vector{<:Vector}, component_idx::Int64,
270270
location_idx::Int64, location_types::Vector{Bool})
271-
return get_component_value(values[component_idx], location_idx,
271+
return get_component_value(values[component_idx], location_idx,
272272
location_types[component_idx])
273273
end
274274
# For a components value (which is a vector of either length 1 or some other length), retrieves its value.

0 commit comments

Comments
 (0)