Skip to content

Commit 435c998

Browse files
committed
but what if 1D x is array?
1 parent bfadb0f commit 435c998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ end
248248
Returns an array, of the ArrayType of the device `grid` lives on, that contains the values of
249249
function `func` evaluated on the `grid`.
250250
"""
251-
on_grid(func, grid::OneDGrid) = func.(grid.x)
251+
on_grid(func, grid::OneDGrid) = CUDA.@allowscalar func.(grid.x)
252252

253253
function on_grid(func, grid::TwoDGrid)
254254
x, y = gridpoints(grid)

0 commit comments

Comments
 (0)