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.25 2003/01/07 18:09:21 geraint +% %% More informative error message. +% %% % %% Revision 1.24 1999/10/22 02:20:32 peterg % %% Changed error handleing of number of attributes >2 % %% % %% Revision 1.23 1998/12/03 16:46:16 peterg % %% Deblanked attributes so that zero attribute works. @@ -209,11 +212,11 @@ fprintf(filenum, "%s := %s;\n", ... varname(sname, bond_number,1), effort_attribute); else % Sensor if strcmp(effort_attribute, "zero") %Zero output zero_outputs = zero_outputs + 1; - fprintf(filenum, "MTTyz%d := %s;\n", ... + fprintf(filenum, "MTTyz(%d,1) := %s;\n", ... zero_outputs, varname(sname, bond_number,1)); else mtt_error([effort_attribute, " not appropriate for an output (", name, ")"]); end; end; @@ -240,11 +243,11 @@ fprintf(filenum, "%s := %s;\n", ... varname(sname, bond_number,-1), flow_attribute); else % Sensor if strcmp(flow_attribute, "zero") %Zero output zero_outputs = zero_outputs + 1 - fprintf(filenum, "MTTyz%d := %s;\n", ... + fprintf(filenum, "MTTyz(%d,1) := %s;\n", ... zero_outputs, varname(sname, bond_number,-1)); else mtt_error([flow_attribute, " not appropriate for an output (", name, ")"]); end; end;