You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* repository transfer
* format
* relax work-precision time tests
* allow bigger tolerance on macOS
---------
Co-authored-by: Stefan Kopecz <[email protected]>
is a registered Julia package. Thus, you can install it from the Julia REPL via
13
13
```julia
14
14
julia>using Pkg; Pkg.add("PositiveIntegrators")
@@ -88,7 +88,7 @@ tspan = (0.0, 10.0) # time span
88
88
prob = PDSProblem(P, d, u0, tspan)
89
89
nothing #hide
90
90
```
91
-
Now that the problem has been created, we can solve it with any method of [PositiveIntegrators.jl](https://github.com/SKopecz/PositiveIntegrators.jl). In the following, we use the method `MPRK22(1.0)`. In addition, we could also use any method provided by [OrdinaryDiffEq.jl](https://docs.sciml.ai/OrdinaryDiffEq/stable/), but these might possibly generate negative approximations.
91
+
Now that the problem has been created, we can solve it with any method of [PositiveIntegrators.jl](https://github.com/NumericalMathematics/PositiveIntegrators.jl). In the following, we use the method `MPRK22(1.0)`. In addition, we could also use any method provided by [OrdinaryDiffEq.jl](https://docs.sciml.ai/OrdinaryDiffEq/stable/), but these might possibly generate negative approximations.
92
92
93
93
```@example LotkaVolterra
94
94
sol = solve(prob, MPRK22(1.0))
@@ -132,7 +132,7 @@ The corresponding production matrix ``\mathbf P`` is
The following example shows how to implement the above SIR model with ``\beta=0.4, \gamma=0.04``, initial conditions ``S(0)=997, I(0)=3, R(0)=0`` and time domain ``(0, 100)`` using `ConservativePDSProblem` from [PositiveIntegrators.jl](https://github.com/SKopecz/PositiveIntegrators.jl).
135
+
The following example shows how to implement the above SIR model with ``\beta=0.4, \gamma=0.04``, initial conditions ``S(0)=997, I(0)=3, R(0)=0`` and time domain ``(0, 100)`` using `ConservativePDSProblem` from [PositiveIntegrators.jl](https://github.com/NumericalMathematics/PositiveIntegrators.jl).
Since the SIR model is not only conservative but also positive, we can use any scheme from [PositiveIntegrators.jl](https://github.com/SKopecz/PositiveIntegrators.jl) to solve it. Here we use `MPRK22(1.0)`.
161
+
Since the SIR model is not only conservative but also positive, we can use any scheme from [PositiveIntegrators.jl](https://github.com/NumericalMathematics/PositiveIntegrators.jl) to solve it. Here we use `MPRK22(1.0)`.
162
162
Please note that any method from [OrdinaryDiffEq.jl](https://docs.sciml.ai/OrdinaryDiffEq/stable/) can be used as well, but might possibly generate negative approximations.
163
163
164
164
```@example SIR
@@ -186,7 +186,7 @@ for your research, please cite it using the bibtex entry
186
186
author={Kopecz, Stefan and Lampert, Joshua and Ranocha, Hendrik},
0 commit comments