Skip to content

Commit a826a62

Browse files
committed
fix unit
1 parent 5f231c7 commit a826a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structural_transformation/symbolics_tearing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ function generate_derivative_variables!(ts::TearingState, neweqs, var_eq_matchin
395395
dx = fullvars[dv]
396396
order, lv = var_order(dv, diff_to_var)
397397
x_t = is_discrete ? lower_shift_varname_with_unit(fullvars[dv], iv) :
398-
Symbolics.diff2term(fullvars[dv])
398+
lower_varname_with_unit(fullvars[lv], iv, order)
399399

400400
# Add `x_t` to the graph
401401
v_t = add_dd_variable!(structure, fullvars, x_t, dv)

0 commit comments

Comments
 (0)