Mercurial > repos > public > sbplib
comparison +sbp/+implementations/d4_compatible_halfvariable_4.m @ 266:bfa130b7abf6 operator_remake
Added error message for too few grid points to all implementation files.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Fri, 09 Sep 2016 11:03:13 +0200 |
parents | 6009f2712d13 |
children | f7ac3cd6eeaa |
comparison
equal
deleted
inserted
replaced
265:3e0432b3cb68 | 266:bfa130b7abf6 |
---|---|
10 | 10 |
11 | 11 |
12 %m=20; %problemstorlek | 12 %m=20; %problemstorlek |
13 %h=1/(m-1); | 13 %h=1/(m-1); |
14 %h=1; | 14 %h=1; |
15 | |
16 BP = 4; | |
17 if(m<2*BP) | |
18 error(['Operator requires at least ' num2str(2*BP) ' grid points']); | |
19 end | |
15 | 20 |
16 c=ones(m,1); | 21 c=ones(m,1); |
17 | 22 |
18 | 23 |
19 H=diag(ones(m,1),0); | 24 H=diag(ones(m,1),0); |