Overview
Comment:About to go to new abg format.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 6b1935a6ad28b9a60a71c406ca63033766b63a1c4613a9c635e8ed03f3f3025e
User & Date: gawthrop@users.sourceforge.net on 1998-08-24 07:35:03
Other Links: branch diff | manifest | tags
Context
1998-08-24
09:31:12
Revised for new data structures check-in: ec0a59e6a5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
07:35:03
About to go to new abg format. check-in: 6b1935a6ad user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-08-19
08:46:00
Now translates ; % to # check-in: 0020be47fc user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/abg2cbg.m from [5675b837da] to [1f987172ec].

15
16
17
18
19
20
21



22
23
24
25
26
27
28
% [bonds,status] = abg2cbg(system_name, system_type, full_name, port_bonds, infofile)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %% Revision 1.32  1998/07/28 19:06:11  peterg
% %% *** empty log message ***
% %%
% %% Revision 1.31  1998/07/28 13:15:10  peterg
% %% Vector SS ports included.
% %%
% %% Revision 1.30  1998/07/27 20:29:49  peterg







>
>
>







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% [bonds,status] = abg2cbg(system_name, system_type, full_name, port_bonds, infofile)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.33  1998/07/29 13:36:37  peterg
% %% Don't set port status if there aren't any ports.
% %%
% %% Revision 1.32  1998/07/28 19:06:11  peterg
% %% *** empty log message ***
% %%
% %% Revision 1.31  1998/07/28 13:15:10  peterg
% %% Vector SS ports included.
% %%
% %% Revision 1.30  1998/07/27 20:29:49  peterg
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
  mtt_error(sprintf('%s: %1.0f port bonds incompatible with %1.0f ports', ...
               full_name, n_port_bonds, n_ports), errorfile);

  else % Copy the port bonds & status
    for j = 1:n_port_bonds
      jj = port_bond_index(j);
      for k = 1:2
#	if bonds(jj,k)==0 % only copy if not already set
	bonds(jj,k) = port_bonds(j,k);
#	end;
      end;
#      status(1:N_ports) = port_status;
    end
  end
else
  n_port_bonds=0;
end;







|

|







254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
  mtt_error(sprintf('%s: %1.0f port bonds incompatible with %1.0f ports', ...
               full_name, n_port_bonds, n_ports), errorfile);

  else % Copy the port bonds & status
    for j = 1:n_port_bonds
      jj = port_bond_index(j);
      for k = 1:2
	if bonds(jj,k)==0 % only copy if not already set
	bonds(jj,k) = port_bonds(j,k);
	end;
      end;
#      status(1:N_ports) = port_status;
    end
  end
else
  n_port_bonds=0;
end;


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]