Mercurial > repos > public > sbplib
comparison +sbp/+implementations/d1_noneq_10.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 |
---|---|
2 | 2 |
3 % L: Domain length | 3 % L: Domain length |
4 % N: Number of grid points | 4 % N: Number of grid points |
5 if(nargin < 2) | 5 if(nargin < 2) |
6 L = 1; | 6 L = 1; |
7 end | |
8 | |
9 if(N<20) | |
10 error('Operator requires at least 20 grid points'); | |
7 end | 11 end |
8 | 12 |
9 % BP: Number of boundary points | 13 % BP: Number of boundary points |
10 % m: Number of nonequidistant spacings | 14 % m: Number of nonequidistant spacings |
11 % order: Accuracy of interior stencil | 15 % order: Accuracy of interior stencil |