@@ -817,9 +817,7 @@ function DiffEqBase.ODEProblem{iip, specialize}(sys::AbstractODESystem, u0map =
817
817
end
818
818
819
819
# Call `remake` so it runs initialization if it is trivial
820
- # Pass `u0` and `p` to run `ReconstructInitializeprob` which will promote
821
- # u0 and p of initializeprob
822
- return remake (ODEProblem {iip} (f, u0, tspan, p, pt; kwargs1... , kwargs... ); u0, p)
820
+ return remake (ODEProblem {iip} (f, u0, tspan, p, pt; kwargs1... , kwargs... ))
823
821
end
824
822
get_callback (prob:: ODEProblem ) = prob. kwargs[:callback ]
825
823
@@ -1042,14 +1040,9 @@ function DiffEqBase.DAEProblem{iip}(sys::AbstractODESystem, du0map, u0map, tspan
1042
1040
end
1043
1041
1044
1042
# Call `remake` so it runs initialization if it is trivial
1045
- # Pass `u0` and `p` to run `ReconstructInitializeprob` which will promote
1046
- # u0 and p of initializeprob
1047
- return remake (
1048
- DAEProblem {iip} (
1049
- f, du0, u0, tspan, p; differential_vars = differential_vars,
1050
- kwargs... , kwargs1... );
1051
- u0,
1052
- p)
1043
+ return remake (DAEProblem {iip} (
1044
+ f, du0, u0, tspan, p; differential_vars = differential_vars,
1045
+ kwargs... , kwargs1... ))
1053
1046
end
1054
1047
1055
1048
function generate_history (sys:: AbstractODESystem , u0; expression = Val{false }, kwargs... )
@@ -1095,9 +1088,7 @@ function DiffEqBase.DDEProblem{iip}(sys::AbstractODESystem, u0map = [],
1095
1088
kwargs1 = merge (kwargs1, (callback = cbs,))
1096
1089
end
1097
1090
# Call `remake` so it runs initialization if it is trivial
1098
- # Pass `u0` and `p` to run `ReconstructInitializeprob` which will promote
1099
- # u0 and p of initializeprob
1100
- return remake (DDEProblem {iip} (f, u0, h, tspan, p; kwargs1... , kwargs... ); u0, p)
1091
+ return remake (DDEProblem {iip} (f, u0, h, tspan, p; kwargs1... , kwargs... ))
1101
1092
end
1102
1093
1103
1094
function DiffEqBase. SDDEProblem (sys:: AbstractODESystem , args... ; kwargs... )
@@ -1148,14 +1139,9 @@ function DiffEqBase.SDDEProblem{iip}(sys::AbstractODESystem, u0map = [],
1148
1139
noise_rate_prototype = zeros (eltype (u0), size (noiseeqs))
1149
1140
end
1150
1141
# Call `remake` so it runs initialization if it is trivial
1151
- # Pass `u0` and `p` to run `ReconstructInitializeprob` which will promote
1152
- # u0 and p of initializeprob
1153
- return remake (
1154
- SDDEProblem {iip} (f, f. g, u0, h, tspan, p;
1155
- noise_rate_prototype =
1156
- noise_rate_prototype, kwargs1... , kwargs... );
1157
- u0,
1158
- p)
1142
+ return remake (SDDEProblem {iip} (f, f. g, u0, h, tspan, p;
1143
+ noise_rate_prototype =
1144
+ noise_rate_prototype, kwargs1... , kwargs... ))
1159
1145
end
1160
1146
1161
1147
"""
0 commit comments