Overview
Comment:Now handles the cases where ny or nx or nu are zero
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 5a6198ec7fb3a99a76a5ed2e7359a2529108030f36b8e09113f3ea1ee912d1ba
User & Date: gawthrop@users.sourceforge.net on 2001-10-15 14:20:27
Other Links: branch diff | manifest | tags
Context
2001-10-15
14:25:44
Now handles white space at the end of component names
Converts ports lables [1:5] into [1,2,3,4,5]
check-in: d23e8145fd user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:20:27
Now handles the cases where ny or nx or nu are zero check-in: 5a6198ec7f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2001-10-12
00:48:42
Clicking on title now sorts by low level component name (and back again). check-in: dc418f1b5d user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/struc_txt2m from [8d395093a7] to [8e5a3e29dd].

11
12
13
14
15
16
17



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33










34
35
36
37
38
39
40
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53







+
+
+
















+
+
+
+
+
+
+
+
+
+







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

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  2001/03/19 02:28:52  geraint
## Branch merge: merging-ode2odes-exe back to MAIN.
##
## Revision 1.1.2.1  2001/03/06 03:52:15  geraint
## Put back struc_txt2m - required by mtt2sys.
##
###############################################################



# Inform user
echo "Creating $1_struc.m"

rm -f mtt_error

#Write some file headers
echo "function [input_name,output_name,state_name] = $1_struc" > $1_struc.m
echo "%% Structure file ($1_struc.m)" >> $1_struc.m
echo "%% Generated by MTT at `date`" >> $1_struc.m

cat  >> $1_struc.m <<EOF

## Default to null strings
 input_name = "";
 output_name = "";
 state_name  = "";
EOF



# This is the main transformation using awk
awk '
function header(what){
  print what "_name = [";
}


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