Mercurial > repos > public > sbplib
view operator_def/assemble_boundary_op.m @ 830:e15a667ffde2 feature/operator_files
Add quadrature stencils and operator assembly. Add tests
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 10 Sep 2018 19:27:27 +0200 |
parents | ed8d34894589 |
children |
line wrap: on
line source
function [op_l, op_r] = assemble_boundary_op(op,m) l = length(op); op_l = sparse(m,1); op_l(1:l) = op; op_r = sparse(m,1); op_r(m-l+1:m) = fliplr(op); end