Overview
Comment: | More informative message about port bonds incompatible with ports |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
ad3bd0df1a7ba9e235546df4abcf0c24 |
User & Date: | gawthrop@users.sourceforge.net on 1997-01-05 12:25:59 |
Other Links: | branch diff | manifest | tags |
Context
1997-01-05
| ||
19:34:35 | Don't write globals which are already assigned to a number. check-in: 16bd2610f6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:25:59 | More informative message about port bonds incompatible with ports check-in: ad3bd0df1a user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1997-01-02
| ||
11:21:17 |
Now assumes all components bonds etc at depth zero in fig file. Ie anything at depth>0 is ignored. Thanks to Donald for suggesting this. check-in: a79c1594e3 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/abg2cbg.m from [48fbab77ba] to [52c4f8c2fd].
︙ | ︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | % [bonds,status] = abg2cbg(system_name, system_type, full_name, port_bonds, infofile) % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %% Revision 1.13 1996/12/31 11:49:09 peterg % %% Don't copy port bond causality if already set -- allows subsystem % %% causality to be preset directely on named SS. % %% % %% Revision 1.12 1996/12/31 11:42:36 peterg % %% *** empty log message *** % %% | > > > > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | % [bonds,status] = abg2cbg(system_name, system_type, full_name, port_bonds, infofile) % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %% Revision 1.14 1996/12/31 16:20:42 peterg % %% Just write causality information at top level -- it gets a bit % %% voluminous if written at deeper levels. % %% % %% Revision 1.13 1996/12/31 11:49:09 peterg % %% Don't copy port bond causality if already set -- allows subsystem % %% causality to be preset directely on named SS. % %% % %% Revision 1.12 1996/12/31 11:42:36 peterg % %% *** empty log message *** % %% |
︙ | ︙ | |||
130 131 132 133 134 135 136 | % If not at top level, then sort out the port bonds. if at_top_level==0 % Find number of port bonds [n_port_bonds,columns] = size(port_bonds); % Check compatibility - if ok copy port bonds to the internal bonds list. if n_port_bonds~=n_ports | | | | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | % If not at top level, then sort out the port bonds. if at_top_level==0 % Find number of port bonds [n_port_bonds,columns] = size(port_bonds); % Check compatibility - if ok copy port bonds to the internal bonds list. if n_port_bonds~=n_ports mtt_info(sprintf('%s: %1.0f port bonds incompatible with %1.0f ports', ... full_name, n_port_bonds, n_ports), infofile); else % Copy the port bonds -- but only if not set already for i = 1:n_ports % The port SSs come first j = abs(components(i,1)); % Get the bonds attached to the ports direction = -sign(components(i,1)); for k=1:2 if bonds(j,k)==0 % causality not set yet - so copy. bonds(j,k) = direction*port_bonds(i,k); |
︙ | ︙ |