Overview
Comment:changed [] to ()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 0cb39eafdf9d0351c9abe58bf0da78e545d4ade1ff9f7c23f90115b797d11475
User & Date: gawthrop@users.sourceforge.net on 1997-06-13 09:34:39
Other Links: branch diff | manifest | tags
Context
1997-06-13
09:42:25
Auto change of () to [] check-in: 7cffaa933b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:34:39
changed [] to () check-in: 0cb39eafdf user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:18:28
Removed all params.m check-in: 13cbf4c7ea user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/sympar2numpar_txt2txt from [fa6475c884] to [175b4764f7].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Copyright (c) P.J.Gawthrop 1996

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



# Revision 1.4  1997/05/15  07:19:19  peterg
# Put back "tolower"
#
# Revision 1.3  1997/05/15  07:13:31  peterg
# Removed "tolower" function.
#
# Revision 1.2  1997/05/01  08:19:04  peterg







>
>
>







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.5  1997/05/15  08:30:14  peterg
# Now write default states (using _struc file).
#
# Revision 1.4  1997/05/15  07:19:19  peterg
# Put back "tolower"
#
# Revision 1.3  1997/05/15  07:13:31  peterg
# Removed "tolower" function.
#
# Revision 1.2  1997/05/01  08:19:04  peterg
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
awk '{i++; print tolower($1) " = \t1.0; \# Default value"}' $1_sympar.txt \
>> $1_numpar.txt

#Write out the initial states
echo "# Initial states" >> $1_numpar.txt
awk '{
  if ($1=="state") 
    print "x[" $2 "] = \t0.0; \# Initial state for " $4 " (" $3 ")"
}' \
 $1_struc.txt >> $1_numpar.txt












|







45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
awk '{i++; print tolower($1) " = \t1.0; \# Default value"}' $1_sympar.txt \
>> $1_numpar.txt

#Write out the initial states
echo "# Initial states" >> $1_numpar.txt
awk '{
  if ($1=="state") 
    print "x(" $2 ") = \t0.0; \# Initial state for " $4 " (" $3 ")"
}' \
 $1_struc.txt >> $1_numpar.txt






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