Mercurial > repos > public > sbplib
view +parametrization/equal_step_size.m @ 672:82024d32e333 feature/d1_staggered
Correct char BC in staggered acoustics 1D variable coeff.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 27 Dec 2017 21:16:06 +0100 |
parents | 3a3cf386bb7e |
children |
line wrap: on
line source
% Calculates M so that the stepsize m/M is as close to n/M as possible function M = equal_step_size(n,N,m) M = round((m*(N-1)+n)/n); end