Index: /issm/trunk/src/m/partition/part_scotch.m
===================================================================
--- /issm/trunk/src/m/partition/part_scotch.m	(revision 3007)
+++ /issm/trunk/src/m/partition/part_scotch.m	(revision 3007)
@@ -0,0 +1,15 @@
+addpath '/u/wilkes-r1b/jschierm/Libs/meshpart'
+addpath '/u/wilkes-r1b/jschierm/Libs/meshpart/chaco'
+addpath /u/wilkes-r1b/jschierm/Libs/scotch_5.1
+addpath /home/jschierm/Libs/scotch_5.1/bin
+load Pig_mesh1M  % just for me -- create your own mesh
+%  create adjacency matrix, vertex list, and vertex weights
+[adj_mat,vlist,vwgt]=adjacency_matrix(md.elements,[md.x md.y md.z]);
+%  partition into 100 parts, but ignore vertex and edge weights
+[status,maptab]=gmap(adj_mat,vlist,[],[],'cmplt',[100],'-vm','-vs','-vt');
+%  plot partitions
+figure
+plotmodel(md,'data',maptab(:,2))
+%  plot histograms of number and weight of vertices in each partition
+figure
+part_hist(maptab(:,2),vwgt)
