Index: mttroot/mtt/bin/trans/cbg2ese_m2r ================================================================== --- mttroot/mtt/bin/trans/cbg2ese_m2r +++ mttroot/mtt/bin/trans/cbg2ese_m2r @@ -14,10 +14,13 @@ ## Version control history ############################################################### ## $Id$ ## ## $Log$ +## Revision 1.16 2000/09/02 15:55:51 peterg +## *** empty log message *** +## ## Revision 1.15 1998/07/08 14:43:12 peterg ## Restored inforfile ## ## Revision 1.14 1998/07/08 08:26:26 peterg ## Added -I option -- if set prints out the information messages @@ -148,11 +151,11 @@ # Find subsystems subsystems=`mtt_get_subsystems $1` # Top level # The top-level definition file -Nx=`mtt_getsize -external $1 x` +Nx=`mtt_getsize -external $1 dX` Nz=`mtt_getsize -external $1 z` Ny=`mtt_getsize -external $1 y` Nu=`mtt_getsize -external $1 u` Nui=`mtt_getsize -external $1 ui` Nuc=`mtt_getsize -internal $1 u` @@ -180,13 +183,15 @@ ## Extra bits for the ese file to define connections for subsystem in $subsystems; do echo Doing $subsystem Ny=`mtt_getsize -internal $subsystem"_1" y` Nu=`mtt_getsize -internal $subsystem"_1" u` - echo Ny $Ny Nu $Nu Nx $Nx + # echo Ny $Ny Nu $Nu Nx $Nx echo MATRIX "MTT_"$subsystem"_uc("$Nu",1);" >> $1_def.r + + echo >> $1_ese.r echo %Subsystem input connections for $subsystem >> $1_ese.r octave -q <> $1_ese.r for i=1:$Nu printf("MTT_%s_uc(%i,1) := %s_1_MTTu%i;\n", "$subsystem", i, "$subsystem", i); endfor;