Skip to content

Commit 97f7020

Browse files
add trivial mass matrix
1 parent 886dc59 commit 97f7020

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/maketype.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function maketype(name,param_dict,origex,funcs,syms,fex;
2828
invW::W
2929
invW_t::Wt
3030
paramjac::PJ
31+
mass_matrix::LinearAlgebra.UniformScaling{Bool}
3132
origex::Expr
3233
funcs::Vector{Expr}
3334
pfuncs::Vector{Expr}
@@ -70,7 +71,8 @@ function maketype(name,param_dict,origex,funcs,syms,fex;
7071
constructorex = :($(name)() =
7172
$(name)($f_expr,nothing,
7273
$jac_expr,$tgrad_expr,$invW_expr,$invW_t_expr,$param_jac_expr,
73-
$new_ex,$funcs,$pfuncs,$d_pfuncs,$syms,$symjac,$symtgrad,
74+
$(LinearAlgebra.I),$new_ex,$funcs,$pfuncs,$d_pfuncs,
75+
$syms,$symjac,$symtgrad,
7476
$tgradex_ex,$Jex_ex,$expJex_ex,$param_Jex_ex,
7577
$invJex_ex,$invWex_ex,$invWex_t_ex,
7678
$Hex_ex,$invHex_ex,$fex_ex,$pex_ex,$vector_ex_ex,

0 commit comments

Comments
 (0)