Overview
Comment:Better annotation of each input
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f2e8294bece31e0b68810177feb8b57590a62ccb99c3e1d22dc299d155aeab17
User & Date: gawthrop@users.sourceforge.net on 1998-01-29 17:06:21
Other Links: branch diff | manifest | tags
Context
1998-01-29
17:06:36
Better annotation check-in: 9c7a10bed7 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
17:06:21
Better annotation of each input check-in: f2e8294bec user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-01-23
13:38:07
VERSION 2.7 check-in: 0492edcf44 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/struc2input_txt2txt from [773380ef63] to [ab5d8bafc3].

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.1  1997/05/03  14:55:17  peterg
# Initial revision
#
###############################################################

#Look for a command line argument
# By default, don't look for BG switches







>
>
>







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.2  1997/05/15 09:44:12  peterg
## Put switches into the input file.
##
# Revision 1.1  1997/05/03  14:55:17  peterg
# Initial revision
#
###############################################################

#Look for a command line argument
# By default, don't look for BG switches
39
40
41
42
43
44
45
46

47
48
49
50
51
52
53
54
55
56
57
#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.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; \# " $3 " (Default value)"}' $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










|
>











42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#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.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; \# Input for 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




MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]