comparison src/SbpOperators/boundaryops/normal_derivative.jl @ 2043:0e93fc7fb2e2 bugfix/zero_dim_grid_boundary_ops

Add implementation of normal_derivative for ZeroDimGrid throwing and error
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Feb 2026 22:23:19 +0100
parents 08f06bfacd5c
children
comparison
equal deleted inserted replaced
2042:5fb64e42138c 2043:0e93fc7fb2e2
26 h_inv = inverse_spacing(g) 26 h_inv = inverse_spacing(g)
27 27
28 scaled_stencil = scale(closure_stencil,h_inv) 28 scaled_stencil = scale(closure_stencil,h_inv)
29 return BoundaryOperator(g, scaled_stencil, boundary) 29 return BoundaryOperator(g, scaled_stencil, boundary)
30 end 30 end
31
32 normal_derivative(::ZeroDimGrid, stencil_set::StencilSet, boundary) = throw(ArgumentError("ZeroDimGrid has no boundaries"))