Mercurial > repos > public > sbplib
comparison +sbp/+implementations/d2_variable_4.m @ 832:5573913a0949 feature/burgers1d
Merged with default, and updated +scheme/Burgers1D accordingly
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 11 Sep 2018 15:58:35 +0200 |
parents | 43d02533bea3 |
children | b758d1cf4c8e |
comparison
equal
deleted
inserted
replaced
831:d0934d1143b7 | 832:5573913a0949 |
---|---|
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 |