From c37ff9647873f2281164e7e1ddf2a82edf7054fe Mon Sep 17 00:00:00 2001 From: Utkarsh Date: Thu, 4 Feb 2021 00:20:17 +0530 Subject: [PATCH] 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)}(