Index: /issm/trunk/src/m/utils/Model/loadmodel.m
===================================================================
--- /issm/trunk/src/m/utils/Model/loadmodel.m	(revision 2223)
+++ /issm/trunk/src/m/utils/Model/loadmodel.m	(revision 2224)
@@ -13,8 +13,9 @@
 
 try,
-	s=load(path,'-mat');
+	struc=load(path,'-mat');
+
 	%get name of model variable
-	fieldname=char(fieldnames(s));
-	md=eval(['s.' fieldname]);
+	fieldname=char(fieldnames(struc));
+	md=eval(['struc.' fieldname]);
 	if ~strcmpi(class(md),'model'),
 		md2=model;
@@ -28,5 +29,6 @@
 		assignin('caller',fieldname,md);
 	end
-catch
+catch me
+	disp(getReport(me))
 	error(['could not load model ' path]);
 end
