Changeset 3122
- Timestamp:
- 02/24/10 13:23:00 (15 years ago)
- Location:
- issm/trunk/src/m/partition
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/partition/adjacency.m
r3016 r3122 15 15 16 16 md.adjacency=sparse(indi,indj,values,md.numberofgrids,md.numberofgrids); 17 md.adjacency= [md.adjacency | md.adjacency'];17 md.adjacency=double([md.adjacency | md.adjacency']); 18 18 19 19 %now, build vwgt: -
issm/trunk/src/m/partition/partitioner.m
r3058 r3122 54 54 elseif strcmpi(package,'scotch'), 55 55 56 error(['partitioner error message: ''scotch'' partitioner not supported yet!']); 56 % partition into 100 parts, but ignore vertex and edge weights 57 %[status,maptab]=gmap(md.adjacency,[],[],[],'cmplt',[npart],'-vm','-vs','-vt'); 58 59 if strcmpi(getfieldvalue(options,'weighting'),'on'), 60 [status,maptab]=gmap(md.adjacency,[],floor(md.vwgt/min(md.vwgt)),[],'cmplt',[npart]); 61 else 62 [status,maptab]=gmap(md.adjacency,[],[],[],'cmplt',[npart]); 63 end 64 65 part=maptab(:,2)+1; 57 66 58 67 elseif strcmpi(package,'linear'),
Note:
See TracChangeset
for help on using the changeset viewer.