Index: /issm/trunk-jpl/src/m/model/collapse.m
===================================================================
--- /issm/trunk-jpl/src/m/model/collapse.m	(revision 12169)
+++ /issm/trunk-jpl/src/m/model/collapse.m	(revision 12170)
@@ -101,6 +101,6 @@
 
 %lat long
-if numel(md.mesh.lat)>1,  md.mesh.lat=project2d(md,md.mesh.lat,1); end
-if numel(md.mesh.long)>1, md.mesh.long=project2d(md,md.mesh.long,1); end
+if numel(md.mesh.lat) ==md.mesh.numberofvertices,  md.mesh.lat=project2d(md,md.mesh.lat,1); end
+if numel(md.mesh.long)==md.mesh.numberofvertices, md.mesh.long=project2d(md,md.mesh.long,1); end
 
 %Initialize with the 2d mesh
