Overview
Comment: | Now assigns correct bonds to the new junction port names |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
107b151376455112d6d9b09c11b91d55 |
User & Date: | gawthrop@users.sourceforge.net on 1999-10-19 02:13:31 |
Other Links: | branch diff | manifest | tags |
Context
1999-10-20
| ||
01:31:43 | *** empty log message *** check-in: 969924bbcb user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1999-10-19
| ||
02:13:31 | Now assigns correct bonds to the new junction port names check-in: 107b151376 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
02:01:22 | Initial revision check-in: f5ee792cac user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/rbg2abg.m from [605d25d1b2] to [2c59585cdf].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | + + + | function [bonds,components,n_vector_bonds] = rbg2abg(name,rbonds,rstrokes,rcomponents,\ port_coord,port_name,\ infofile,errorfile) ## ############################################################### ## ## Version control history ## ############################################################### ## ## $Id$ ## ## $Log$ ## ## Revision 1.44 1999/10/19 00:05:44 peterg ## ## Now defaults junction ports when only one specified (for vector junctions) ## ## ## ## Revision 1.43 1999/10/18 04:08:46 peterg ## ## Now computes n_vector_bonds -- number apparent (maybe vector) bonds per component. ## ## Neeeded to vectorise junctions. ## ## ## ## Revision 1.42 1999/08/25 21:45:03 peterg ## ## Spurious start to vector 0 and 1 ## ## |
︙ | |||
284 285 286 287 288 289 290 291 292 293 | 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | + - + - - - - + + + + + + - + | if ((comp_type=="0")||(comp_type=="1")) # A junction disp("---- default junctions ---- "); junction_names = 0; for j=1:n_comp_bonds port_name_index = getindex(port_bond,signed_bond_list(j)); if port_name_index>0 junction_port_name = port_name(port_name_index,:); named_bond_index = j; junction_names++; endif endfor |
︙ | |||
347 348 349 350 351 352 353 | 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 | + - - + + | mtt_info(["Defaulting port name [" port_name_i "]\t on component " \ comp_name " (" comp_type ")" ],infofile); port_name = [port_name; ["[" port_name_i "]"]]; # add to list [port_name_index,junk] = size(port_name); # the corresponding # index port_bond(port_name_index,:) = signed_bond; # add to port bond else port_name_i = mtt_strip_name(port_name(port_name_index,:)); |
︙ |