Problem
#4983 array-valued implicit DAE residuals. #5049 makes the out-of-place
ArrayMaker path Dual-safe for NonlinearProblem only.
DAEProblem{false} still uses the default zeros(size) allocator. That
buffer is Float64, so ForwardDiff.Dual on du, u, parameters, or t
is dropped. In-place DAE is unaffected.
Requested change
Give DAEProblem{false} the same residual-eltype promotion already used
on the nonlinear OOP path. Do not change nonlinear residual behavior.
Required coverage
ForwardDiff.jacobian / Dual eltype through du, u, tunable p, and t
- split and non-split parameter structures
- generated
expression = Val{true} path
- existing 4983 IIP DAE tests remain green
Problem
#4983 array-valued implicit DAE residuals. #5049 makes the out-of-place
ArrayMakerpath Dual-safe forNonlinearProblemonly.DAEProblem{false}still uses the defaultzeros(size)allocator. Thatbuffer is
Float64, soForwardDiff.Dualondu,u, parameters, ortis dropped. In-place DAE is unaffected.
Requested change
Give
DAEProblem{false}the same residual-eltype promotion already usedon the nonlinear OOP path. Do not change nonlinear residual behavior.
Required coverage
ForwardDiff.jacobian/ Dualeltypethroughdu,u, tunablep, andtexpression = Val{true}path