Skip to content

Commit

Permalink
but what if 1D x is array?
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Mar 6, 2021
1 parent bfadb0f commit 435c998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ end
Returns an array, of the ArrayType of the device `grid` lives on, that contains the values of
function `func` evaluated on the `grid`.
"""
on_grid(func, grid::OneDGrid) = func.(grid.x)
on_grid(func, grid::OneDGrid) = CUDA.@allowscalar func.(grid.x)

function on_grid(func, grid::TwoDGrid)
x, y = gridpoints(grid)
Expand Down

0 comments on commit 435c998

Please sign in to comment.