Skip to content

Commit 17cc127

Browse files
committed
but tests need CUDA.@allowscalar also
1 parent 13f3472 commit 17cc127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,5 @@ function test_ongrid(dev::Device)
157157
X₃, Y₃, Z₃ = gridpoints(g₃)
158158
f₃(x, y, z) = x^2 - y^3 + sin(z)
159159

160-
return (FourierFlows.on_grid(f₁, g₁) == f₁.(X₁) && FourierFlows.on_grid(f₂, g₂) == f₂.(X₂, Y₂) && FourierFlows.on_grid(f₃, g₃) == f₃.(X₃, Y₃, Z₃))
160+
return (FourierFlows.on_grid(f₁, g₁) == CUDA.@allowscalar f₁.(X₁) && FourierFlows.on_grid(f₂, g₂) == CUDA.@allowscalar f₂.(X₂, Y₂) && FourierFlows.on_grid(f₃, g₃) == CUDA.@allowscalar f₃.(X₃, Y₃, Z₃))
161161
end

0 commit comments

Comments
 (0)