Index: /issm/trunk/src/m/model/structtomodel.m
===================================================================
--- /issm/trunk/src/m/model/structtomodel.m	(revision 6144)
+++ /issm/trunk/src/m/model/structtomodel.m	(revision 6145)
@@ -18,4 +18,6 @@
 
 %some special treatment for models of previous ISSM versions
+
+%Field name change
 if isfield(structmd,'drag'), md.drag_coefficient=structmd.drag; end
 if isfield(structmd,'p'), md.drag_p=structmd.p; end
@@ -23,6 +25,20 @@
 if isfield(structmd,'B'), md.rheology_B=structmd.B; end
 if isfield(structmd,'n'), md.rheology_n=structmd.n; end
+if isfield(structmd,'melting'), md.melting_rate=structmd.melting; end
+if isfield(structmd,'accumulation'), md.accumulation_rate=structmd.accumulation; end
+
+%Field class change
 if (isfield(structmd,'type') & ischar(structmd.type)), 
 	if strcmpi(structmd.type,'2d'), md.dim=2; end
 	if strcmpi(structmd.type,'3d'), md.dim=3; end
 end
+
+%New fields
+if ~isfield(structmd,'upperelements');
+	md.upperelements=transpose(1:md.numberofelements)+md.numberofelements2d;
+	md.upperelements(end-md.numberofelements2d+1:end)=NaN;
+end
+if ~isfield(structmd,'lowerelements');
+	md.lowerelements=transpose(1:md.numberofelements)-md.numberofelements2d;
+	md.lowerelements(1:md.numberofelements2d)=NaN;
+end
