Mercurial > repos > public > sbplib_julia
diff src/SbpOperators/boundaryops/boundary_operator.jl @ 1114:fc57804c9bf4 feature/grids
Add function dims
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 15 Jul 2022 09:38:08 +0200 |
parents | 1ba8a398af9c |
children | 5ddf5ae48391 |
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/boundary_operator.jl Thu Jul 14 18:33:36 2022 +0200 +++ b/src/SbpOperators/boundaryops/boundary_operator.jl Fri Jul 15 09:38:08 2022 +0200 @@ -18,7 +18,7 @@ op = BoundaryOperator(restrict(grid, d), closure_stencil, r) # Create 1D IdentityTensors for each coordinate direction - one_d_grids = restrict.(Ref(grid), Tuple(1:dimension(grid))) + one_d_grids = restrict.(Ref(grid), Tuple(dims(grid))) Is = IdentityTensor{eltype(grid)}.(size.(one_d_grids)) # Formulate the correct outer product sequence of the identity mappings and