Index: /issm/trunk/src/m/utils/Interp/PatchToVec.m
===================================================================
--- /issm/trunk/src/m/utils/Interp/PatchToVec.m	(revision 8658)
+++ /issm/trunk/src/m/utils/Interp/PatchToVec.m	(revision 8659)
@@ -7,7 +7,8 @@
 %if the patch is P0, we need to transform the vector a little bit first
 if size(Patch.value,2)==1,
-	Patch.value=[Patch.value Patch.value Patch.value];
+	vec=Patch.value(Patch.element);
+else
+	connectivity=sparse(Patch.index(:),1,1);
+	value       =sparse(Patch.index(:),1,Patch.value(:));
+	vec=full(value./connectivity);
 end
-connectivity=sparse(Patch.index(:),1,1);
-value       =sparse(Patch.index(:),1,Patch.value(:));
-vec=full(value./connectivity);
