Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh530 committed Feb 1, 2021
1 parent 4d76908 commit 7c3a4f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/solutions/nonlinear_solutions.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"""
$(TYPEDEF)
"""
struct NonlinearSolution{T,N,uType,R,P,A,O} <: AbstractNonlinearSolution{T,N}
struct NonlinearSolution{T,N,uType,R,P,A,O,uType2} <: AbstractNonlinearSolution{T,N}
u::uType
resid::R
prob::P
alg::A
retcode::Symbol
original::O
left::uType
right::uType
left::uType2
right::uType2
end

const SteadyStateSolution = NonlinearSolution
Expand All @@ -26,16 +26,16 @@ function build_solution(prob::AbstractNonlinearProblem,
N = length((size(prob.u0)...,))

NonlinearSolution{T,N,typeof(u),typeof(resid),
typeof(prob),typeof(alg),typeof(original)}(
typeof(prob),typeof(alg),typeof(original),typeof(left)}(
u,resid,prob,alg,retcode,original,left,right)
end

function sensitivity_solution(sol::AbstractNonlinearProblem,u)
function sensitivity_solution(sol::AbstractNonlinearSolution,u)
T = eltype(eltype(u))
N = length((size(sol.prob.u0)...,))

NonlinearSolution{T,N,typeof(u),typeof(sol.resid),
typeof(sol.prob),typeof(sol.alg),
typeof(sol.original)}(
u,sol.resid,sol.prob,sol.alg,sol.retcode,sol.original)
typeof(sol.original),typeof(sol.left)}(
u,sol.resid,sol.prob,sol.alg,sol.retcode,sol.original,sol.left,sol.right)
end

0 comments on commit 7c3a4f6

Please sign in to comment.