Index: /issm/trunk/src/m/classes/model.m
===================================================================
--- /issm/trunk/src/m/classes/model.m	(revision 8400)
+++ /issm/trunk/src/m/classes/model.m	(revision 8401)
@@ -369,4 +369,5 @@
 		 % But if we don't keep the old properties here, they would not be
 		 % recovered when the model is loaded
+		 % KEEP IN CHRONOLOGICAL ORDER (OLDER FIRST)
 		 drag;
 		 p;
@@ -375,6 +376,4 @@
 		 n;
 		 melting;
-		 melting_rate;
-		 accumulation_rate;
 		 accumulation;
 		 type;
@@ -596,4 +595,13 @@
 		 end
 		 %}}}
+		 function mdstruct=struct(md) % {{{1
+			 mdstruct=struct();
+			 modelprops=properties(md);
+
+			 for i=1:length(modelprops),
+				 mdstruct.(modelprops{i})=md.(modelprops{i});
+			 end
+		 end
+		 %}}}
 		 function md=setdefaultparameters(md) % {{{1
 		 %SETDEFAULTPARAMETERS - plug default parameters onto model
