-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from ErikQQY/qqy/interpsol_for_all
Use solution object in all solvers
- Loading branch information
Showing
28 changed files
with
351 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
# Intermidiate solution evaluation | ||
@concrete struct EvalSol{iip} | ||
@concrete struct EvalSol{C} | ||
u | ||
t | ||
alg | ||
k_discrete | ||
cache::C | ||
end | ||
|
||
Base.size(e::EvalSol) = (size(e.u[1])..., length(e.u)) | ||
Base.size(e::EvalSol, i) = size(e)[i] | ||
|
||
Base.axes(e::EvalSol) = Base.OneTo.(size(e)) | ||
Base.axes(e::EvalSol, d::Int) = Base.OneTo.(size(e)[d]) | ||
|
||
Base.getindex(e::EvalSol, args...) = Base.getindex(VectorOfArray(e.u), args...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.