Overview
Comment: | Now vectorises 0 and 1 junctions !! |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
869df7d510ac6ceb93764964d8eb265b |
User & Date: | gawthrop@users.sourceforge.net on 1999-10-18 05:16:51 |
Other Links: | branch diff | manifest | tags |
Context
1999-10-18
| ||
07:36:09 | Initial revision check-in: 3b8343ded9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
05:16:51 | Now vectorises 0 and 1 junctions !! check-in: 869df7d510 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
04:08:46 |
Now computes n_vector_bonds -- number apparent (maybe vector) bonds per component. Neeeded to vectorise junctions. check-in: a4fc0123b6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/write_abg.m from [9c559cdd74] to [ed7dfd3c25].
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - + + + + |
|
︙ | |||
41 42 43 44 45 46 47 48 49 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + + - - + - - - - - - - + + + + + + + + - + - - - + + + + + + + + + + + - - - - - - + + + + + - - - - - - + + + + - | fprintf(fid,"# Generated by MTT on %s",ctime(time)); fprintf(fid,"# The file is in Octave format\n"); fprintf(fid,"\n# Subsystems and Ports\n"); i_port=0; SubsystemList = ""; PortList =""; for i=1:N eval(["[comp_type, name, cr, arg, repetitions] = ", system_name, "_cmp(i);"]); c = nozeros(connections(i,:));# Connections to this component m = length(c); # Number of connections ## Vectorise junctions? n_bonds = n_vector_bonds(i); if strcmp(comp_type,"0")||strcmp(comp_type,"1") n_extra = m/n_bonds; m_extra = n_bonds; else n_extra = 1; m_extra = m; endif if index(name,"[")==0 # Not a port for i_extra = 1:n_extra; if i_extra>1 # Extras new_name = sprintf("%sv%i", name,i_extra); else new_name = name; endif |
︙ |