Mercurial > repos > public > sbplib_julia
diff diffOp.jl @ 112:98c788cba9bf cell_based_test
Rename the apply! that applies in regions to apply_region!
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 08 Feb 2019 21:14:39 +0100 |
parents | 18b86c33b35a |
children | 3b89aa6dc7f2 |
line wrap: on
line diff
--- a/diffOp.jl Fri Feb 08 20:56:13 2019 +0100 +++ b/diffOp.jl Fri Feb 08 21:14:39 2019 +0100 @@ -44,20 +44,20 @@ return nothing end -function apply!(D::DiffOpCartesian{2}, u::AbstractArray{T,2}, v::AbstractArray{T,2}) where T - apply!(D, u, v, Lower, Lower) - apply!(D, u, v, Lower, Interior) - apply!(D, u, v, Lower, Upper) - apply!(D, u, v, Interior, Lower) - apply!(D, u, v, Interior, Interior) - apply!(D, u, v, Interior, Upper) - apply!(D, u, v, Upper, Lower) - apply!(D, u, v, Upper, Interior) - apply!(D, u, v, Upper, Upper) +function apply_region!(D::DiffOpCartesian{2}, u::AbstractArray{T,2}, v::AbstractArray{T,2}) where T + apply_region!(D, u, v, Lower, Lower) + apply_region!(D, u, v, Lower, Interior) + apply_region!(D, u, v, Lower, Upper) + apply_region!(D, u, v, Interior, Lower) + apply_region!(D, u, v, Interior, Interior) + apply_region!(D, u, v, Interior, Upper) + apply_region!(D, u, v, Upper, Lower) + apply_region!(D, u, v, Upper, Interior) + apply_region!(D, u, v, Upper, Upper) return nothing end -function apply!(D::DiffOpCartesian{2}, u::AbstractArray{T,2}, v::AbstractArray{T,2}, r1::Type{<:Region}, r2::Type{<:Region}) where T +function apply_region!(D::DiffOpCartesian{2}, u::AbstractArray{T,2}, v::AbstractArray{T,2}, r1::Type{<:Region}, r2::Type{<:Region}) where T N = D.grid.numberOfPointsPerDim closuresize = closureSize(D.op) for I ∈ regionindices(N, closuresize, (r1,r2))