Skip to content

Commit

Permalink
Make linear solutions very lean
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 11, 2021
1 parent 7a8e8d9 commit 9abec93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "1.21.0"
version = "1.22.0"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
12 changes: 4 additions & 8 deletions src/solutions/basic_solutions.jl
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
"""
$(TYPEDEF)
"""
struct LinearSolution{T,N,uType,R,P,A} <: AbstractLinearSolution{T,N}
struct LinearSolution{T,N,uType,R,A} <: AbstractLinearSolution{T,N}
u::uType
resid::R
prob::P
alg::A
retcode::Symbol
end

function build_solution(prob::AbstractLinearProblem,
alg,u,resid;calculate_error = true,
retcode = :Default, kwargs...)

function build_linear_solution(alg,u,resid;
retcode = :Default)
T = eltype(eltype(u))
N = length((size(u)...,))

LinearSolution{T,N,typeof(u),typeof(resid),typeof(prob),typeof(alg)}(u,resid,prob,alg,retcode)
LinearSolution{T,N,typeof(u),typeof(resid),typeof(alg)}(u,resid,alg,retcode)
end

struct QuadratureSolution{T,N,uType,R,P,A,C} <: AbstractQuadratureSolution{T,N}
Expand Down

0 comments on commit 9abec93

Please sign in to comment.