Mercurial > repos > public > sbplib
comparison +scheme/Euler1d.m @ 1049:0c504a21432d feature/getBoundaryOp
Add getBoundaryQuadrature to all 1d diffOps
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 22 Jan 2019 11:17:28 -0800 |
parents | 2b1b944deae1 |
children |
comparison
equal
deleted
inserted
replaced
1048:adbb80e60b10 | 1049:0c504a21432d |
---|---|
516 varargout{i} = E; | 516 varargout{i} = E; |
517 end | 517 end |
518 end | 518 end |
519 end | 519 end |
520 | 520 |
521 % Returns square boundary quadrature matrix, of dimension | |
522 % corresponding to the number of boundary points | |
523 % | |
524 % boundary -- string | |
525 % Note: for 1d diffOps, the boundary quadrature is the scalar 1. | |
526 function H_b = getBoundaryQuadrature(obj, boundary) | |
527 assertIsMember(boundary, {'l', 'r'}) | |
528 | |
529 H_b = 1; | |
530 end | |
531 | |
521 % Returns the boundary sign. The right boundary is considered the positive boundary | 532 % Returns the boundary sign. The right boundary is considered the positive boundary |
522 % boundary -- string | 533 % boundary -- string |
523 function s = getBoundarySign(obj, boundary) | 534 function s = getBoundarySign(obj, boundary) |
524 switch boundary | 535 switch boundary |
525 case {'r'} | 536 case {'r'} |