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

Proper z_domain construction in drop_y_dimension #297

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/InverseProblems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ using Oceananigans.Grids: Flat, Bounded,
Face, Center,
RectilinearGrid, offset_data,
topology, halo_size,
interior_parent_indices

interior_parent_indices,
cpu_face_constructor_z
using Oceananigans.Models.HydrostaticFreeSurfaceModels: SingleColumnGrid, YZSliceGrid, ColumnEnsembleSize

import ..Transformations: normalize!
Expand Down Expand Up @@ -361,7 +361,7 @@ end
function drop_y_dimension(grid::SingleColumnGrid)
new_size = ColumnEnsembleSize(Nz=grid.Nz, ensemble=(grid.Nx, 1), Hz=grid.Hz)
new_halo_size = ColumnEnsembleSize(Nz=1, Hz=grid.Hz)
z_domain = (grid.zᵃᵃᶠ[1], grid.zᵃᵃᶠ[grid.Nz])
z_domain = cpu_face_constructor_z(grid)
new_grid = RectilinearGrid(size=new_size, halo=new_halo_size, z=z_domain, topology=(Flat, Flat, Bounded))
return new_grid
end
Expand Down