File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
21
21
LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
22
22
PkgVersion = " eebad327-c553-4316-9ea0-9fa01ccd7688"
23
23
RecursiveArrayTools = " 731186ca-8d62-57ce-b412-fbd966d074cd"
24
+ Requires = " ae029012-a4dd-5104-9daa-d747884805df"
24
25
RootSolvers = " 7181ea78-2dcb-4de3-ab41-2b8ab5a31e74"
25
26
Rotations = " 6038ab10-8711-5258-84ad-4b1120ba62dc"
26
27
SparseArrays = " 2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ include("Hypsography/Hypsography.jl")
18
18
include (" Limiters/Limiters.jl" )
19
19
include (" InputOutput/InputOutput.jl" )
20
20
21
+ using Requires
22
+ function __init__ ()
23
+ @require Krylov = " ba0b0d4f-ebba-5204-a429-3ac8c609bfb7" include (
24
+ joinpath (" weak_deps" , " Krylov.jl" ),
25
+ )
26
+ return nothing
27
+ end
28
+
21
29
include (" deprecated.jl" )
22
30
23
31
end # module
Original file line number Diff line number Diff line change
1
+ #=
2
+ `Krylov.ktypeof` is defined here, if `Krylov`
3
+ is loaded to avoid the need for type piracy.
4
+
5
+ ```julia
6
+ using Krylov # to load this file
7
+ using ClimaCore
8
+ ```
9
+
10
+ TODO : Use package extensions when we upgrade to Julia 1.9.
11
+ =#
12
+
13
+ import ClimaComms
14
+ import . Krylov
15
+ Krylov. ktypeof (x:: Fields.FieldVector ) =
16
+ ClimaComms. array_type (x){eltype (parent (x)), 1 }
You can’t perform that action at this time.
0 commit comments