-
Notifications
You must be signed in to change notification settings - Fork 6
Sandu projection #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sandu projection #162
Conversation
|
Would it make sense and be feasible to put JuMP.jl in an extension as it is not very lightweight and not necessary for every user, such that we save the additional loading time if no Sandu projection is used? |
|
Is 25a8127 what you had in mind? |
|
Yes, looks good. Thanks! |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Pull Request Test Coverage Report for Build 18007485686Details
💛 - Coveralls |
…grators.jl into sk/sandu_projection
src/PDSProblemLibrary.jl
Outdated
| There are two independent linear invariants. The function `linear_invariants_stratreac_scaled` returns the invariance matrix.``. | ||
| """ | ||
| prob_ode_stratreac_scaled = ODEProblem(f_stratreac_scaled, u0, (4.32e4, 3.024e5)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a scaled version of the stratospheric reaction problem and can be solved using SanduProjection and Clarabel with default settings.
Unfortunately, scaling destroys the "conservation structure" of a PDS, i.e. terms that canceled before scaling, do not afterwards. I was not able to find a PDS representation of the scaled statospheric problem, which could be solved as good as the original one by MPRK schemes. That's why there is only an ODE version of this problem.
ext/SanduProjectionExt.jl
Outdated
| @@ -0,0 +1,127 @@ | |||
| module SanduProjectionExt | |||
|
|
|||
| using StaticArrays: StaticArray, SVector # Why do we need this here, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have expected that using StaticArrays is not necessary in the extension, as it is used in the parent package.
JoshuaLampert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I left some comments and suggestions below.
Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
JoshuaLampert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
JoshuaLampert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
ranocha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks


This implements Sandu's projection method, see #124.