Mercurial > repos > public > sbplib
comparison +multiblock/Grid.m @ 1278:ce422ba8964e feature/poroelastic
Add extra input pars to multiblock/Grid.getBoundary(), to be able to use the Staggered getBoundary method
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sun, 07 Jun 2020 11:28:22 -0700 |
parents | 67228a10dfad |
children |
comparison
equal
deleted
inserted
replaced
1277:dc0ef82e3ec7 | 1278:ce422ba8964e |
---|---|
174 end | 174 end |
175 end | 175 end |
176 end | 176 end |
177 | 177 |
178 % Return coordinates for the given boundary/boundaryGroup | 178 % Return coordinates for the given boundary/boundaryGroup |
179 function b = getBoundary(obj, boundary) | 179 function b = getBoundary(obj, boundary, varargin) |
180 switch class(boundary) | 180 switch class(boundary) |
181 case 'cell' | 181 case 'cell' |
182 I = boundary{1}; | 182 I = boundary{1}; |
183 name = boundary{2}; | 183 name = boundary{2}; |
184 b = obj.grids{I}.getBoundary(name); | 184 b = obj.grids{I}.getBoundary(name, varargin{:}); |
185 case 'multiblock.BoundaryGroup' | 185 case 'multiblock.BoundaryGroup' |
186 b = sparse(0,obj.D()); | 186 b = sparse(0,obj.D()); |
187 for i = 1:length(boundary) | 187 for i = 1:length(boundary) |
188 b = [b; obj.getBoundary(boundary{i})]; | 188 b = [b; obj.getBoundary(boundary{i}, varargin{:})]; |
189 end | 189 end |
190 otherwise | 190 otherwise |
191 error('Unknown boundary indentifier') | 191 error('Unknown boundary indentifier') |
192 end | 192 end |
193 end | 193 end |