Skip to content

Commit e210710

Browse files
committed
format
1 parent a2f47d5 commit e210710

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/reactionsystem_conversions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,10 @@ function nonlinear_convert_differentials_check(rs::ReactionSystem)
557557
# If the contenct of the differential is not a variable (and nothing more).
558558
# If either of this is a case, throws the warning.
559559
if hasnode(Symbolics.is_derivative, eq.rhs) ||
560-
!Symbolics.is_derivative(eq.lhs) ||
561-
!isequal(Symbolics.operation(eq.lhs), Differential(get_iv(rs))) ||
562-
(length(arguments(eq.lhs)) != 1) ||
563-
!any(isequal(arguments(eq.lhs)[1]), nonspecies(rs))
560+
!Symbolics.is_derivative(eq.lhs) ||
561+
!isequal(Symbolics.operation(eq.lhs), Differential(get_iv(rs))) ||
562+
(length(arguments(eq.lhs)) != 1) ||
563+
!any(isequal(arguments(eq.lhs)[1]), nonspecies(rs))
564564
error("You are attempting to convert a `ReactionSystem` coupled with differential equations to a `NonlinearSystem`. However, some of these differentials are not of the form `D(x) ~ ...` where:
565565
(1) The left-hand side is a differential of a single variable with respect to the time independent variable, and
566566
(2) The right-hand side does not contain any differentials.

src/spatial_reaction_systems/utility.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ end
212212
# If all parameters the rate depend on are uniform all edges, this becomes a length 1 vector.
213213
# Else a vector with each value corresponding to the rate at one specific edge.
214214
function compute_transport_rates(rate_law::Num,
215-
p_val_dict::Dict{BasicSymbolic{Real}, Vector{Float64}}, num_edges::Int64)
215+
p_val_dict::Dict{BasicSymbolic{Real}, Vector{Float64}}, num_edges::Int64)
216216
# Finds parameters involved in rate and create a function evaluating the rate law.
217217
relevant_ps = Symbolics.get_variables(rate_law)
218218
rate_law_func = drop_expr(@RuntimeGeneratedFunction(build_function(

0 commit comments

Comments
 (0)