Changeset 3122


Ignore:
Timestamp:
02/24/10 13:23:00 (15 years ago)
Author:
Eric.Larour
Message:

Added scotch partition interfacing.

Location:
issm/trunk/src/m/partition
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/partition/adjacency.m

    r3016 r3122  
    1515
    1616md.adjacency=sparse(indi,indj,values,md.numberofgrids,md.numberofgrids);
    17 md.adjacency=[md.adjacency | md.adjacency'];
     17md.adjacency=double([md.adjacency | md.adjacency']);
    1818
    1919%now, build vwgt:
  • issm/trunk/src/m/partition/partitioner.m

    r3058 r3122  
    5454elseif strcmpi(package,'scotch'),
    5555
    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;
    5766
    5867elseif strcmpi(package,'linear'),
Note: See TracChangeset for help on using the changeset viewer.