Skip to content

Commit 58d8883

Browse files
kmdeckjuliasloan25
authored andcommitted
correctly set land domain resolution when sharing surface space
1 parent 9328dab commit 58d8883

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

NEWS.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ ClimaCoupler.jl Release Notes
66

77
### ClimaCoupler features
88

9+
#### Correctly set land domain with `share_surface_space = true` PR[#1464](https://github.com/CliMA/ClimaCoupler.jl/pull/1464)
10+
Previously, we passed but did not use arguments related to the vertical resolution
11+
in `make_land_domain`. Now we correctly use the provided `dz_tuple` and `n_elements_vert`.
12+
913
#### Add option `detect_restart_files` PR[#1463](https://github.com/CliMA/ClimaCoupler.jl/pull/1463)
1014
Add a CLI option to signal whether restart files should be automatically used
1115
to restart a simulation. This is true by default, but can be set to false if a
1216
user wishes to run a simulation from the beginning, ignoring present restart files.
1317

14-
1518
#### Remove ED/EDMF aquaplanet longruns PR[#1461](https://github.com/CliMA/ClimaCoupler.jl/pull/1461)
1619
Removes the ED-only and diag. EDMF aquaplanet longruns.
1720
These can be run manually as needed for debugging, rather than running every week.

experiments/ClimaEarth/components/land/climaland_bucket.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function BucketSimulation(
6868
if isnothing(shared_surface_space)
6969
domain = make_land_domain(depth; nelements, dz_tuple)
7070
else
71-
domain = make_land_domain(shared_surface_space, depth)
71+
domain = make_land_domain(shared_surface_space, depth; nelements_vert = nelements[2], dz_tuple)
7272
end
7373
surface_space = domain.space.surface
7474
subsurface_space = domain.space.subsurface

experiments/ClimaEarth/components/land/climaland_helpers.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ end
4040
shared_surface_space::CC.Spaces.SpectralElementSpace2D,
4141
depth::FT;
4242
nelements_vert::Int = 15,
43+
dz_tuple::Tuple{FT, FT} = FT.((10.0, 0.05)),
4344
) where {FT}
4445
4546
Creates the land model domain from the input shared surface space and information
@@ -63,7 +64,12 @@ function make_land_domain(
6364
boundary_names = (:bottom, :top),
6465
)
6566

66-
vertmesh = CC.Meshes.IntervalMesh(vertdomain, CC.Meshes.Uniform(), nelems = nelements[2])
67+
vertmesh = CC.Meshes.IntervalMesh(
68+
vertdomain,
69+
ClimaCore.Meshes.GeneralizedExponentialStretching{FT}(dz_tuple[1], dz_tuple[2]);
70+
nelems = nelements_vert,
71+
reverse_mode = true,
72+
)
6773
verttopology = CC.Topologies.IntervalTopology(vertmesh)
6874
vert_center_space = CC.Spaces.CenterFiniteDifferenceSpace(verttopology)
6975
subsurface_space = CC.Spaces.ExtrudedFiniteDifferenceSpace(shared_surface_space, vert_center_space)

experiments/ClimaEarth/components/land/climaland_integrated.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function ClimaLandSimulation(
8080
if isnothing(shared_surface_space)
8181
domain = make_land_domain(depth; nelements, dz_tuple)
8282
else
83-
domain = make_land_domain(shared_surface_space, depth)
83+
domain = make_land_domain(shared_surface_space, depth; nelements_vert = nelements[2], dz_tuple)
8484
end
8585
surface_space = domain.space.surface
8686
subsurface_space = domain.space.subsurface

0 commit comments

Comments
 (0)