We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
EmptySciMLFunction
1 parent e8a9f04 commit 9589a1fCopy full SHA for 9589a1f
src/systems/problem_utils.jl
@@ -431,12 +431,16 @@ end
431
$(TYPEDEF)
432
433
A simple utility meant to be used as the `constructor` passed to `process_SciMLProblem` in
434
-case constructing a SciMLFunction is not required.
+case constructing a SciMLFunction is not required. The arguments passed to it are available
435
+in the `args` field, and the keyword arguments in the `kwargs` field.
436
"""
-struct EmptySciMLFunction end
437
+struct EmptySciMLFunction{A, K}
438
+ args::A
439
+ kwargs::K
440
+end
441
442
function EmptySciMLFunction(args...; kwargs...)
- return nothing
443
+ return EmptySciMLFunction{typeof(args), typeof(kwargs)}(args, kwargs)
444
end
445
446
0 commit comments