Index: mttroot/mtt/bin/trans/struc2input_txt2txt ================================================================== --- mttroot/mtt/bin/trans/struc2input_txt2txt +++ mttroot/mtt/bin/trans/struc2input_txt2txt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.4 1998/02/04 11:45:05 peterg +## Less verbose comments. +## ## Revision 1.3 1998/01/29 17:06:21 peterg ## Better annotation of each input ## ## Revision 1.2 1997/05/15 09:44:12 peterg ## Put switches into the input file. @@ -49,11 +52,11 @@ #Write out the defaults -- inputs echo "# Set the inputs" >> $1_input.txt awk '{ i++; - if($1=="input") print "u(" i ") =\t1.0; \# System " $4 ", Component " $3 + if($1=="input") print "u(" i ") =\t1.0; \# " $4 " (" $3 ")" }' $1_struc.txt >> $1_input.txt #Set some switches if [ "$switches" = "yes" ]; then Index: mttroot/mtt/bin/trans/sympar2numpar_txt2txt ================================================================== --- mttroot/mtt/bin/trans/sympar2numpar_txt2txt +++ mttroot/mtt/bin/trans/sympar2numpar_txt2txt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.8 1998/01/29 17:06:36 peterg +## Better annotation +## ## Revision 1.7 1997/09/18 17:10:18 peterg ## Changed comments pertaining to the parameters to use the new column 2 ## of the sympar file (the system type). ## Added blank line to separate parmeters from states. ## (Done in the Chester Court Hotel). @@ -49,21 +52,21 @@ echo "# Generated by MTT at `date`" >> $1_numpar.txt cat $MTTPATH/trans/rcs_header.txt >> $1_numpar.txt #Write out the variables echo "# Parameters" >> $1_numpar.txt -awk '{i++; print tolower($1) " = \t1.0; \# Parameter " $1 " for " $2}' $1_sympar.txt \ +awk '{i++; print tolower($1) " = \t1.0; \# " $2}' $1_sympar.txt \ >> $1_numpar.txt #Write out the initial states echo >> $1_numpar.txt echo "# Initial states" >> $1_numpar.txt awk '{ if ($1=="state") - print "x(" $2 ") = \t0.0; \# Initial state for system" $4 " (Component " $3 ")" + print "x(" $2 ") = \t0.0; \# " $4 " (" $3 ")" }' \ $1_struc.txt >> $1_numpar.txt