Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
vyudu committed Sep 4, 2024
1 parent a7a3356 commit bc4e620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/dsl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ function read_equations_options(options, variables_declared)
# When this is the case, the variable X and differential D are extracted (for automatic declaration).
# Also performs simple error checks.
vars_extracted = Vector{Symbol}()
add_default_diff = false
add_default_diff = true
for eq in equations
if (eq.head != :call) || (eq.args[1] != :~)
error("Malformed equation: \"$eq\". Equation's left hand and right hand sides should be separated by a \"~\".")
Expand Down Expand Up @@ -921,8 +921,8 @@ end

# Recursively escape functions in the right-hand-side of an equation written using user-defined functions. Special function calls like "hill(...)" are not expanded.
function escape_equation_RHS!(eqexpr::Expr)
lhs = recursive_escape_functions!(eqexpr.args[2])
eqexpr.args[2] = lhs
# lhs = recursive_escape_functions!(eqexpr.args[2])
# eqexpr.args[2] = lhs

rhs = recursive_escape_functions!(eqexpr.args[3])
eqexpr.args[3] = rhs
Expand Down
2 changes: 1 addition & 1 deletion test/reactionsystem_core/coupled_equation_crn_systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1042,4 +1042,4 @@ let
u0 = [S1 => 1.0, S2 => 2.0, V1 => 0.1]
ps = [p1 => 2.0, p2 => 3.0]
@test_throws Exception ODEProblem(rs, u0, (0.0, 1.0), ps; structural_simplify = true)
end
end

0 comments on commit bc4e620

Please sign in to comment.