From e182ae1724107f4e1d6dfe364eb3740b1c35ae8d Mon Sep 17 00:00:00 2001 From: Charles Kawczynski Date: Fri, 6 Sep 2024 14:51:20 -0400 Subject: [PATCH] Remove dependence on OrdinaryDiffEq in docs env --- docs/Project.toml | 2 +- docs/tutorials/introduction.jl | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index a7717a0ee4..c01b0c2143 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -12,5 +12,5 @@ FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" -OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" +OrdinaryDiffEqSSPRK = "669c94d9-1f4b-4b64-b377-1aa079aa2388" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" diff --git a/docs/tutorials/introduction.jl b/docs/tutorials/introduction.jl index b419cd96a7..2c282147f0 100644 --- a/docs/tutorials/introduction.jl +++ b/docs/tutorials/introduction.jl @@ -10,13 +10,8 @@ # - staggered finite difference in the vertical # - currently under development -using ClimaComms, - ClimaCore, - ClimaCorePlots, - LinearAlgebra, - IntervalSets, - Plots, - OrdinaryDiffEq +using ClimaComms, ClimaCore, ClimaCorePlots, LinearAlgebra, IntervalSets, Plots + #---------------------------------------------------------------------------- # ## 1. Constructing a discretization @@ -362,7 +357,7 @@ plot(∇∇sinz, ylim = (0, 10)) # # ClimaCore can be used for spatial discretizations of PDEs. For temporal discretization, we can use the OrdinaryDiffEq package, which we aim to be compatibile with. -using OrdinaryDiffEq +import OrdinaryDiffEqSSPRK: ODEProblem, solve, SSPRK33 #---------------------------------------------------------------------------- # ### 3.1 Heat equation using finite differences