Skip to content

Commit 1342d7b

Browse files
committed
test fixes
1 parent c2051e1 commit 1342d7b

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

src/parameterized_tendencies/sponge/viscous_sponge.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import ClimaCore.Spaces as Spaces
1313
αₘ(s, z) * ζ_viscous(s, z, zmax)
1414

1515
function viscous_sponge_tendency_uₕ(ᶜuₕ, s)
16-
s isa Nothing && return NullBroadcasted()
16+
if s isa Nothing || axes(ᶜuₕ) isa Spaces.FiniteDifferenceSpace
17+
return NullBroadcasted()
18+
end
1719
(; ᶜz, ᶠz) = z_coordinate_fields(axes(ᶜuₕ))
1820
zmax = z_max(axes(ᶠz))
1921
return @. lazy(

test/parameterized_tendencies/gravity_wave/orographic_gravity_wave/ogwd_3d.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ include(
1616
)
1717
include("../gw_plotutils.jl")
1818

19-
comms_ctx = ClimaComms.SingletonCommsContext()
19+
context = ClimaComms.SingletonCommsContext()
2020
(; config_file, job_id) = CA.commandline_kwargs()
21-
config = CA.AtmosConfig(config_file; job_id, comms_ctx)
21+
config = CA.AtmosConfig(config_file; job_id, comms_ctx = context)
2222

2323
config.parsed_args["topography"] = "Earth";
2424
config.parsed_args["topo_smoothing"] = false;
@@ -87,8 +87,8 @@ dz_bottom = 300.0
8787
radius = 6.371229e6
8888

8989
grid = CA.SphereGrid(
90-
FT,
91-
comms_ctx;
90+
FT;
91+
context,
9292
z_elem,
9393
z_max,
9494
z_stretch = true,
@@ -98,7 +98,7 @@ grid = CA.SphereGrid(
9898
nh_poly,
9999
bubble = false,
100100
)
101-
(; center_space, face_space) = CA.get_spaces(grid, comms_ctx)
101+
(; center_space, face_space) = CA.get_spaces(grid, context)
102102

103103
ᶜlocal_geometry = Fields.local_geometry_field(center_space)
104104
ᶠlocal_geometry = Fields.local_geometry_field(face_space)

test/parameterized_tendencies/gravity_wave/orographic_gravity_wave/ogwd_baseflux.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ include(
1212
joinpath(pkgdir(ClimaAtmos), "post_processing/remap", "remap_helpers.jl"),
1313
)
1414

15-
comms_ctx = ClimaComms.SingletonCommsContext()
15+
context = ClimaComms.SingletonCommsContext()
1616
(; config_file, job_id) = CA.commandline_kwargs()
17-
config = CA.AtmosConfig(config_file; job_id, comms_ctx)
17+
config = CA.AtmosConfig(config_file; job_id, comms_ctx = context)
1818
config.parsed_args["topography"] = "NoWarp"
1919

2020
# Create meshes and spaces
@@ -25,8 +25,8 @@ z_elem = 1
2525
radius = 6.371229e6
2626

2727
grid = CA.SphereGrid(
28-
FT,
29-
comms_ctx;
28+
FT;
29+
context,
3030
z_elem,
3131
z_max,
3232
z_stretch = false,
@@ -35,8 +35,8 @@ grid = CA.SphereGrid(
3535
nh_poly,
3636
bubble = false,
3737
)
38-
(; center_space, face_space) = CA.get_spaces(grid, comms_ctx)
39-
38+
(; center_space, face_space) = CA.get_spaces(grid, context)
39+
h_space = Spaces.horizontal_space(center_space)
4040
ᶜlocal_geometry = Fields.local_geometry_field(center_space)
4141
ᶠlocal_geometry = Fields.local_geometry_field(face_space)
4242

0 commit comments

Comments
 (0)