Overview
Comment:Now generateds the _aliased.txt file
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 00cbebae6cb395b2818f7691ce75b04e525cb0b830464022381dc61769ef6163
User & Date: gawthrop@users.sourceforge.net on 2000-10-12 19:25:39
Other Links: branch diff | manifest | tags
Context
2000-10-12
19:26:23
Modified to work inside mtt_make_sympar check-in: c3e4e746cb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
19:25:39
Now generateds the _aliased.txt file check-in: 00cbebae6c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
19:24:55
Corrected output message check-in: 9a68fc3954 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/cbg2ese_m2r from [b5cb445716] to [fb2127357c].

12
13
14
15
16
17
18



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







+
+
+








###############################################################
## Version control history
###############################################################
## $Id$
##
## $Log$
## Revision 1.18  2000/09/15 08:09:42  peterg
## Removed another debugging line
##
## Revision 1.17  2000/09/15 08:06:17  peterg
## Removed debug lines
##
## Revision 1.16  2000/09/02 15:55:51  peterg
## *** empty log message ***
##
## Revision 1.15  1998/07/08 14:43:12  peterg
95
96
97
98
99
100
101

102
103
104
105
106
107
108
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112







+








# Remove the old log file
rm -f cbg2ese_m.log

# Remove the info and error files
rm -f mtt_info.txt
rm -f mtt_error.txt
rm -f mtt_aliased.txt

# Remove relevent ese files
rm -f $1_ese.r $1_*_ese.r 

#Inform user
echo Creating $eqnfile $blurb
echo Creating $deffile
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
124
125
126
127
128
129
130

131
132
133
134
135
136
137







-








system_name = '$1';
system_type = '';
system_cr = '';
system_args = '';
full_name = '';
full_name_repetition = '';


% Structure matrix [states,nonstates,inputs,outputs,zero_outputs]

structure = zeros(1,7);  # Initialise structure vector

structure = cbg2ese(system_name, system_type, system_cr, ...
                     system_args, full_name, full_name_repetition, ...
202
203
204
205
206
207
208



209
210
211
212
213
214
215
216
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222







+
+
+








done

fi

echo "END;" >> $1_ese.r
echo "END;" >> $1_def.r

# Create the _alised file
echo Creating $1_aliased.txt
mv mtt_aliased.txt $1_aliased.txt

# Sort the struc file
mv $structurefile junk
sort -k 1,1 -k 2,2n junk >$structurefile

# Now invoke the standard error handling.
mtt_error mtt_error.txt


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