Skip to content

Commit 456e3dc

Browse files
Disable type inference check in apply_stencil (#2281)
1 parent b18800b commit 456e3dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/src/operators.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ column_accumulate!
111111
## Internal APIs
112112

113113
```@docs
114+
getidx_return_type
115+
stencil_return_type
114116
return_eltype
115117
return_space
116118
stencil_interior_width

src/Operators/finitedifference.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4147,7 +4147,6 @@ Base.@propagate_inbounds function apply_stencil!(
41474147
hidx,
41484148
(li, lw, rw, ri) = window_bounds(space, bc),
41494149
)
4150-
T = getidx_return_type(bc)
41514150
if !Topologies.isperiodic(Spaces.vertical_topology(space))
41524151
# left window
41534152
lbw = LeftBoundaryWindow{Spaces.left_boundary_name(space)}()
@@ -4158,7 +4157,7 @@ Base.@propagate_inbounds function apply_stencil!(
41584157
end
41594158
# interior
41604159
@inbounds for idx in lw:rw
4161-
val = getidx(space, bc, Interior(), idx, hidx)::T
4160+
val = getidx(space, bc, Interior(), idx, hidx)
41624161
setidx!(space, field_out, idx, hidx, val)
41634162
end
41644163
if !Topologies.isperiodic(Spaces.vertical_topology(space))

0 commit comments

Comments
 (0)