Overview
Comment:Don't do initial states.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 53c84cbd7abfe54b01aed0f3e4914737f756be98d3503b9e2fb5024e236dcb20
User & Date: gawthrop@users.sourceforge.net on 1998-03-07 15:27:20
Other Links: branch diff | manifest | tags
Context
1998-03-07
16:04:23
Added some more txt view reps: input, lbl, numpar, state check-in: cddd5427d2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
15:27:20
Don't do initial states. check-in: 53c84cbd7a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
15:23:40
Uses sort_sympar to uniquely produce the sympar list. check-in: 9bd8c00eee user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/sympar2numpar_txt2txt from [ab451d3396] to [7621a5712c].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26







+
+
+







# Copyright (c) P.J.Gawthrop 1996

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.9  1998/02/04 12:24:35  peterg
## Simplified output format
##
## 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.
54
55
56
57
58
59
60
61
62
63
64
65
66
67







68
69
70
71
72
57
58
59
60
61
62
63







64
65
66
67
68
69
70
71
72
73
74
75







-
-
-
-
-
-
-
+
+
+
+
+
+
+






#Write out the variables 
echo "# Parameters" >> $1_numpar.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; \# " $4 " (" $3 ")"
}' \
 $1_struc.txt >> $1_numpar.txt
#echo  >> $1_numpar.txt
#echo "# Initial states" >> $1_numpar.txt
#awk '{
#  if ($1=="state") 
#    print "x(" $2 ") = \t0.0; \# " $4 " (" $3 ")"
#}' \
# $1_struc.txt >> $1_numpar.txt






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