changeset 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 88e738d807cb
children 1e8fbe55916e
files src/Grids/grid.jl src/Grids/tensor_grid.jl
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
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
--- a/src/Grids/tensor_grid.jl	Wed Nov 29 09:14:06 2023 +0100
+++ b/src/Grids/tensor_grid.jl	Wed Nov 29 09:18:18 2023 +0100
@@ -73,7 +73,6 @@
     return LazyTensors.concatenate_tuples(per_grid...)
 end
 
-
 """
     boundary_grid(g::TensorGrid, id::TensorGridBoundary)
 
@@ -85,7 +84,6 @@
     return TensorGrid(new_grids...)
 end
 
-
 function boundary_indices(g::TensorGrid, id::TensorGridBoundary)
     per_grid_ind = map(g.grids) do g
         ntuple(i->:, ndims(g))