comparison +multiblock/BoundaryGroup.m @ 528:6712655953d3 feature/boundaryGroup

Give BoundaryGroup a better printing method
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 03 Aug 2017 14:07:56 +0200
parents d8833f0a9f1a
children
comparison
equal deleted inserted replaced
527:763d50caddf3 528:6712655953d3
1 % BoundaryGroup defines a boundary grouping in a multiblock grid. 1 % BoundaryGroup defines a boundary grouping in a multiblock grid.
2 % It workds like a cell array and collects boundary identifiers
3 % Within the multiblock package a BoundaryGroup is a valid boundary identifier as well.
2 classdef BoundaryGroup < Cell 4 classdef BoundaryGroup < Cell
3 methods 5 methods
4 function obj = BoundaryGroup(data) 6 function obj = BoundaryGroup(data)
5 obj = obj@Cell(data); 7 obj = obj@Cell(data);
6 end 8 end
7 9
8 % function display(obj, name) 10 function display(obj, name)
9 11
10 % disp(' ') 12 disp(' ')
11 % disp([name, ' =']) 13 disp([name, ' ='])
12 % disp(' ') 14 disp(' ')
13 15
14 % if length(obj.names) == 1 16 fprintf(' BoundaryGroup%s\n\n', toString(obj.data));
15 % fprintf(' {}\n\n') 17 end
16 % return
17 % end
18
19 % fprintf(' {')
20
21 % fprintf('%d:%s', obj.blockIDs(1), obj.names{1})
22 % for i = 2:length(obj.names)
23 % fprintf(', %d:%s', obj.blockIDs(i), obj.names{i});
24 % end
25
26 % fprintf('}\n\n')
27 % end
28 end 18 end
29 end 19 end