Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/volume_operator.jl @ 1103:0a856fb96db4 laplace_benchmarks
Remove blank line
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 13 May 2022 14:27:36 +0200 |
parents | ae28f1d7ef5e |
children |
comparison
equal
deleted
inserted
replaced
876:4f3924293894 | 1103:0a856fb96db4 |
---|---|
9 operators and `IdentityMapping`s, e.g for `Dim=3` the volume operator in the | 9 operators and `IdentityMapping`s, e.g for `Dim=3` the volume operator in the |
10 y-direction is `I⊗op⊗I`. | 10 y-direction is `I⊗op⊗I`. |
11 """ | 11 """ |
12 function volume_operator(grid::EquidistantGrid, inner_stencil, closure_stencils, parity, direction) | 12 function volume_operator(grid::EquidistantGrid, inner_stencil, closure_stencils, parity, direction) |
13 #TODO: Check that direction <= Dim? | 13 #TODO: Check that direction <= Dim? |
14 | |
15 # Create 1D volume operator in along coordinate direction | 14 # Create 1D volume operator in along coordinate direction |
16 op = VolumeOperator(restrict(grid, direction), inner_stencil, closure_stencils, parity) | 15 op = VolumeOperator(restrict(grid, direction), inner_stencil, closure_stencils, parity) |
17 # Create 1D IdentityMappings for each coordinate direction | 16 # Create 1D IdentityMappings for each coordinate direction |
18 one_d_grids = restrict.(Ref(grid), Tuple(1:dimension(grid))) | 17 one_d_grids = restrict.(Ref(grid), Tuple(1:dimension(grid))) |
19 Is = IdentityMapping{eltype(grid)}.(size.(one_d_grids)) | 18 Is = IdentityMapping{eltype(grid)}.(size.(one_d_grids)) |