diff --git a/Project.toml b/Project.toml index 42a71cf1..d9c80d39 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ExtendableGrids" uuid = "cfc395e8-590f-11e8-1f13-43a2532b2fa8" authors = ["Juergen Fuhrmann ", "Christian Merdon ", "Johannes Taraz "] -version = "1.10.1" +version = "1.10.2" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" diff --git a/src/cellfinder.jl b/src/cellfinder.jl index 0f7bb8bd..d33df728 100644 --- a/src/cellfinder.jl +++ b/src/cellfinder.jl @@ -18,25 +18,25 @@ struct CellFinder{Tv,Ti} end ## postprocessing function that calcualte conditions to decide over which face to go next -function postprocess_xreftest!(xreftest::Array{Tv}, ::Type{<:Edge1D}) where {Tv} +function postprocess_xreftest!(xreftest::AbstractArray{Tv}, ::Type{<:Edge1D}) where {Tv} xreftest[2] = 1 - xreftest[1] return nothing end -function postprocess_xreftest!(xreftest::Array{Tv}, ::Type{<:Triangle2D}) where {Tv} +function postprocess_xreftest!(xreftest::AbstractArray{Tv}, ::Type{<:Triangle2D}) where {Tv} xreftest[3] = 1 - xreftest[1] - xreftest[2] return nothing end -function postprocess_xreftest!(xreftest::Array{Tv}, ::Type{<:Tetrahedron3D}) where {Tv} +function postprocess_xreftest!(xreftest::AbstractArray{Tv}, ::Type{<:Tetrahedron3D}) where {Tv} xreftest[4] = 1 - xreftest[1] - xreftest[2] - xreftest[3] return nothing end -function postprocess_xreftest!(xreftest::Array{Tv}, ::Type{<:Parallelogram2D}) where {Tv} +function postprocess_xreftest!(xreftest::AbstractArray{Tv}, ::Type{<:Parallelogram2D}) where {Tv} xreftest[3] = 1 - xreftest[1] xreftest[4] = 1 - xreftest[2] return nothing end -function postprocess_xreftest!(xreftest::Array{Tv}, ::Type{<:Parallelepiped3D}) where {Tv} +function postprocess_xreftest!(xreftest::AbstractArray{Tv}, ::Type{<:Parallelepiped3D}) where {Tv} xreftest[4] = 1 - xreftest[1] xreftest[5] = 1 - xreftest[2] xreftest[6] = 1 - xreftest[3]