diff sbpD2.jl @ 88:170e5447bc19 patch_based_test

Reduce allocations
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 25 Jan 2019 15:10:41 +0100
parents 7f72e7e14659
children c0729ade65da
line wrap: on
line diff
--- a/sbpD2.jl	Fri Jan 25 13:40:15 2019 +0100
+++ b/sbpD2.jl	Fri Jan 25 15:10:41 2019 +0100
@@ -15,7 +15,7 @@
     end
 
     for i ∈ range(innerEnd+1, length=cSize)
-        @inbounds u[i] = Int(op.parity)*apply(flip(op.closureStencils[N-i+1]), v, i)/h^2
+        @inbounds u[i] = Int(op.parity)*applybackwards(op.closureStencils[N-i+1], v, i)/h^2
     end
 
     return nothing