228
228
periodic::Tuple{Bool,Bool},
229
229
npolynomial::Int,
230
230
longlat = nothing,
231
- comms_ctx = ClimaComms.SingletonCommsContext (),
231
+ comms_ctx = ClimaComms.context (),
232
232
radius_earth = FT(6.378e6)
233
233
) where {FT}
234
234
@@ -251,7 +251,7 @@ function Plane(;
251
251
periodic:: Tuple{Bool, Bool} = isnothing (longlat) ? (true , true ) :
252
252
(false , false ),
253
253
npolynomial:: Int ,
254
- comms_ctx = ClimaComms. SingletonCommsContext (),
254
+ comms_ctx = ClimaComms. context (),
255
255
radius_earth = 6.378e6 ,
256
256
) where {FT}
257
257
if isnothing (longlat)
@@ -548,7 +548,7 @@ function SphericalShell(;
548
548
nelements:: Tuple{Int, Int} ,
549
549
npolynomial:: Int ,
550
550
dz_tuple:: Union{Tuple{FT, FT}, Nothing} = nothing ,
551
- comms_ctx = ClimaComms. SingletonCommsContext (),
551
+ comms_ctx = ClimaComms. context (),
552
552
) where {FT}
553
553
@assert 0 < radius
554
554
@assert 0 < depth
@@ -635,15 +635,15 @@ end
635
635
radius::FT,
636
636
nelements::Int
637
637
npolynomial::Int,
638
- comms_ctx = ClimaComms.SingletonCommsContext (),
638
+ comms_ctx = ClimaComms.context (),
639
639
) where {FT}
640
640
Outer constructor for the `SphericalSurface` domain, using keyword arguments.
641
641
"""
642
642
function SphericalSurface (;
643
643
radius:: FT ,
644
644
nelements:: Int ,
645
645
npolynomial:: Int ,
646
- comms_ctx = ClimaComms. SingletonCommsContext (),
646
+ comms_ctx = ClimaComms. context (),
647
647
) where {FT}
648
648
@assert 0 < radius
649
649
horzdomain = ClimaCore. Domains. SphereDomain (radius)
0 commit comments