Mercurial > repos > public > sbplib
view +util/get_periodic_grid.m @ 1342:d1dad4fbfe22 feature/D2_boundary_opt
Add support for glue interpolation operators, and separate wave speeds across interfaces
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 26 Aug 2022 14:19:29 +0200 |
parents | 0666629aa183 |
children |
line wrap: on
line source
% Returns the 1D periodic grid where the last grid point at x_r % is omitted (it is the same as the the first grid point at x_l) function [x,h] = get_periodic_grid(x_l,x_r,m) L = x_r-x_l; h = L/m; x = linspace(x_l,x_r,m+1)'; x = x(1:end-1); end