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.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.
##
# Revision 1.1 1997/05/03 14:55:17 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.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.
##
# Revision 1.1 1997/05/03 14:55:17 peterg
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
echo "# Generated by MTT at `date`" >> $1_input.txt
cat $MTTPATH/trans/rcs_header.txt >> $1_input.txt
#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
}' $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
|
|
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
echo "# Generated by MTT at `date`" >> $1_input.txt
cat $MTTPATH/trans/rcs_header.txt >> $1_input.txt
#Write out the defaults -- inputs
echo "# Set the inputs" >> $1_input.txt
awk '{
i++;
if($1=="input") print "u(" i ") =\t1.0; \# " $4 " (" $3 ")"
}' $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
|