diff src/SbpOperators/boundaryops/normal_derivative.jl @ 2054:c08bc343d1cd feature/sbp_operators/laplace_curvilinear

Merge feature/grids/geometry_functions
author Jonatan Werpers <jonatan@werpers.com>
date Sat, 07 Feb 2026 22:54:36 +0100
parents 627d94d0f333 0e93fc7fb2e2
children
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/normal_derivative.jl	Fri Feb 06 17:35:25 2026 +0100
+++ b/src/SbpOperators/boundaryops/normal_derivative.jl	Sat Feb 07 22:54:36 2026 +0100
@@ -29,6 +29,8 @@
     return BoundaryOperator(g, scaled_stencil, boundary)
 end
 
+normal_derivative(::ZeroDimGrid, stencil_set::StencilSet, boundary) = throw(ArgumentError("ZeroDimGrid has no boundaries"))
+
 function normal_derivative(g::MappedGrid, stencil_set::StencilSet, boundary)
     k = grid_id(boundary)
     b_indices = boundary_indices(g, boundary)