From efef10eb9272a73e6aaa50acc1a5bebddca02196 Mon Sep 17 00:00:00 2001 From: Utkarsh Date: Wed, 3 Feb 2021 23:52:19 +0530 Subject: [PATCH 1/2] fix N param for tuple in bracketing solution --- src/solutions/nonlinear_solutions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solutions/nonlinear_solutions.jl b/src/solutions/nonlinear_solutions.jl index 32aabde27..2babda778 100644 --- a/src/solutions/nonlinear_solutions.jl +++ b/src/solutions/nonlinear_solutions.jl @@ -23,7 +23,7 @@ function build_solution(prob::AbstractNonlinearProblem, kwargs...) T = eltype(eltype(u)) - N = length((size(prob.u0)...,)) + N = length((size(u)...,)) NonlinearSolution{T,N,typeof(u),typeof(resid), typeof(prob),typeof(alg),typeof(original),typeof(left)}( From c37ff9647873f2281164e7e1ddf2a82edf7054fe Mon Sep 17 00:00:00 2001 From: Utkarsh Date: Thu, 4 Feb 2021 00:20:17 +0530 Subject: [PATCH 2/2] Update src/solutions/nonlinear_solutions.jl Co-authored-by: Yingbo Ma --- src/solutions/nonlinear_solutions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solutions/nonlinear_solutions.jl b/src/solutions/nonlinear_solutions.jl index 2babda778..88378cc3f 100644 --- a/src/solutions/nonlinear_solutions.jl +++ b/src/solutions/nonlinear_solutions.jl @@ -23,7 +23,7 @@ function build_solution(prob::AbstractNonlinearProblem, kwargs...) T = eltype(eltype(u)) - N = length((size(u)...,)) + N = ndims(u) NonlinearSolution{T,N,typeof(u),typeof(resid), typeof(prob),typeof(alg),typeof(original),typeof(left)}(