Overview
Comment:Fixed bug in writing out matrix declaration
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 3b87942c3fad5681a9db059de1bff460eedce563041648891a0f6f5d3c4fab3a
User & Date: gawthrop@users.sourceforge.net on 1998-02-17 17:03:54
Other Links: branch diff | manifest | tags
Context
1998-02-18
09:06:07
Added dX0 check-in: 4ebec062b0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-02-17
17:03:54
Fixed bug in writing out matrix declaration check-in: 3b87942c3f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-02-16
16:09:57
And taken it out again! check-in: b52a62a0e0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/sympar_txt2r from [42c93b53e8] to [f66bff96e0].

11
12
13
14
15
16
17




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







+
+
+
+







# Copyright (c) P.J.Gawthrop, 1997.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5  1998/02/16 12:14:21  peterg
## Corrected writing out of MTTVAR matrix - now does this id non-zero
## number of variables - not vv!
##
## Revision 1.4  1997/05/09 14:20:49  peterg
## Dont declare MTTVAR array when there are no variables.
##
# Revision 1.3  1997/03/19  16:39:12  peterg
# Put in the correct date.
#
# Revision 1.2  1997/03/18  17:56:35  peterg
36
37
38
39
40
41
42
43

44
45
46
47
48
49
50
40
41
42
43
44
45
46

47
48
49
50
51
52
53
54







-
+







echo "%% Symbolic parameter file ($1_sympar.r)"  > $1_sympar.r
echo "%% Generated by MTT at `date`"  >> $1_sympar.r
echo  >> $1_sympar.r

#Count the lines in the file
lines=`grep -c  '.' $1_sympar.txt`

if [ -n "$lines" ]; then
if [ "$lines" != "0" ]; then
    echo "MATRIX MTTVAR($lines,1);"   >> $1_sympar.r
fi
echo "MTTNVAR := $lines;"   >> $1_sympar.r
echo   >> $1_sympar.r

#Write out the variables in reduce format.
awk '{i++; print "MTTVAR(" i ",1) := " $1 ";"}' $1_sympar.txt  >> $1_sympar.r


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