Skip to content

Commit e659eac

Browse files
author
marinlauber
committed
fix test
1 parent feadfd5 commit e659eac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/maintests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ using ReadVTK, WriteVTK
8181
@test GPUArrays.@allowscalar all(u[:,:,1,3] .≈ tan(-1π/16)) && all(u[:,:,2,3] .≈ tan(0)) && all(u[:,:,end,3].-tan(6π/16).<1e-6)
8282

8383
# test interpolation
84-
a = zeros(5,5,2) |> f; b = zeros(5,5) |> f
85-
apply!((i,x)->x[i]+1.5,a); apply!(x->x[1]+1.5,b) # offset for start of grid
84+
a = zeros(8,8,2) |> f; b = zeros(8,8) |> f
85+
apply!((i,x)->x[i],a); apply!(x->x[1],b) # offset for start of grid
8686
@test GPUArrays.@allowscalar all(WaterLily.interp(SVector(2.5,1),a) .≈ [2.5,1.])
8787
@test GPUArrays.@allowscalar all(WaterLily.interp(SVector(3.5,3),a) .≈ [3.5,3.])
8888
@test GPUArrays.@allowscalar WaterLily.interp(SVector(2.5,1),b) 2.5

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Test
33
using StaticArrays
44

55
check_compiler(compiler,parse_str) = try occursin(parse_str, read(`$compiler --version`, String)) catch _ false end
6-
_cuda = true #check_compiler("nvcc","release")
6+
_cuda = check_compiler("nvcc","release")
77
_rocm = check_compiler("hipcc","version")
88
_cuda && using CUDA
99
_rocm && using AMDGPU

0 commit comments

Comments
 (0)