Index: /issm/trunk/src/m/utils/Interp/PatchToVec.m
===================================================================
--- /issm/trunk/src/m/utils/Interp/PatchToVec.m	(revision 9672)
+++ /issm/trunk/src/m/utils/Interp/PatchToVec.m	(revision 9673)
@@ -6,11 +6,12 @@
 
 %if the patch is P0: we have element values, return an element vector
-switch(Patch.interpolation(1)),
-	case P0Enum,
+switch(size(Patch.value,2)),
+	case 1,
 		vec(Patch.element)=Patch.value;
-		%connectivity=sparse(Patch.index(:),1,1);
-		%value       =sparse(Patch.index(:),1,Patch.value(:));
-		%vec=full(value./connectivity);
-	case P1Enum,
+	case 3,
+		connectivity=sparse(Patch.index(:),1,1);
+		value       =sparse(Patch.index(:),1,Patch.value(:));
+		vec=full(value./connectivity);
+	case 6,
 		connectivity=sparse(Patch.index(:),1,1);
 		value       =sparse(Patch.index(:),1,Patch.value(:));
