Mercurial > repos > public > sbplib_julia
comparison SbpOperators/src/constantstenciloperator.jl @ 253:396eadb652bd boundary_conditions
Rename function closureSize to closuresize
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 27 Jun 2019 16:05:26 +0200 |
parents | 7cb4492ccd60 |
children | ccef055233a2 |
comparison
equal
deleted
inserted
replaced
252:9405c19b76bc | 253:396eadb652bd |
---|---|
15 N = length(v) | 15 N = length(v) |
16 return @inbounds h*h*Int(op.parity)*apply_backwards(op.closureStencils[N-Int(i)+1], v, Int(i)) | 16 return @inbounds h*h*Int(op.parity)*apply_backwards(op.closureStencils[N-Int(i)+1], v, Int(i)) |
17 end | 17 end |
18 | 18 |
19 @inline function apply(op::ConstantStencilOperator, h::Real, v::AbstractVector, index::Index{Unknown}) | 19 @inline function apply(op::ConstantStencilOperator, h::Real, v::AbstractVector, index::Index{Unknown}) |
20 cSize = closureSize(op) | 20 cSize = closuresize(op) |
21 N = length(v) | 21 N = length(v) |
22 | 22 |
23 i = Int(index) | 23 i = Int(index) |
24 | 24 |
25 if 0 < i <= cSize | 25 if 0 < i <= cSize |