Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/derivatives/dissipation.jl @ 1087:423a6442efc3 feature/dissipation_operators
REVIEW: Address documentation
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Sun, 08 May 2022 12:15:32 +0200 |
parents | c89c6b63c7f4 |
children | 9f0121e465a5 |
comparison
equal
deleted
inserted
replaced
1078:879cca813cc6 | 1087:423a6442efc3 |
---|---|
1 # REVIEW: Add documentation. Also would it be more correct to | |
2 # call these undivided_differences instead of dissipation? | |
3 # If I understand it correctly, this method simply provides | |
4 # the operators required in order to compose a dissipation operator | |
5 # and the dissipation operator are formed by a linear combination | |
6 # of the products of Dáµ€ and D for different orders. | |
1 function undivided_dissipation(g::EquidistantGrid, p, direction) | 7 function undivided_dissipation(g::EquidistantGrid, p, direction) |
2 T = eltype(g) | 8 T = eltype(g) |
3 interior_weights = T.(dissipation_interior_weights(p)) | 9 interior_weights = T.(dissipation_interior_weights(p)) |
4 | 10 |
5 D = stencil_operator_distinct_closures( | 11 D = stencil_operator_distinct_closures( |