Overview
Comment: | *** empty log message *** |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
30c700bc0858f4db6a6672c820470032 |
User & Date: | gawthrop@users.sourceforge.net on 2000-11-16 10:00:57 |
Other Links: | branch diff | manifest | tags |
Context
2000-11-16
| ||
12:54:14 | Added checking of unit consistency at ports check-in: 288900023b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
10:00:57 | *** empty log message *** check-in: 30c700bc08 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
09:58:49 | Initial revision check-in: 110a5ffa73 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/cbg2ese.m from [c181a02f02] to [8e7282c25e].
︙ | |||
19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | + + + + + + | ## Structure matrix [states,nonstates,inputs,outputs,zero_outputs] ## ############################################################### ## ## Version control history ## ############################################################### ## ## $Id$ ## ## $Log$ ## ## Revision 1.37 2000/11/12 16:45:57 peterg ## ## Close ese file before recursive call of cbg2ese -- reopen when ## ## finished. ## ## THis prevents a new file being opened for each subsystem which fails ## ## when > 1K files opened ## ## ## ## Revision 1.36 2000/10/13 10:54:47 peterg ## ## Now writes out a unique name for each state etc ## ## ## ## Revision 1.35 2000/10/12 19:27:47 peterg ## ## Now writes the aliased args ## ## ## ## Revision 1.34 2000/09/01 08:42:44 peterg |
︙ | |||
135 136 137 138 139 140 141 | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | - - + + | ## ## Sorted out file naming sceme ## ## ## ## Revision 1.1 1996/08/08 15:53:23 peter ## ## Initial revision ## ## ## ############################################################# |
︙ | |||
174 175 176 177 178 179 180 | 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | - + | if exist(cbg_name)~=2 # Return if cbg file doesn't exist disp([cbg_name, " does not exist"]); return end; ## Setup files ese_name = [full_name_repetition, "_ese.r"]; |
︙ | |||
243 244 245 246 247 248 249 | 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | - + - + - + | eval(["subsystem=CBG.",field,".",comp_name,";"]); # Pluck out the details comp = subsystem.connections; # Connections bond_list = abs(comp); direction = sign(comp)'*[1 1]; # Convert from arrow orientated to component orientated causality comp_bonds = CBG.bonds(bond_list,:).*direction; |
︙ | |||
313 314 315 316 317 318 319 | 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | - + - + | bond_list(2:2:ports) = new_bonds; endif; endif; ## Invoke the appropriate equation-generating procedure name_r = full_name_repetition; |
︙ |