Index: /issm/trunk/src/m/classes/public/loadresultsfromdisk.m
===================================================================
--- /issm/trunk/src/m/classes/public/loadresultsfromdisk.m	(revision 2885)
+++ /issm/trunk/src/m/classes/public/loadresultsfromdisk.m	(revision 2886)
@@ -22,5 +22,5 @@
 	%Check result is consistent, only if it exists
 	disp(sprintf('%s\n','checking result consistency'));
-	if ~isresultconsistent(md,md.analysis_type),
+	if ~isresultconsistent(md,structure.analysis_type),
 		%it would be very cruel to put an error, it would kill the computed results (even if not consistent...)
 		disp('!! results not consistent correct the model !!') 
@@ -28,7 +28,7 @@
 end
 
-%convert analysis type to string
-md.analysis_type=AnalysisTypeFromEnum(md.analysis_type);
-md.sub_analysis_type=AnalysisTypeFromEnum(md.sub_analysis_type);
+%recover analysis_type from results
+md.analysis_type=structure.analysis_type;
+md.sub_analysis_type=structure.sub_analysis_type;
 
 %post processes qmu results if necessary
