comparison src/Grids/geometry.jl @ 2072:c36812de3f2d feature/grids/geometry_functions

Add parameter validation when evaluating jacobian for transfinite interpolation
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 17 Feb 2026 20:40:21 +0100
parents 9e9c56f5a656
children bc09d0bfac65
comparison
equal deleted inserted replaced
2071:9e9c56f5a656 2072:c36812de3f2d
304 304
305 return true 305 return true
306 end 306 end
307 307
308 function Grids.jacobian(s::TransfiniteInterpolationSurface, ξ̄) 308 function Grids.jacobian(s::TransfiniteInterpolationSurface, ξ̄)
309 if ξ̄ ∉ unitsquare()
310 throw(DomainError(ξ̄, "Transfinite interpolation was called with parameters outside the unit square."))
311 end
309 u, v = ξ̄ 312 u, v = ξ̄
310 313
311 c₁, c₂, c₃, c₄ = s.c₁, s.c₂, s.c₃, s.c₄ 314 c₁, c₂, c₃, c₄ = s.c₁, s.c₂, s.c₃, s.c₄
312 P₀₀ = c₁(0) 315 P₀₀ = c₁(0)
313 P₁₀ = c₂(0) 316 P₁₀ = c₂(0)