We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b96cb commit 90a5379Copy full SHA for 90a5379
src/systems/diffeqs/diffeqsystem.jl
@@ -45,16 +45,9 @@ end
45
isintermediate(eq::Equation) = !(isa(eq.lhs, Operation) && isa(eq.lhs.op, Differential))
46
47
function build_equals_expr(eq::Equation)
48
- @assert !isa(eq.lhs, Constant)
49
-
50
- if isintermediate(eq)
51
- @assert isa(eq.lhs, Variable)
52
- lhs = eq.lhs.name
53
- else
54
- @assert isa(eq.lhs, Operation) && isa(eq.lhs.op, Differential)
55
- lhs = Symbol(eq.lhs.args[1].name, :_, eq.lhs.op.x.name)
56
- end
+ @assert !isintermediate(eq)
57
+ lhs = Symbol(eq.lhs.args[1].name, :_, eq.lhs.op.x.name)
58
return :($lhs = $(convert(Expr, eq.rhs)))
59
end
60
0 commit comments