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.
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.
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.
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>
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>


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