Index: mttroot/mtt/bin/trans/switch_txt2m ================================================================== --- mttroot/mtt/bin/trans/switch_txt2m +++ mttroot/mtt/bin/trans/switch_txt2m @@ -14,10 +14,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.9 1999/08/02 12:44:21 peterg +## zero_vector --> zero_state. +## ## Revision 1.8 1999/04/20 00:55:40 peterg ## Changed <= to < in switchopen.m ## Removed switch.m generation - redundant ## ## Revision 1.7 1999/04/02 06:30:37 peterg @@ -65,10 +68,18 @@ echo Creating $1_switchopen.m #Write some file headers lang_header $1 switchopen m 'mttx' '[open]' > $1_switchopen.m +## Add the switching logic +cat >> $1_switchopen.m <> $1_switchopen.m + # Set states to zero awk '{ if ($1=="#"){ printf("#== open - boolean vector of open switches ==#\n") printf("[open] = zero_state(%i); # Default to not open\n", Nx);