Index: /issm/trunk-jpl/src/m/partition/AreaAverageOntoPartition.py
===================================================================
--- /issm/trunk-jpl/src/m/partition/AreaAverageOntoPartition.py	(revision 25109)
+++ /issm/trunk-jpl/src/m/partition/AreaAverageOntoPartition.py	(revision 25110)
@@ -7,5 +7,5 @@
 
 
-def AreaAverageOntoPartition(md, vector, layer=None, partition):
+def AreaAverageOntoPartition(md, vector, partition, layer=None):
     '''
     AREAAVERAGEONTOPARTITION - compute partition values for a certain vector expressed on the vertices of the mesh.
Index: /issm/trunk-jpl/test/NightlyRun/test418.m
===================================================================
--- /issm/trunk-jpl/test/NightlyRun/test418.m	(revision 25109)
+++ /issm/trunk-jpl/test/NightlyRun/test418.m	(revision 25110)
@@ -9,5 +9,6 @@
 %partitioning
 npart=100;
-[partition md]=partitioner(md,'package','chaco','npart',npart)-1;
+[partition, md]=partitioner(md,'package','chaco','npart',npart);
+partition=partition-1;
 
 vector=(1:1:md.mesh.numberofvertices)';
