comparison src/Grids/mapped_grid.jl @ 1750:e2abd72d7ce0 feature/grids/manifolds

Merge feature/grids/curvilinear
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 11 Sep 2024 15:44:20 +0200
parents 03894fd7b132 e4353d5e8fc3
children 819ab806960f
comparison
equal deleted inserted replaced
1748:03894fd7b132 1750:e2abd72d7ce0
21 if !(size(logicalgrid) == size(physicalcoordinates) == size(jacobian)) 21 if !(size(logicalgrid) == size(physicalcoordinates) == size(jacobian))
22 throw(ArgumentError("Sizes must match")) 22 throw(ArgumentError("Sizes must match"))
23 end 23 end
24 24
25 if size(first(jacobian)) != (length(first(physicalcoordinates)),D) 25 if size(first(jacobian)) != (length(first(physicalcoordinates)),D)
26 @show size(first(jacobian))
27 @show (length(first(physicalcoordinates)),D)
28 throw(ArgumentError("The size of the jacobian must match the dimensions of the grid and coordinates")) 26 throw(ArgumentError("The size of the jacobian must match the dimensions of the grid and coordinates"))
29 end 27 end
30 28
31 return new{T,D,GT,CT,JT}(logicalgrid, physicalcoordinates, jacobian) 29 return new{T,D,GT,CT,JT}(logicalgrid, physicalcoordinates, jacobian)
32 end 30 end