Index: mttroot/mtt/bin/trans/dae2dm_r ================================================================== --- mttroot/mtt/bin/trans/dae2dm_r +++ mttroot/mtt/bin/trans/dae2dm_r @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.4 2005/03/21 11:44:06 gawthrop +## Avoid error messages when no inputs or no outputs or no states +## ## Revision 1.3 1998/07/27 20:25:36 peterg ## *** empty log message *** ## # Revision 1.2 1996/08/25 09:53:35 peter # Error handling added. @@ -62,11 +65,11 @@ MTTE(j+MTTNx, j+MTTNx) := 1; % Find MTTA : the A matrix % First row partition: x -IF MTTNx>0 THEN +IF MTTN>0 THEN BEGIN matrix MTTA(MTTN,MTTN); FOR j := 1:MTTNx DO BEGIN xj := MTTX(j,1);