comparison src/Grids/mapped_grid.jl @ 1736:863385aae454 feature/grids/curvilinear

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 10 Sep 2024 21:59:10 +0200
parents 11640aa3e348
children 248304f88e49
comparison
equal deleted inserted replaced
1735:36986b75bf98 1736:863385aae454
138 σ*∂ξ∂x[k,:]/norm(∂ξ∂x[k,:]) 138 σ*∂ξ∂x[k,:]/norm(∂ξ∂x[k,:])
139 end 139 end
140 end 140 end
141 141
142 function _boundary_sign(T, boundary) 142 function _boundary_sign(T, boundary)
143 if boundary_id(boundary) == Upper() 143 if boundary_id(boundary) == UpperBoundary()
144 return one(T) 144 return one(T)
145 elseif boundary_id(boundary) == Lower() 145 elseif boundary_id(boundary) == LowerBoundary()
146 return -one(T) 146 return -one(T)
147 else 147 else
148 throw(ArgumentError("The boundary identifier must be either `Lower()` or `Upper()`")) 148 throw(ArgumentError("The boundary identifier must be either `LowerBoundary()` or `UpperBoundary()`"))
149 end 149 end
150 end 150 end