Index: /issm/trunk-jpl/etc/environment.sh
===================================================================
--- /issm/trunk-jpl/etc/environment.sh	(revision 21904)
+++ /issm/trunk-jpl/etc/environment.sh	(revision 21905)
@@ -96,4 +96,7 @@
 	libpathappend "$PETSC_DIR/lib"
 fi
+
+SCOTCH_DIR="$ISSM_DIR/externalpackages/scotch/install"
+libpathappend "$SCOTCH_DIR/lib"
 
 SLEPC_DIR="$ISSM_DIR/externalpackages/slepc/install"
Index: /issm/trunk-jpl/externalpackages/scotch/scotch.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/scotch/scotch.patch	(revision 21904)
+++ /issm/trunk-jpl/externalpackages/scotch/scotch.patch	(revision 21905)
@@ -2227,10 +2227,9 @@
 ***************
 *** 192,197 ****
---- 192,214 ----
+--- 192,213 ----
   stratParserInit (
   const char * const          string)               /*+ Strategy string to parse +*/
   {
 + /*  reset static variables from previous runs (jes, 4/29/10)  */
-+   yy_current_buffer = 0;
 +   yy_hold_char = (char) 0;
 +   yy_n_chars=0;          /* number of characters read into yy_ch_buf */
Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 21904)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 21905)
@@ -714,5 +714,5 @@
 	if test "x$HAVE_SCOTCH" = "xyes"; then
 		SCOTCHINCL="-DNOFILEIO -I$SCOTCH_ROOT/include -DSCOTCH_VERSION=\\\"UNKNOWN\\\""
-		SCOTCHLIB="-L$SCOTCH_ROOT/lib -lnfioscotch -lnfioscotcherr -lnfioscotcherrexit -lscotchmetis"
+		SCOTCHLIB="-L$SCOTCH_ROOT/lib -lnfioscotch -lnfioscotcherr -lnfioscotcherrexit "
 		AC_DEFINE([_HAVE_SCOTCH_],[1],[with Scotch in ISSM src])
 		AC_SUBST([SCOTCHINCL])
Index: /issm/trunk-jpl/src/m/partition/partitioner.m
===================================================================
--- /issm/trunk-jpl/src/m/partition/partitioner.m	(revision 21904)
+++ /issm/trunk-jpl/src/m/partition/partitioner.m	(revision 21905)
@@ -41,4 +41,5 @@
 	md.qmu.vertex_weight=[];
 	md.mesh.vertexconnectivity=[];
+	recomputeadjacency='on';
 end
 
@@ -80,8 +81,10 @@
 	if strcmpi(getfieldvalue(options,'weighting'),'on'),
 		weights=floor(md.qmu.vertex_weight/min(md.qmu.vertex_weight));
+	else
+		weights=[];
 	end
 	maptab=Scotch(md.qmu.adjacency,[],weights,[],'cmplt',[npart]);
 
-	part=maptab(:,2);%index partitions from 1 up. like metis.
+	part=maptab(:,2)+1;%index partitions from 1 up. like metis.
 
 elseif strcmpi(package,'linear'),
