Skip to content

Commit bd961ea

Browse files
committed
fix merge issues
1 parent fde0cb5 commit bd961ea

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

ext/cuda/operators_fd_eager.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ expression at the given index, and then copies the result into `out`.
8282
Base.@propagate_inbounds function eager_copyto_stencil_kernel!(
8383
out,
8484
bc::BC,
85-
us,
8685
mask,
8786
space,
8887
) where {BC}
@@ -91,9 +90,10 @@ Base.@propagate_inbounds function eager_copyto_stencil_kernel!(
9190
(i, j, h) = if mask isa NoMask
9291
# `Nij` comes from the type of `us`, so it is a compile-time constant and
9392
# the `CartesianIndices` decomposition below uses a fixed-divisor `divrem`.
94-
Nj = ClimaCore.DataLayouts.get_Nj(us)
95-
Ni = ClimaCore.DataLayouts.get_Ni(us)
96-
Nh = ClimaCore.DataLayouts.get_Nh(us)
93+
size_params = ClimaCore.DataLayouts.vijh_params(ClimaCore.Fields.field_values(out))
94+
Nj = size_params.Nj
95+
Ni = size_params.Ni
96+
Nh = ClimaCore.DataLayouts.nelems(ClimaCore.Fields.field_values(out))
9797
cart_inds = CartesianIndices((Ni, Nj, Nh))
9898
col_idx > length(cart_inds) && return nothing
9999
@inbounds cart_inds[col_idx].I

ext/cuda/operators_finite_difference.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ function Base.copyto!(
116116
args = (
117117
strip_space(out, space),
118118
strip_space(bc′, space),
119-
us,
120119
mask,
121120
axes(out),
122121
)

0 commit comments

Comments
 (0)