Overview
Comment:Sorted out mtt_getsize
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 1f0697ffea2b6937a965957b6438fba12a06b99c63c3085892b83083cfe7f5e3
User & Date: gawthrop@users.sourceforge.net on 2000-11-30 15:07:28
Other Links: branch diff | manifest | tags
Context
2000-11-30
15:12:55
Zapped the declaration of subsystem connections - now in individual
.def files
check-in: a13ff0614d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
15:07:28
Sorted out mtt_getsize check-in: 1f0697ffea user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2000-11-29
21:06:16
Removed Npar creation - not needed?? check-in: 3fef877eeb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/cbg2ese_m2r from [aee02052a2] to [4e6f807ba3].

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.22  2000/11/12 17:18:30  peterg
## Changed ' to "
##
## Revision 1.21  2000/10/16 08:40:35  peterg
## Whoops! Must touch mtt_aliased
##
## Revision 1.20  2000/10/16 08:36:31  peterg
## Creat empty _aliased file if it doesn't exist
##
## Revision 1.19  2000/10/12 19:25:39  peterg
192
193
194
195
196
197
198
199
200
201
202






203
204
205
206
207
208
209
195
196
197
198
199
200
201




202
203
204
205
206
207
208
209
210
211
212
213
214







-
-
-
-
+
+
+
+
+
+







  structure(7) = $Nuc; # Connecting inputs

  makedef(structure,deffilenum);  #Create definitions
EOF

  ## Extra bits for the ese file to define connections
  for subsystem in $subsystems; do
    echo Doing $subsystem
    Ny=`mtt_getsize -internal $subsystem"_1" y`
    Nu=`mtt_getsize -internal $subsystem"_1" u`
    # echo Ny $Ny Nu $Nu Nx $Nx
    echo Connecting $subsystem
#    Ny=`mtt_getsize -internal ${subsystem}_1 y`
#    Nu=`mtt_getsize -internal ${subsystem}_1 u`
#    Nx=`mtt_getsize -internal ${subsystem}_1 u`
#    echo Ny $Ny Nu $Nu Nx $Nx


    echo MATRIX "MTT_"$subsystem"_uc("$Nu",1);"  >> $1_def.r

    echo >> $1_ese.r
    echo %Subsystem input connections for $subsystem  >> $1_ese.r
    octave -q <<EOF                            >> $1_ese.r
    for i=1:$Nu
224
225
226
227
228
229
230
231


229
230
231
232
233
234
235
236
237
238








+
+

# 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 ]