Skip to content

Commit 70fb90c

Browse files
committed
remove makesym
1 parent 534677e commit 70fb90c

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/ModelingToolkit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import JuliaFormatter
4040
using Reexport
4141
@reexport using Symbolics
4242
export @derivatives
43-
using Symbolics: _parse_vars, value, makesym, @derivatives, get_variables,
43+
using Symbolics: _parse_vars, value, @derivatives, get_variables,
4444
exprs_occur_in, solve_for, build_expr
4545
import Symbolics: rename, get_variables!, _solve, hessian_sparsity,
4646
jacobian_sparsity, islinear, _iszero, _isone,

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ function generate_function(
7979
# substitute x(t) by just x
8080
rhss = implicit_dae ? [_iszero(eq.lhs) ? eq.rhs : eq.rhs - eq.lhs for eq in eqs] :
8181
[eq.rhs for eq in eqs]
82-
#obss = [makesym(value(eq.lhs)) ~ substitute(eq.rhs, sub) for eq ∈ observed(sys)]
8382
#rhss = Let(obss, rhss)
8483

8584
# TODO: add an optional check on the ordering of observed equations

src/systems/nonlinear/nonlinearsystem.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ function generate_function(sys::NonlinearSystem, dvs = states(sys), ps = paramet
105105
#fulldvs = [dvs; obsvars]
106106

107107
rhss = [deq.rhs for deq equations(sys)]
108-
#obss = [makesym(value(eq.lhs)) ~ substitute(eq.rhs, sub) for eq ∈ observed(sys)]
109108
#rhss = Let(obss, rhss)
110109

111110
return build_function(rhss, value.(dvs), value.(ps);

0 commit comments

Comments
 (0)