Index: /issm/branches/trunk-larour-SLPS2022/src/m/classes/organizer.m
===================================================================
--- /issm/branches/trunk-larour-SLPS2022/src/m/classes/organizer.m	(revision 27254)
+++ /issm/branches/trunk-larour-SLPS2022/src/m/classes/organizer.m	(revision 27255)
@@ -134,9 +134,22 @@
 			error(['Could not find ' path ]);
 		end%}}}
-		function loaddata(org,string),% {{{
+		function loaddata(org,string,varargin),% {{{
 
 			%Get model path
 			if ~ischar(string), error('argument provided is not a string'); end
 			path=[org.repository '/' org.prefix string];
+		
+			%any extra options? 
+			if nargin==3,
+				datas=varargin{:};
+			else
+				datas=cell(0);
+			end
+			if ~isa(datas,'char') & ~isa(datas,'cell'),
+				error('loaddata error message: extra parameters should either be a string or cell array of string');
+			end
+			if isa(datas,'char'),
+				datas={datas};
+			end
 
 			%figure out if the data is there, otherwise, we have to use the default path supplied by user.
@@ -149,5 +162,16 @@
 			end
 			if exist(path,'file')
-				evalin('caller',['load -mat ' path]);
+				if ~numel(datas),
+					string=sprintf('load(''%s'',''-mat'');',path);
+				else
+					string=sprintf('load(''%s'',''-mat'',',path);
+					for i=1:numel(datas)-1,
+						datai=datas{i};
+						string=sprintf('%s''%s'',',string,datai);
+					end
+					datai=datas{end};
+					string=sprintf('%s''%s'');',string,datai);
+				end
+				evalin('caller',string);
 				return;
 			end
