Mercurial > repos > public > sbplib
comparison +sbp/+implementations/d2_variable_4.m @ 341:43d02533bea3 feature/beams
Fixed error in boundary point check.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 04 Nov 2016 11:12:47 -0700 |
parents | f18142c1530b |
children | b758d1cf4c8e |
comparison
equal
deleted
inserted
replaced
340:25ae8333ce2b | 341:43d02533bea3 |
---|---|
1 function [H, HI, D1, D2, e_l, e_r, d1_l, d1_r] = d2_variable_4(m,h) | 1 function [H, HI, D1, D2, e_l, e_r, d1_l, d1_r] = d2_variable_4(m,h) |
2 | 2 |
3 BP = 4; | 3 BP = 6; |
4 if(m<2*BP) | 4 if(m<2*BP) |
5 error(['Operator requires at least ' num2str(2*BP) ' grid points']); | 5 error(['Operator requires at least ' num2str(2*BP) ' grid points']); |
6 end | 6 end |
7 | 7 |
8 | 8 |