Index: /issm/trunk/src/m/utils/Model/loadmodel.m
===================================================================
--- /issm/trunk/src/m/utils/Model/loadmodel.m	(revision 2363)
+++ /issm/trunk/src/m/utils/Model/loadmodel.m	(revision 2364)
@@ -8,6 +8,13 @@
 %      loadmodel path
 
+%some checks
 if nargout>1,
 	error('loadmodel usage error: md=loadmodel(path)');
+end
+if ~exist(path)
+	error(['loadmodel error message: file ' path ' does not exist']);
+end
+if length(whos('-file',path))>1,
+	error(['loadmodel error message: file ' path ' contains several variables. Only one model should be present.']);
 end
 
