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 @@ -5,10 +5,11 @@ % the named SS (the ports) being in the correct order. Using globals here % avoids changing the common argument list for all _eqn files for something % which is only used for named SS components. global local_u_index global local_y_index +global at_top_level % SS_eqn - equations for SS component % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %%%%% Model Transformation Tools %%%%% @@ -25,10 +26,13 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ +% %% Revision 1.15 1997/12/16 19:16:07 peterg +% %% Added unknown input to the effort part. +% %% % %% Revision 1.14 1997/12/16 18:25:19 peterg % %% Added unknown_input attribure to flow -- effort still needs doing % %% % %% Revision 1.13 1997/09/18 13:15:15 peterg % %% Fixed incorrect error message flagging inappropriate flow outputs @@ -102,11 +106,11 @@ inputs = structure(3); outputs = structure(4); zero_outputs = structure(5); unknown_inputs = structure(6); -if strcmp(effort_attribute, 'MTT_port') % Its a named port +if strcmp(effort_attribute, 'MTT_port')&&~at_top_level % It's a named port % Note: we don't have numbered ports now, so the correct indices are deduced % by incrementing the two globals: local_u_index and local_y_index % $$$ % Convert string to number % $$$ % port_number = abs(flow_attribute)-abs('0');