Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/laplace/laplace.jl @ 962:1bb28e47990f feature/laplace_opset
Revew: Consider review comments for laplace(grid,...). Keeping the method separate (instead of inlining it) allows for users to create custom operators w.o. first defining a stencil set. Having both methods is also similar to how other types of operators can be constructed.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 14 Mar 2022 10:00:25 +0100 |
parents | 66e8faf4bb4b |
children | 7bf3121c6864 1ba8a398af9c |
comparison
equal
deleted
inserted
replaced
961:775d5513da8f | 962:1bb28e47990f |
---|---|
50 for d = 2:dimension(grid) | 50 for d = 2:dimension(grid) |
51 Δ += second_derivative(grid, inner_stencil, closure_stencils, d) | 51 Δ += second_derivative(grid, inner_stencil, closure_stencils, d) |
52 end | 52 end |
53 return Δ | 53 return Δ |
54 end | 54 end |
55 # REVIEW: Do we need this method? Couldn't it just be inlined in the constructor on :19? |