Changeset 4713
- Timestamp:
- 07/21/10 18:56:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/partition/partitioner.m
r4706 r4713 8 8 % weighting: 'on' or 'off': default off 9 9 % section: 1 by defaults(1=bisection, 2=quadrisection, 3=octasection) 10 % recomputeadjacency: 'on' by default (set to 'off' to compute existing one) 10 11 % Output: md.part recover the partition vector 11 12 % … … 23 24 options=addfielddefault(options,'weighting','on'); 24 25 options=addfielddefault(options,'section',1); 26 options=addfielddefault(options,'recomputeadjacency','on'); 25 27 26 28 %get package: 27 29 package=getfieldvalue(options,'package'); 28 30 npart=getfieldvalue(options,'npart'); 31 recomputeadjacency=getfieldvalue(options,'recomputeadjacency'); 29 32 30 33 %adjacency matrix if needed: 31 34 if (strcmpi(package,'chaco') || strcmpi(package,'scotch')), 32 md=adjacency(md); 35 if strcmpi(recomputeadjacency,'on'), 36 md=adjacency(md); 37 else 38 disp('skipping adjacency matrix computation as requested in the options'); 39 end 33 40 end 34 41
Note:
See TracChangeset
for help on using the changeset viewer.