changeset 1773:08e52f442872 feature/grids/curvilinear

Replace AbstractArray{<:Any,2} with AbstractMatrix{<:Any}
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 15 Sep 2024 18:00:40 +0200
parents 672897f64d58
children 035af82f559a
files src/Grids/mapped_grid.jl
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/Grids/mapped_grid.jl	Fri Sep 13 13:35:20 2024 -0700
+++ b/src/Grids/mapped_grid.jl	Sun Sep 15 18:00:40 2024 +0200
@@ -7,7 +7,7 @@
 
 See also: [`logicalgrid`](@ref), [`jacobian`](@ref), [`metric_tensor`](@ref).
 """
-struct MappedGrid{T,D, GT<:Grid{<:Any,D}, CT<:AbstractArray{T,D}, JT<:AbstractArray{<:AbstractArray{<:Any, 2}, D}} <: Grid{T,D}
+struct MappedGrid{T,D, GT<:Grid{<:Any,D}, CT<:AbstractArray{T,D}, JT<:AbstractArray{<:AbstractMatrix{<:Any}, D}} <: Grid{T,D}
     logicalgrid::GT
     physicalcoordinates::CT
     jacobian::JT
@@ -17,7 +17,7 @@
 
     A MappedGrid with the given physical coordinates and jacobian.
     """
-    function MappedGrid(logicalgrid::GT, physicalcoordinates::CT, jacobian::JT) where {T,D, GT<:Grid{<:Any,D}, CT<:AbstractArray{T,D}, JT<:AbstractArray{<:AbstractArray{<:Any, 2}, D}}
+    function MappedGrid(logicalgrid::GT, physicalcoordinates::CT, jacobian::JT) where {T,D, GT<:Grid{<:Any,D}, CT<:AbstractArray{T,D}, JT<:AbstractArray{<:AbstractMatrix{<:Any}, D}}
         if !(size(logicalgrid) == size(physicalcoordinates) == size(jacobian))
             throw(ArgumentError("Sizes must match"))
         end