Mercurial > repos > public > sbplib
changeset 1078:532b58a9e849
Bugfix in multiblock.domain.Line method getGrid.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 20 Feb 2019 12:32:49 -0800 |
parents | 360280a55ae8 |
children | ae4b090b5299 |
files | +multiblock/+domain/Line.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
diff -r 360280a55ae8 -r 532b58a9e849 +multiblock/+domain/Line.m --- a/+multiblock/+domain/Line.m Wed Feb 13 20:56:24 2019 +0100 +++ b/+multiblock/+domain/Line.m Wed Feb 20 12:32:49 2019 -0800 @@ -65,7 +65,7 @@ % Returns a multiblock.Grid given some parameters - % ms: cell array of m values + % ms: cell array of m values % For same m in every block, just input one scalar. function g = getGrid(obj, ms, varargin) @@ -82,14 +82,14 @@ grids = cell(1, obj.nBlocks); for i = 1:obj.nBlocks - grids{i} = grid.equidistant(ms{i}, obj.xlims{i}, obj.ylims{i}); + grids{i} = grid.equidistant(ms{i}, obj.xlims{i}); end g = multiblock.Grid(grids, obj.connections, obj.boundaryGroups); end % Returns a multiblock.Grid given some parameters - % ms: cell array of m values + % ms: cell array of m values % For same m in every block, just input one scalar. function g = getStaggeredGrid(obj, ms, varargin) @@ -124,7 +124,7 @@ x = linspace(obj.xlims{i}{1}, obj.xlims{i}{2}, m); y = 0*x + 0.05* ( (-1)^i + 1 ) ; plot(x,y,'+'); - hold on + hold on end hold off