# HG changeset patch # User Tuomo Valkonen # Date 1574176315 18000 # Node ID cd3ca6286daa088d3cf52c06d296a42ed8fa8104 # Parent 29b38780d52bc6ee2d01a859d09a6561ac1544e1 For inlining to work we cannot do function assignments diff -r 29b38780d52b -r cd3ca6286daa src/Translate.jl --- a/src/Translate.jl Tue Nov 19 09:35:42 2019 -0500 +++ b/src/Translate.jl Tue Nov 19 10:11:55 2019 -0500 @@ -90,8 +90,6 @@ return v end -interpolate2d = interpolate2d_quadrants - ############## # Translation ############## @@ -102,7 +100,7 @@ @inbounds @simd for i=1:size(x, 1) @simd for j=1:size(x, 2) pt = (i - u[1, i, j], j - u[2, i, j]) - x[i, j] = interpolate2d(z, pt) + x[i, j] = interpolate2d_quadrants(z, pt) end end end @@ -113,7 +111,7 @@ @inbounds @simd for i=1:size(x, 1) @simd for j=1:size(x, 2) pt = (i - u[1], j - u[2]) - x[i, j] = interpolate2d(z, pt) + x[i, j] = interpolate2d_quadrants(z, pt) end end end @@ -140,7 +138,7 @@ @inbounds @simd for i=px:qx for j=py:qy - b[i, j] = interpolate2d(im, (i+vxʹ, j+vyʹ)) + b[i, j] = interpolate2d_quadrants(im, (i+vxʹ, j+vyʹ)) end end end