Overview
Comment: | Added causal stroke information to ibg.m |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
99a7320daf3784935a207d12407a0c57 |
User & Date: | geraint@users.sourceforge.net on 2003-01-07 21:47:35 |
Other Links: | branch diff | manifest | tags |
Context
2003-01-09
| ||
09:57:42 | Added dummy first argument (comp_type) to cr check-in: c76c510fa6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2003-01-07
| ||
21:47:35 | Added causal stroke information to ibg.m check-in: 99a7320daf user: geraint@users.sourceforge.net tags: origin/master, trunk | |
18:09:21 | More informative error message. check-in: d2cfe6e011 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/rbg2ibg.m from [5558cbb136] to [4291baf4d9].
︙ | |||
71 72 73 74 75 76 77 | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | - + | port_coord(i,1)/scale, port_coord(i,2)/scale, \ deblank(port_name(i,:)))); endif ## The (signed) bond corresponding to the ith port label port_bond(i) = near_bond(1) * sign(1.5 - near_bond(2)); endfor |
︙ | |||
95 96 97 98 99 100 101 | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | - - + | ## Locate the components at the ends of each bond ## col 1 of comp_near_bond contains component nearest to the arrow end ## col 2 of comp_near_bond contains component nearest other end for i = 1:n_bonds comp_near_bond(i,:) = adjcomp(arrow_end(i,:), other_end(i,:), \ rcomponents); |
︙ | |||
142 143 144 145 146 147 148 149 | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | + - + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + | else # bi-causal stroke stroke_direction = stroke(1,:) - stroke(stroke_index(1),:); flow_side = stroke_direction * arrow_vector(j,:)' > 0; causality(j,1+flow_side) = 2 * which_end - 1; endif endfor endif causality |
Modified mttroot/mtt/bin/trans/m/write_ibg.m from [8fcc691ebd] to [65712522f3].
︙ | |||
9 10 11 12 13 14 15 | 9 10 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 | - + - + + + + - - + + + + | format_hp = " %s.bonds.b%i.head.ports\t= \"%s\";\n"; format_tp = " %s.bonds.b%i.tail.ports\t= \"%s\";\n"; format_ce = " %s.bonds.b%i.causality.effort\t= \"%s\";\n"; format_cf = " %s.bonds.b%i.causality.flow\t= \"%s\";\n"; fprintf(fid, "## -*-octave-*-\n\n"); fprintf(fid, "function [%s] = %s_ibg\n\n", system_name, system_name); |