Index: mttroot/mtt/lib/comp/simple/SS_eqn.m ================================================================== --- mttroot/mtt/lib/comp/simple/SS_eqn.m +++ mttroot/mtt/lib/comp/simple/SS_eqn.m @@ -29,10 +29,13 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ +% %% Revision 1.23 1998/12/03 16:46:16 peterg +% %% Deblanked attributes so that zero attribute works. +% %% % %% Revision 1.22 1998/07/28 19:05:46 peterg % %% Fixed a few bugs. % %% % %% Revision 1.21 1998/07/28 14:21:31 peterg % %% Vector SS ports. @@ -115,18 +118,19 @@ % If its a numbered port: % cr contains 'MTT_port' % arg contains port number if (strcmp(cr,"SS")) # Then its the standard file - a = split(args,","); + a = split(args,",") [N,M]=size(a); if (N~=2) # Must have 2 arguments mtt_error(sprintf("SS should have 2 args not %i", N)); - else - effort_attribute = deblank(a(1,:)); - flow_attribute = deblank(a(2,:)); end; + + effort_attribute = deblank(a(1,:)); + flow_attribute = deblank(a(2,:)); + else # Old style file effort_attribute = cr; flow_attribute = args; # mtt_info(sprintf("SS component: Hmm... looks like an old-style label file")); end;