File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/spatial_reaction_systems Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ ModelingToolkit = "8.66"
41
41
Parameters = " 0.12"
42
42
Reexport = " 0.2, 1.0"
43
43
Requires = " 1.0"
44
+ RuntimeGeneratedFunctions = " 0.5.12"
44
45
SymbolicUtils = " 1.0.3"
45
46
Symbolics = " 5.0.3"
46
47
Unitful = " 1.12.4"
Original file line number Diff line number Diff line change @@ -210,14 +210,13 @@ function compute_transport_rates(rate_law::Num,
210
210
211
211
# If all these parameters are spatially uniform. `rates` becomes a vector with 1 value.
212
212
if all (length (p_val_dict[P]) == 1 for P in relevant_ps)
213
- rates = [rate_law_func ([p_val_dict[p][1 ] for p in relevant_ps]. .. )]
213
+ return [rate_law_func ([p_val_dict[p][1 ] for p in relevant_ps]. .. )]
214
214
# If at least on parameter the rate depends on have a value varying across all edges,
215
215
# we have to compute one rate value for each edge.
216
216
else
217
- rates = [rate_law_func ([get_component_value (p_val_dict[p], idxE) for p in relevant_ps]. .. )
217
+ return [rate_law_func ([get_component_value (p_val_dict[p], idxE) for p in relevant_ps]. .. )
218
218
for idxE in 1 : num_edges]
219
219
end
220
- return Symbolics. value .(rates)
221
220
end
222
221
223
222
# Creates a map, taking each species (with transportation) to its transportation rate.
You can’t perform that action at this time.
0 commit comments