Overview
| Comment: | Reverted to original default - not using SS mechanism |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
580b91e277667beb67f73b5bc2e6614f |
| User & Date: | gawthrop@users.sourceforge.net on 1998-07-25 08:05:41.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
1998-07-25
| ||
| 08:11:35 | No longer used the SS method - just sets zero states check-in: f6d9fdeda7 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 08:05:41 | Reverted to original default - not using SS mechanism check-in: 580b91e277 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 07:10:41 | Initial revision check-in: 064c26e4bf user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/struc2input_txt2txt
from [ad38cbf533]
to [ef000f43ae].
| ︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Copyright (c) P.J.Gawthrop 1997 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.5 1998/02/04 12:26:47 peterg ## Simplified output format ## ## Revision 1.4 1998/02/04 11:45:05 peterg ## Less verbose comments. ## ## Revision 1.3 1998/01/29 17:06:21 peterg | > > > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Copyright (c) P.J.Gawthrop 1997 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.6 1998/02/24 10:14:56 peterg ## Now defaults to the steady-state values ## ## Revision 1.5 1998/02/04 12:26:47 peterg ## Simplified output format ## ## Revision 1.4 1998/02/04 11:45:05 peterg ## Less verbose comments. ## ## Revision 1.3 1998/01/29 17:06:21 peterg |
| ︙ | ︙ | |||
47 48 49 50 51 52 53 | # Inform user echo Creating $1_input.txt #Create the input file complete with headers. echo "# Numerical parameter file ($1_input.txt)" > $1_input.txt echo "# Generated by MTT at `date`" >> $1_input.txt | | | | | | | | < > | | | | > > | > | > > > | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# Inform user
echo Creating $1_input.txt
#Create the input file complete with headers.
echo "# Numerical parameter file ($1_input.txt)" > $1_input.txt
echo "# Generated by MTT at `date`" >> $1_input.txt
cat $MTTPATH/trans/rcs_header.sh >> $1_input.txt
#Write out the defaults -- inputs to steady-state values
#echo "# Set the inputs" >> $1_input.txt
#cat $1_ss.r $1_struc.txt | sed 's/\$//' |\
#awk '{
# if(match($1,"MTTu")) {
# j++
# u[j]=$3;
# }
#
# if($1=="input") {
# i++;
# print "u(" i ") =\t", u[i], "+ 1.0; \# " $4 " (" $3 ")"
# }
#}' >> $1_input.txt
#Write out the defaults -- unit inputs
echo "# Set the inputs" >> $1_input.txt
awk '{
if ($1=="input") printf("MTTu%s = 1.0; \t\# %s (%s)\n", $2,$3,$4)
}' Nu=$Nu <$1_struc.txt >> $1_input.txt
#Set some switches
if [ "$switches" = "yes" ]; then
echo >> $1_input.txt
echo "# Set the switches" >> $1_input.txt
awk '{print tolower($1) "= (t>=0);"}'< $1_switch.txt >> $1_input.txt
fi
|