diff src/SbpOperators/boundaryops/boundary_restriction.jl @ 2042:5fb64e42138c bugfix/zero_dim_grid_boundary_ops

Add implementation of boundary_restriction for ZeroDimGrid throwing an error
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Feb 2026 22:22:25 +0100
parents 08f06bfacd5c
children
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/boundary_restriction.jl	Thu Feb 05 22:20:55 2026 +0100
+++ b/src/SbpOperators/boundaryops/boundary_restriction.jl	Thu Feb 05 22:22:25 2026 +0100
@@ -25,3 +25,5 @@
     converted_stencil = convert(Stencil{eltype(g)}, closure_stencil)
     return BoundaryOperator(g, converted_stencil, boundary)
 end
+
+boundary_restriction(::ZeroDimGrid, stencil_set::StencilSet, boundary) = throw(ArgumentError("ZeroDimGrid has no boundaries"))