You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
argnames = [gensym(:MTKArg) for i in1:length(args)]
66
66
arg_pairs =map(vars_to_pairs,zip(argnames,args))
@@ -75,12 +75,23 @@ function _build_function(target::JuliaTarget, op::Operation, args...;
75
75
76
76
fargs =Expr(:tuple,argnames...)
77
77
78
-
oop_ex = :(
78
+
integrator =gensym(:MTKIntegrator)
79
+
(integrator_args &&!(length(args) ==3)) &&error("Too many extra arguments given to build an integrator-based function; expected 3, i.e. (u,p,t), but received $(length(args)).")
# If u is a weird non-StaticArray type and we want a sparse matrix, just do the optimized sparse anyways
180
+
if$(fargs.args[1]) isa Array || (!(typeof($(fargs.args[1])) <:StaticArray) &&$(rhss isa SparseMatrixCSC))
181
+
return$arr_bounds_block
182
+
else
183
+
X =$bounds_block
184
+
construct =$_constructor
185
+
returnconstruct(X)
186
+
end
187
+
)
188
+
integrator =gensym(:MTKIntegrator)
189
+
(integrator_args &&!(length(args) ==3)) &&error("Too many extra arguments given to build an integrator-based function; expected 3, i.e. (u,p,t), but received $(length(args)).")
0 commit comments