Index: mttroot/mtt/bin/trans/m/abg2cbg.m ================================================================== --- mttroot/mtt/bin/trans/m/abg2cbg.m +++ mttroot/mtt/bin/trans/m/abg2cbg.m @@ -18,10 +18,13 @@ ## ############################################################### ## ## Version control history ## ############################################################### ## ## $Id$ ## ## $Log$ + ## ## Revision 1.51 2004/02/20 20:42:40 geraint + ## ## Initialize Flipped.cons with [] instead of "". + ## ## ## ## Revision 1.50 2003/03/13 15:18:39 gawthrop ## ## Now uses __ to delimit subsystems in names. ## ## ## ## Revision 1.49 2001/07/26 05:02:53 geraint ## ## Now writes cbg.fig when under-causal (again). @@ -307,10 +310,16 @@ name port port_bond_direction port.connections + if (i > max (size (port_bond_direction))) + the_system = sprintf ("\"%s:%s\"", system_type, system_name); + mtt_error (sprintf ("Please check that %s has no disconnected ports.", the_system)); + mtt_error (sprintf ("abg2cbg: port_bond_direction(%d) does not exist.", i)); + exit(1); + end if (sign(port.connections)!=port_bond_direction(i)) # Direction different? eval(["ABG.ports.",name,".connections = - port.connections;"]); # Flip direction at port Flipped.ports=[Flipped.ports;name]; # Remember which port has been flipped bond_index=abs(port.connections); # Index of bond on port mtt_info(sprintf("Flip port %s on %s"\