Overview
Comment: | Fixed a few bugs. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c6c07ee1f55dcc2ba4d21c868bbbe979 |
User & Date: | gawthrop@users.sourceforge.net on 1998-07-28 19:05:46 |
Other Links: | branch diff | manifest | tags |
Context
1998-07-28
| ||
19:06:11 | *** empty log message *** check-in: e27b94cba2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
19:05:46 | Fixed a few bugs. check-in: c6c07ee1f5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
19:05:12 | Sttill has vector SS port bug? check-in: f4681edf0d user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/comp/simple/SS_eqn.m from [ef3b91c897] to [10e2dbaa4d].
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | + + + | function structure = SS_eqn(name,Bond_number,Bonds,Direction,cr,args, ... structure,filenum); disp("SS_eqn"); name,Bond_number,Bonds,Direction % Set up globals to count the component inputs and outputs. This relies on % the named SS (the ports) being in the correct order. Using globals here % avoids changing the common argument list for all _eqn files for something % which is only used for named SS components. global local_u_index global local_y_index global at_top_level |
︙ | |||
24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | + + + | % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %% Revision 1.21 1998/07/28 14:21:31 peterg % %% Vector SS ports. % %% % %% Revision 1.20 1998/07/08 14:42:52 peterg % %% Removed the annoying info message - it causes problems with big % %% systems % %% % %% Revision 1.19 1998/07/08 11:33:54 peterg % %% Replace mtt_info by mtt_error when appropriate % %% |
︙ | |||
138 139 140 141 142 143 144 | 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | - + - - - - + + + + + - + | n_bonds = length(Bond_number) # Multi port? for i=1:n_bonds # Loop over all the bonds bond_number = Bond_number(i); bonds = Bonds(i,:); direction = Direction(i,:); |
︙ | |||
171 172 173 174 175 176 177 | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | - + - + - + - + - + - + - + - + - + - + | end; else # Now do SS which are not ports % Effort if strcmp(effort_attribute, "external") if bonds(1,1)==-1 % Source inputs = inputs+1; fprintf(filenum, "%s := MTTu(%d,1);\n", ... |