Index: /issm/trunk-jpl/src/m/classes/model/model.m
===================================================================
--- /issm/trunk-jpl/src/m/classes/model/model.m	(revision 13716)
+++ /issm/trunk-jpl/src/m/classes/model/model.m	(revision 13717)
@@ -77,8 +77,12 @@
 				disp('Recovering old materials');
 				if numel(md.materials.rheology_Z)==1 & isnan(md.materials.rheology_Z),
-					md.materials=matice(md.materials);
-				else
+
 					md.materials=matdamageice(md.materials);
 				end
+			end
+			%2012 June 28th
+			if sum(sum(isnan(md.mesh.edges)))>0
+				disp('Update model edges from previous version');
+				md.mesh.edges(isnan(md.mesh.edges))=-1;
 			end
 
@@ -921,5 +925,8 @@
 			if isfield(structmd,'x2d'), md.mesh.x2d=structmd.x2d; end
 			if isfield(structmd,'elements'), md.mesh.elements=structmd.elements; end
-			if isfield(structmd,'edges'), md.mesh.edges=structmd.edges; end
+			if isfield(structmd,'edges'), 
+				md.mesh.edges=structmd.edges; 
+				md.mesh.edges(isnan(md.mesh.edges))=-1;
+			end
 			if isfield(structmd,'y'), md.mesh.y=structmd.y; end
 			if isfield(structmd,'x'), md.mesh.x=structmd.x; end
