Overview
Comment:Partial fix for insidious bug which eliminates lines of code when parameter
names of the form (in* or off*) start continuation lines.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: e8bb4367736675f1cfa3c6a87bde67d2f2ec6542e43718709bb9b6a275144509
User & Date: geraint@users.sourceforge.net on 2001-09-07 00:25:56
Other Links: branch diff | manifest | tags
Context
2001-10-05
09:41:26
Reserved words check-in: 0f078e6367 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2001-09-07
00:25:56
Partial fix for insidious bug which eliminates lines of code when parameter
names of the form (in* or off*) start continuation lines.
check-in: e8bb436773 user: geraint@users.sourceforge.net tags: origin/master, trunk
2001-08-24
21:41:04
Fixed problem with declaration when there are no numerical parameters. check-in: 64f9e9b57d user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_r2m from [ac7fcfc5be] to [cfb6e8655f].

14
15
16
17
18
19
20



21
22
23
24
25
26
27
# Copyright (C) 2000 by Peter J. Gawthrop

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



## Revision 1.27.4.1  2001/05/04 04:07:24  geraint
## Numerical solution of algebraic equations.
## sys_ae.cc written for unsolved inputs.
## Solution of equations using hybrd from MINPACK (as used by Octave fsolve).
##
## Revision 1.27  2001/02/08 00:39:56  geraint
## Removed clear from code generated by: mtt -c -i euler -o







>
>
>







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.28  2001/07/13 04:54:04  geraint
## Branch merge: numerical-algebraic-solution back to main.
##
## Revision 1.27.4.1  2001/05/04 04:07:24  geraint
## Numerical solution of algebraic equations.
## sys_ae.cc written for unsolved inputs.
## Solution of equations using hybrd from MINPACK (as used by Octave fsolve).
##
## Revision 1.27  2001/02/08 00:39:56  geraint
## Removed clear from code generated by: mtt -c -i euler -o
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#Convert from the (optimised) r file
echo >> mtt_junk
echo '## Code' >> mtt_junk
strip_comments<$1_$2.r | tr [A-Z] [a-z] |\
grep -vi 'MATRIX ' |\
grep -vi 'END;' |\
grep -vi 'clear mtt' |\
grep -v '^off' |\
grep -v '^in' |\
sed \
    -e "s/^mtt/  mtt/" \
    -e "s/:=/=/" \
    -e "s/\\$/;/" \
 >> mtt_junk
echo '## END Code' >> mtt_junk
echo endfunction >> mtt_junk







|
|







156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#Convert from the (optimised) r file
echo >> mtt_junk
echo '## Code' >> mtt_junk
strip_comments<$1_$2.r | tr [A-Z] [a-z] |\
grep -vi 'MATRIX ' |\
grep -vi 'END;' |\
grep -vi 'clear mtt' |\
grep -v '^off .*\$' |\
grep -v '^in .*\$' |\
sed \
    -e "s/^mtt/  mtt/" \
    -e "s/:=/=/" \
    -e "s/\\$/;/" \
 >> mtt_junk
echo '## END Code' >> mtt_junk
echo endfunction >> mtt_junk


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