Skip to content

Commit 52afbf6

Browse files
Use OrdinaryDiffEqRosenbrock.jl (#108)
* use OrdinaryDiffEqRosenbrock * add compat bound for OrdinaryDiffEqRosenbrock * bump compat of SciMLBase * also use OrdinaryDiffEqNonlinearSolve * document need of OrdinaryDiffEqNonlinearSolve.jl * fix typo * import OrdinaryDiffEqNonlinearSolve in tests * bump compat bounds of OrdinaryDiffEq* * run Downgrade on Julia 1.11
1 parent bf86e29 commit 52afbf6

File tree

13 files changed

+21
-13
lines changed

13 files changed

+21
-13
lines changed

.github/workflows/Downgrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
fail-fast: false
3434
matrix:
3535
version:
36-
- '1.10'
36+
- '1.11'
3737
# - '~1.9.0-0' # including development versions
3838
# - 'nightly'
3939
os:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Random = "1"
3737
ReadVTK = "0.2"
3838
RecipesBase = "1.3.4"
3939
Reexport = "1.2"
40-
SciMLBase = "2.26"
40+
SciMLBase = "2.56"
4141
SimpleUnPack = "1.1"
4242
SpecialFunctions = "2"
4343
StaticArrays = "1.9"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ julia> Pkg.add("Plots")
3838

3939
To create special node sets, you might also want to install [QuasiMonteCarlo.jl](https://github.com/SciML/QuasiMonteCarlo.jl) or
4040
[Meshes.jl](https://github.com/JuliaGeometry/Meshes.jl) and for solving time-dependent partial differential equations
41-
[OrdinaryDiffEq.jl](https://github.com/SciML/OrdinaryDiffEq.jl) in a similar way as above for Plots.jl. See the documentation for more
41+
[OrdinaryDiffEq.jl](https://github.com/SciML/OrdinaryDiffEq.jl) in a similar way as above for Plots.jl. Consider using the subpackage
42+
OrdinaryDiffEqRosenbrock.jl as it contains the most relevant time integration schemes for this package. See the documentation for more
4243
examples on how to use these packages in combination with KernelInterpolation.jl.
4344

4445
## Usage

docs/src/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cd KernelInterpolation.jl
1919
mkdir run
2020
cd run
2121
julia --project=. -e 'using Pkg; Pkg.develop(PackageSpec(path=".."))' # Install local KernelInterpolation.jl clone
22-
julia --project=. -e 'using Pkg; Pkg.add(["Plots", "QuasiMonteCarlo", "Meshes", "OrdinaryDiffEq"])' # Install additional packages
22+
julia --project=. -e 'using Pkg; Pkg.add(["Plots", "QuasiMonteCarlo", "Meshes", "OrdinaryDiffEqRosenbrock", "OrdinaryDiffEqNonlinearSolve"])' # Install additional packages
2323
```
2424

2525
If you use other packages for executing KernelInterpolation.jl, you can add them to the project in the `run`

docs/src/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ julia> Pkg.add("Plots")
3838

3939
To create special node sets, you might also want to install [QuasiMonteCarlo.jl](https://github.com/SciML/QuasiMonteCarlo.jl) or
4040
[Meshes.jl](https://github.com/JuliaGeometry/Meshes.jl) and for solving time-dependent partial differential equations
41-
[OrdinaryDiffEq.jl](https://github.com/SciML/OrdinaryDiffEq.jl) in a similar way as above for Plots.jl. See the documentation for more
41+
[OrdinaryDiffEq.jl](https://github.com/SciML/OrdinaryDiffEq.jl) in a similar way as above for Plots.jl. Consider using the subpackage
42+
OrdinaryDiffEqRosenbrock.jl as it contains the most relevant time integration schemes for this package. See the documentation for more
4243
examples on how to use these packages in combination with KernelInterpolation.jl.
4344

4445
## Usage

docs/src/pdes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ which already provides a wide range of time integration methods. Note that this
226226
system, which is more difficult to solve than a simple ODE system. Thus, we are restricted to specialized time integration
227227
methods, which can handle DAEs. We recommend using the `Rodas5P` method, which is a Rosenbrock method for stiff DAEs. See
228228
also the [documentation of OrdinaryDiffEq.jl](https://docs.sciml.ai/DiffEqDocs/latest/tutorials/dae_example/) for more information.
229+
`Rodas5P` along with other Rosenbrock methods are implemented in the subpackage OrdinaryDiffEqRosenbrock.jl. Therefore, we
230+
recommend using this package in combination with KernelInterpolation.jl to reduce precompile time. In order to solve DAEs with
231+
OrdinaryDiffEqRosenbrock.jl, we also need to import the subpackage OrdinaryDiffEqNonlinearSolve.jl.
229232

230233
In KernelInterpolation.jl, you can use the constructor of a [`Semidiscretization`](@ref) in a very similar way as
231234
[`SpatialDiscretization`](@ref), but with the additional initial condition. This can be turned into an `ODEProblem` object

examples/PDEs/advection_1d_basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using KernelInterpolation
2-
using OrdinaryDiffEq
2+
using OrdinaryDiffEqRosenbrock, OrdinaryDiffEqNonlinearSolve
33
using Plots
44

55
# source term of advection equation

examples/PDEs/advection_3d_basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using KernelInterpolation
2-
using OrdinaryDiffEq
2+
using OrdinaryDiffEqRosenbrock, OrdinaryDiffEqNonlinearSolve
33
using LinearAlgebra: norm
44
using WriteVTK: WriteVTK, paraview_collection
55

examples/PDEs/advection_diffusion_2d_basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using KernelInterpolation
2-
using OrdinaryDiffEq
2+
using OrdinaryDiffEqRosenbrock, OrdinaryDiffEqNonlinearSolve
33
using LinearAlgebra: norm
44
using Plots
55

examples/PDEs/heat_2d_basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using KernelInterpolation
2-
using OrdinaryDiffEq
2+
using OrdinaryDiffEqRosenbrock, OrdinaryDiffEqNonlinearSolve
33
using Plots
44

55
# right-hand-side of Heat equation

0 commit comments

Comments
 (0)