You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/spatial_reaction_systems/spatial_ODE_systems.jl
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -140,11 +140,15 @@ end
140
140
# Defines the forcing functor's effect on the (spatial) ODE system.
141
141
function (f_func::LatticeTransportODEf)(du, u, p, t)
142
142
# Updates for non-spatial reactions.
143
-
for vert_i in1:(f_func.num_verts) # Loops through each vertex of the lattice. Applies the (non-spatial) ODEFunction to the species in that vertex.
144
-
f_func.ofunc((@view du[get_indexes(vert_i, f_func.num_species)]), # Get the indexes of the i'th vertex (current one in the loop) in the u vector. Uses this to create a view of the vector to which the new species concentrations are written.
145
-
(@view u[get_indexes(vert_i, f_func.num_species)]), # Same as above, but reads the current species concentrations.
146
-
view_vert_ps_vector!(f_func.work_vert_ps, p, vert_i, f_func.enum_v_ps_idx_types), # Gets a vector with the values of the (vertex) parameters in the current vertex.
0 commit comments