Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/derivatives/dissipation.jl @ 1021:ee5a641a8277 feature/dissipation_operators
Add some tests and start implementing dissipation()
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 18 Mar 2022 15:44:03 +0100 |
parents | 3f5137ce3aa1 |
children | 129262c8e897 |
comparison
equal
deleted
inserted
replaced
1020:3f5137ce3aa1 | 1021:ee5a641a8277 |
---|---|
1 function dissipation(g::EquidistantGrid, p, direction) | |
2 h_inv = inverse_spacing(g)[direction] | |
3 | |
4 # D = volume_operator(g,CenteredStencil(1),(CenteredStencil(1)), ) | |
5 return nothing, nothing | |
6 end | |
7 | |
8 dissipation(g::EquidistantGrid{1}, p) = dissipation(g, p, 1) | |
9 | |
1 function dissipation_interior_weights(p) | 10 function dissipation_interior_weights(p) |
2 if p == 0 | 11 if p == 0 |
3 return (1,) | 12 return (1,) |
4 end | 13 end |
5 | 14 |