Skip to content

Commit

Permalink
reduce diff with main
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Sep 13, 2024
1 parent a0a4f58 commit 2edea94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions experiments/long_runs/land_region.jl
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ function setup_prob(t0, tf, Δt; outdir = outdir, nelements = (10, 10, 15))
start_date;
output_writer = nc_writer,
output_vars = :short,
average_period = :daily,
average_period = :monthly,
)

diagnostic_handler =
Expand All @@ -638,7 +638,7 @@ end
function setup_and_solve_problem(; greet = false)

t0 = 0.0
tf = 60 * 60.0 * 24 * 30
tf = 60 * 60.0 * 24 * 365
Δt = 900.0
nelements = (10, 10, 15)
if greet
Expand Down
8 changes: 5 additions & 3 deletions test/shared_utilities/domains.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ FT = Float32
face_space = obtain_face_space(shell.space.subsurface)
z_face = ClimaCore.Fields.coordinate_field(face_space).z
@test shell.fields.z_sfc == top_face_to_surface(z_face, shell.space.surface)
Δz_top, Δz_bottom = get_Δz(shell.fields.z)
Δz_top, Δz_bottom, Δz = get_Δz(shell.fields.z)
@test shell.fields.Δz_top == Δz_top
@test shell.fields.Δz_bottom == Δz_bottom
@test shell.radius == radius
Expand Down Expand Up @@ -109,7 +109,7 @@ FT = Float32
face_space = obtain_face_space(box.space.subsurface)
z_face = ClimaCore.Fields.coordinate_field(face_space).z
@test box.fields.z_sfc == top_face_to_surface(z_face, box.space.surface)
Δz_top, Δz_bottom = get_Δz(box.fields.z)
Δz_top, Δz_bottom, Δz = get_Δz(box.fields.z)
@test box.fields.Δz_top == Δz_top
@test box.fields.Δz_bottom == Δz_bottom
box_coords = coordinates(box).subsurface
Expand Down Expand Up @@ -260,7 +260,9 @@ FT = Float32
z_face = ClimaCore.Fields.coordinate_field(face_space).z
@test z_column.fields.z_sfc ==
top_face_to_surface(z_face, z_column.space.surface)
Δz_top, Δz_bottom = get_Δz(z_column.fields.z)
Δz_top, Δz_bottom, Δz = get_Δz(z_column.fields.z)
z = ClimaCore.Fields.coordinate_field(z_column.space.subsurface).z
@test z_column.fields.z == z
@test z_column.fields.Δz_top == Δz_top
@test z_column.fields.Δz_bottom == Δz_bottom
column_coords = coordinates(z_column).subsurface
Expand Down

0 comments on commit 2edea94

Please sign in to comment.