Skip to content

Commit 320590d

Browse files
fix operator algebra errors
1 parent 4771938 commit 320590d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ode_def_opts.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function ode_def_opts(name::Symbol,opts::Dict{Symbol,Bool},ex::Expr,params...;M=I,depvar=:t)
1+
function ode_def_opts(name::Symbol,opts::Dict{Symbol,Bool},ex::Expr,params...;_M=I,depvar=:t)
22
# depvar is the dependent variable. Defaults to t
33
# M is the mass matrix in RosW, must be a constant!
44
origex = copy(ex) # Save the original expression
@@ -42,7 +42,7 @@ function ode_def_opts(name::Symbol,opts::Dict{Symbol,Bool},ex::Expr,params...;M=
4242

4343
numsyms = length(indvar_dict)
4444
numparams = length(params)
45-
45+
M = Matrix(1*_M,numsyms,numsyms)
4646
# Parameter Functions
4747
paramfuncs = Vector{Vector{Expr}}(undef, numparams)
4848
for i in 1:numparams

0 commit comments

Comments
 (0)