Mercurial > repos > public > sbplib_julia
diff src/SbpOperators/volumeops/volume_operator.jl @ 834:a8d64785f51b operator_storage_array_of_table
Merge refactor/sbp_operators_method_signatures
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 13 Jan 2022 08:51:26 +0100 |
parents | ae28f1d7ef5e |
children | b41180efb6c2 469ed954b493 0a856fb96db4 |
line wrap: on
line diff
--- a/src/SbpOperators/volumeops/volume_operator.jl Wed Jan 12 16:03:48 2022 +0100 +++ b/src/SbpOperators/volumeops/volume_operator.jl Thu Jan 13 08:51:26 2022 +0100 @@ -9,14 +9,14 @@ operators and `IdentityMapping`s, e.g for `Dim=3` the volume operator in the y-direction is `I⊗op⊗I`. """ -function volume_operator(grid::EquidistantGrid{Dim,T}, inner_stencil, closure_stencils, parity, direction) where {Dim,T} +function volume_operator(grid::EquidistantGrid, inner_stencil, closure_stencils, parity, direction) #TODO: Check that direction <= Dim? # Create 1D volume operator in along coordinate direction op = VolumeOperator(restrict(grid, direction), inner_stencil, closure_stencils, parity) # Create 1D IdentityMappings for each coordinate direction - one_d_grids = restrict.(Ref(grid), Tuple(1:Dim)) - Is = IdentityMapping{T}.(size.(one_d_grids)) + one_d_grids = restrict.(Ref(grid), Tuple(1:dimension(grid))) + Is = IdentityMapping{eltype(grid)}.(size.(one_d_grids)) # Formulate the correct outer product sequence of the identity mappings and # the volume operator parts = Base.setindex(Is, op, direction)