diff src/Grids/grid.jl @ 1466:de4e15924d26 feature/grids/boundary_indicies

Move def of boundary_indices, remove some new lines
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 29 Nov 2023 09:18:18 +0100
parents 455e6b4c8b02
children 07882e390ff5
line wrap: on
line diff
--- a/src/Grids/grid.jl	Wed Nov 29 09:14:06 2023 +0100
+++ b/src/Grids/grid.jl	Wed Nov 29 09:18:18 2023 +0100
@@ -74,6 +74,15 @@
 # TBD: Can we implement a version here that accepts multiple ids and grouped boundaries? Maybe we need multiblock stuff?
 
 """
+    boundary_indices(g::Grid, id::BoundaryIdentifier)
+
+A collection of indices corresponding to the boundary with given id. The
+collection should be usable to index grid functions on the grid to obtain grid
+functions on the boundary grid.
+"""
+function boundary_indices end
+
+"""
     eval_on(g::Grid, f)
 
 Lazy evaluation of `f` on the grid. `f` can either be on the form `f(x,y,...)`
@@ -101,11 +110,4 @@
 _ncomponents(::Type{<:Number}) = 1
 _ncomponents(T::Type{<:SVector}) = length(T)
 
-"""
-    boundary_indices(g::Grid, id::BoundaryIdentifier)
 
-A collection of indices corresponding to the boundary with given id. The
-collection should be usable to index grid functions on the grid to obtain grid
-functions on the boundary grid.
-"""
-function boundary_indices end