Mercurial > repos > public > sbplib
diff +multiblock/+domain/Rectangle.m @ 1296:2853b655c172 feature/boundary_optimized_grids
Fix typos in comments
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 07 Jul 2020 16:00:24 +0200 |
parents | b0208b130880 |
children | e53b1e25970a |
line wrap: on
line diff
--- a/+multiblock/+domain/Rectangle.m Wed Jul 01 17:34:40 2020 +0200 +++ b/+multiblock/+domain/Rectangle.m Tue Jul 07 16:00:24 2020 +0200 @@ -93,7 +93,7 @@ N_id = flat_index(m,j,1); S{j} = {S_id,'s'}; N{j} = {N_id,'n'}; - end + end boundaryGroups.E = multiblock.BoundaryGroup(E); boundaryGroups.W = multiblock.BoundaryGroup(W); boundaryGroups.S = multiblock.BoundaryGroup(S); @@ -117,19 +117,19 @@ % Returns a multiblock.Grid given some parameters % ms: cell array of [mx, my] vectors % For same [mx, my] in every block, just input one vector. - % Currently defaults to equidistant grid if varargin is empty. - % If varargin is non-empty, the first argument should supply the grid, followed by + % Currently defaults to equidistant grid if varargin is empty. + % If varargin is non-empty, the first argument should supply the grid type, followed by % additional arguments required to construct the grid. % Grid types: % 'equidist' - equidistant grid % Additional argumets: none - % 'boundaryopt' - boundary optimized grid based on boundary + % 'boundaryopt' - boundary optimized grid based on boundary % optimized SBP operators % Additional arguments: order, stencil option % Example: g = getGrid() - the local blocks are 21x21 equidistant grids. % g = getGrid(ms,) - block i is an equidistant grid with size given by ms{i}. % g = getGrid(ms,'equidist') - block i is an equidistant grid with size given by ms{i}. - % g = getGrid(ms,'boundaryopt',4,'minimal') - block i is an cartesian grid with size given by ms{i} + % g = getGrid(ms,'boundaryopt',4,'minimal') - block i is a Cartesian grid with size given by ms{i} % and nodes placed according to the boundary optimized minimal 4th order SBP operator. function g = getGrid(obj, ms, varargin)