@@ -699,9 +699,11 @@ Generates an ODEProblem from an ODESystem and allows for automatically
699
699
symbolically calculating numerical enhancements.
700
700
"""
701
701
function DiffEqBase. ODEProblem {iip} (sys:: AbstractODESystem ,u0map,tspan,
702
- parammap= DiffEqBase. NullParameters (); callback= nothing , kwargs... ) where iip
702
+ parammap= DiffEqBase. NullParameters (); callback= nothing ,
703
+ check_length= true , kwargs... ) where iip
703
704
has_difference = any (isdifferenceeq, equations (sys))
704
- f, u0, p = process_DEProblem (ODEFunction{iip}, sys, u0map, parammap; has_difference= has_difference, kwargs... )
705
+ f, u0, p = process_DEProblem (ODEFunction{iip}, sys, u0map, parammap; has_difference= has_difference,
706
+ check_length, kwargs... )
705
707
if has_continuous_events (sys)
706
708
event_cb = generate_rootfinding_callback (sys; kwargs... )
707
709
else
@@ -738,11 +740,11 @@ Generates an DAEProblem from an ODESystem and allows for automatically
738
740
symbolically calculating numerical enhancements.
739
741
"""
740
742
function DiffEqBase. DAEProblem {iip} (sys:: AbstractODESystem ,du0map,u0map,tspan,
741
- parammap= DiffEqBase. NullParameters ();kwargs... ) where iip
743
+ parammap= DiffEqBase. NullParameters (); check_length = true , kwargs... ) where iip
742
744
has_difference = any (isdifferenceeq, equations (sys))
743
745
f, du0, u0, p = process_DEProblem (
744
746
DAEFunction{iip}, sys, u0map, parammap;
745
- implicit_dae= true , du0map= du0map, has_difference= has_difference, kwargs...
747
+ implicit_dae= true , du0map= du0map, has_difference= has_difference, check_length, kwargs...
746
748
)
747
749
diffvars = collect_differential_variables (sys)
748
750
sts = states (sys)
@@ -774,10 +776,10 @@ numerical enhancements.
774
776
struct ODEProblemExpr{iip} end
775
777
776
778
function ODEProblemExpr {iip} (sys:: AbstractODESystem ,u0map,tspan,
777
- parammap= DiffEqBase. NullParameters ();
779
+ parammap= DiffEqBase. NullParameters (); check_length = true ,
778
780
kwargs... ) where iip
779
781
780
- f, u0, p = process_DEProblem (ODEFunctionExpr{iip}, sys, u0map, parammap; kwargs... )
782
+ f, u0, p = process_DEProblem (ODEFunctionExpr{iip}, sys, u0map, parammap; check_length, kwargs... )
781
783
linenumbers = get (kwargs, :linenumbers , true )
782
784
783
785
ex = quote
@@ -814,11 +816,11 @@ numerical enhancements.
814
816
struct DAEProblemExpr{iip} end
815
817
816
818
function DAEProblemExpr {iip} (sys:: AbstractODESystem ,du0map,u0map,tspan,
817
- parammap= DiffEqBase. NullParameters ();
819
+ parammap= DiffEqBase. NullParameters (); check_length = true ,
818
820
kwargs... ) where iip
819
821
f, du0, u0, p = process_DEProblem (
820
822
DAEFunctionExpr{iip}, sys, u0map, parammap;
821
- implicit_dae= true , du0map= du0map, kwargs...
823
+ implicit_dae= true , du0map= du0map, check_length, kwargs...
822
824
)
823
825
linenumbers = get (kwargs, :linenumbers , true )
824
826
diffvars = collect_differential_variables (sys)
@@ -862,8 +864,9 @@ symbolically calculating numerical enhancements.
862
864
"""
863
865
function DiffEqBase. SteadyStateProblem {iip} (sys:: AbstractODESystem ,u0map,
864
866
parammap= DiffEqBase. NullParameters ();
865
- kwargs... ) where iip
866
- f, u0, p = process_DEProblem (ODEFunction{iip}, sys, u0map, parammap; steady_state = true , kwargs... )
867
+ check_length= true , kwargs... ) where iip
868
+ f, u0, p = process_DEProblem (ODEFunction{iip}, sys, u0map, parammap; steady_state = true ,
869
+ check_length, kwargs... )
867
870
SteadyStateProblem {iip} (f,u0,p;kwargs... )
868
871
end
869
872
@@ -885,9 +888,10 @@ numerical enhancements.
885
888
struct SteadyStateProblemExpr{iip} end
886
889
887
890
function SteadyStateProblemExpr {iip} (sys:: AbstractODESystem ,u0map,
888
- parammap= DiffEqBase. NullParameters ();
891
+ parammap= DiffEqBase. NullParameters (); check_length = true ,
889
892
kwargs... ) where iip
890
- f, u0, p = process_DEProblem (ODEFunctionExpr{iip}, sys, u0map, parammap;steady_state = true , kwargs... )
893
+ f, u0, p = process_DEProblem (ODEFunctionExpr{iip}, sys, u0map, parammap;steady_state = true ,
894
+ check_length, kwargs... )
891
895
linenumbers = get (kwargs, :linenumbers , true )
892
896
ex = quote
893
897
f = $ f
0 commit comments