Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default context in domains #951

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/shared_utilities/Domains.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ end
periodic::Tuple{Bool,Bool},
npolynomial::Int,
longlat = nothing,
comms_ctx = ClimaComms.SingletonCommsContext(),
comms_ctx = ClimaComms.context(),
radius_earth = FT(6.378e6)
) where {FT}

Expand All @@ -251,7 +251,7 @@ function Plane(;
periodic::Tuple{Bool, Bool} = isnothing(longlat) ? (true, true) :
(false, false),
npolynomial::Int,
comms_ctx = ClimaComms.SingletonCommsContext(),
comms_ctx = ClimaComms.context(),
radius_earth = 6.378e6,
) where {FT}
if isnothing(longlat)
Expand Down Expand Up @@ -548,7 +548,7 @@ function SphericalShell(;
nelements::Tuple{Int, Int},
npolynomial::Int,
dz_tuple::Union{Tuple{FT, FT}, Nothing} = nothing,
comms_ctx = ClimaComms.SingletonCommsContext(),
comms_ctx = ClimaComms.context(),
) where {FT}
@assert 0 < radius
@assert 0 < depth
Expand Down Expand Up @@ -635,15 +635,15 @@ end
radius::FT,
nelements::Int
npolynomial::Int,
comms_ctx = ClimaComms.SingletonCommsContext(),
comms_ctx = ClimaComms.context(),
) where {FT}
Outer constructor for the `SphericalSurface` domain, using keyword arguments.
"""
function SphericalSurface(;
radius::FT,
nelements::Int,
npolynomial::Int,
comms_ctx = ClimaComms.SingletonCommsContext(),
comms_ctx = ClimaComms.context(),
) where {FT}
@assert 0 < radius
horzdomain = ClimaCore.Domains.SphereDomain(radius)
Expand Down
Loading