Skip to content
Snippets Groups Projects
Commit bb33e83f authored by Federico Felici's avatar Federico Felici
Browse files

Fix for cases of multiple output names

parent 6d563728
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ classdef SCDclass_expcode ...@@ -25,7 +25,7 @@ classdef SCDclass_expcode
maincode % Expcode numerical code maincode % Expcode numerical code
status % Expcode development status status % Expcode development status
loadverbose % Verbosity level of the loading (currently 0 or 1) loadverbose % Verbosity level of the loading (currently 0 or 1)
% Per node properties structs % Per node properties structs
node01 node01
node02 node02
...@@ -403,10 +403,12 @@ classdef SCDclass_expcode ...@@ -403,10 +403,12 @@ classdef SCDclass_expcode
toadd=1; toadd=1;
if(~isempty(obj.stdinits)) if(~isempty(obj.stdinits))
for jj=1:numel(obj.stdinits) for jj=1:numel(obj.stdinits)
if(strcmp(char(obj.stdinits{jj}{2}),algoinits{ii}{2})) for kk=1:numel(obj.stdinits{jj}{2})
if(strcmp(char(obj.stdinits{jj}{2}{kk}),algoinits{ii}{2}))
warning('SCDclass_expcode:addalgorithm','An init driving the structure %s has already been added, ignoring algorithm object.\d',algoinits{ii}{2}) warning('SCDclass_expcode:addalgorithm','An init driving the structure %s has already been added, ignoring algorithm object.\d',algoinits{ii}{2})
toadd=0; toadd=0;
end end
end
end end
end end
if(toadd) if(toadd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment