Mercurial > repos > public > sbplib
diff +grid/lebedev2d.m @ 1273:cf542444f022 feature/poroelastic
Correct error messages in lebedev2d
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Mon, 01 Jun 2020 19:00:31 -0700 |
parents | 117bc4542b61 |
children |
line wrap: on
line diff
--- a/+grid/lebedev2d.m Sun May 31 21:59:09 2020 -0700 +++ b/+grid/lebedev2d.m Mon Jun 01 19:00:31 2020 -0700 @@ -11,19 +11,19 @@ default_arg('opSet', @(m,lim) sbp.D1StaggeredUpwind(m,lim,2)); if ~iscell(xlims) || numel(xlims) ~= 2 - error('grid:primalDual2D:InvalidLimits','The limits should be cell arrays with 2 elements.'); + error('grid:lebedev2D:InvalidLimits','The limits should be cell arrays with 2 elements.'); end if ~iscell(ylims) || numel(ylims) ~= 2 - error('grid:primalDual2D:InvalidLimits','The limits should be cell arrays with 2 elements.'); + error('grid:lebedev2D:InvalidLimits','The limits should be cell arrays with 2 elements.'); end if xlims{1} > xlims{2} - error('grid:primalDual2D:InvalidLimits','The elements of the limit must be increasing.'); + error('grid:lebedev2D:InvalidLimits','The elements of the limit must be increasing.'); end if ylims{1} > ylims{2} - error('grid:primalDual2D:InvalidLimits','The elements of the limit must be increasing.'); + error('grid:lebedev2D:InvalidLimits','The elements of the limit must be increasing.'); end opsX = opSet(m(1), xlims);