changeset 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 dc0ef82e3ec7
children 546ee16760d5
files +multiblock/Grid.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
diff -r dc0ef82e3ec7 -r ce422ba8964e +multiblock/Grid.m
--- a/+multiblock/Grid.m	Sun Jun 07 11:26:40 2020 -0700
+++ b/+multiblock/Grid.m	Sun Jun 07 11:28:22 2020 -0700
@@ -176,16 +176,16 @@
         end
 
         % Return coordinates for the given boundary/boundaryGroup
-        function b = getBoundary(obj, boundary)
+        function b = getBoundary(obj, boundary, varargin)
             switch class(boundary)
                 case 'cell'
                     I = boundary{1};
                     name = boundary{2};
-                    b = obj.grids{I}.getBoundary(name);
+                    b = obj.grids{I}.getBoundary(name, varargin{:});
                 case 'multiblock.BoundaryGroup'
                     b = sparse(0,obj.D());
                     for i = 1:length(boundary)
-                        b = [b; obj.getBoundary(boundary{i})];
+                        b = [b; obj.getBoundary(boundary{i}, varargin{:})];
                     end
                 otherwise
                     error('Unknown boundary indentifier')