comparison src/Grids/geometry.jl @ 1982:486b3c6f919e feature/grids/geometry_functions

Throw better error type for transfinite interpolation check
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 26 Feb 2025 22:50:26 +0100
parents db3383581b9f
children 730c9848ad0b
comparison
equal deleted inserted replaced
1981:ea04a542a526 1982:486b3c6f919e
189 """ 189 """
190 function check_transfiniteinterpolation(s::TransfiniteInterpolationSurface) 190 function check_transfiniteinterpolation(s::TransfiniteInterpolationSurface)
191 if check_transfiniteinterpolation(Bool, s) 191 if check_transfiniteinterpolation(Bool, s)
192 return nothing 192 return nothing
193 else 193 else
194 error("The end of each curve in the transfinite interpolation should be the same as the beginning of the next curve.") 194 throw(ArgumentError("The end of each curve in the transfinite interpolation should be the same as the beginning of the next curve."))
195 end 195 end
196 end 196 end
197 197
198 """ 198 """
199 check_transfiniteinterpolation(::Type{Bool}, s::TransfiniteInterpolationSurface) 199 check_transfiniteinterpolation(::Type{Bool}, s::TransfiniteInterpolationSurface)