Index: mttroot/mtt/bin/trans/abg2cbg_m ================================================================== --- mttroot/mtt/bin/trans/abg2cbg_m +++ mttroot/mtt/bin/trans/abg2cbg_m @@ -11,10 +11,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +# Revision 1.10 1996/12/04 21:51:02 peterg +# Now uses filenum instead of line name. +# Uses fopen +# # Revision 1.9 1996/11/06 15:49:33 peterg # Cahged $MATRIX to $RMATRIX # # Revision 1.8 1996/08/25 09:31:49 peter # More error handling. @@ -110,27 +114,28 @@ #Inform user echo Creating $1_cbg.m echo Creating $1_type.sh # Use matrix manipulation to accomplish the transformation -$RMATRIX >abg2cbg_m.log 2>mtt_error.txt << EOF +$MATRIX >abg2cbg_m.log 2>mtt_error.txt << EOF infofile= '$infofile'; typefile = '$typefile'; infofilenum = fopen(infofile,'w'); typefilenum = fopen(typefile,'w'); %Convert from acausal to causal bond graph in m-file form. - system_name='$1' + system_name='$1'; port_bonds = []; - [cbonds,status] = abg2cbg(system_name, '', '', port_bonds, ... - typefilenum, infofile); + port_status = []; + [cbonds,status] = abg2cbg(system_name, '', '', port_bonds, port_status, ... + typefilenum, infofilenum); EOF cat mtt_info.txt # cp $1_$1_cbg.m $1_cbg.m 2>> mtt_error.txt # Print errors, if any. mtt_error mtt_error.txt Index: mttroot/mtt/bin/trans/cbg2ese_m2r ================================================================== --- mttroot/mtt/bin/trans/cbg2ese_m2r +++ mttroot/mtt/bin/trans/cbg2ese_m2r @@ -14,10 +14,14 @@ ## Version control history ############################################################### ## $Id$ ## ## $Log$ +## Revision 1.11 1997/12/16 18:05:03 peterg +## Increased size of structure vector by on to include unknown_inputs as +## 6th element +## ## Revision 1.10 1997/04/15 09:18:26 peterg ## Added structure file ## # Revision 1.9 1996/12/07 18:21:25 peterg # Now uses fopen + file number @@ -63,11 +67,11 @@ echo Creating $eqnfile echo Creating $deffile echo Creating $structurefile # Use matrix manipulation to accomplish the transformation -$RMATRIX > cbg2ese_m2r.log 2>mtt_error.txt << EOF +$MATRIX > cbg2ese_m2r.log 2>mtt_error.txt << EOF infofile = '$infofile';; infofilenum = fopen(infofile,'w'); structurefile = '$structurefile';; structurefilenum = fopen(structurefile,'w'); Index: mttroot/mtt/bin/trans/cbg_m2fig ================================================================== --- mttroot/mtt/bin/trans/cbg_m2fig +++ mttroot/mtt/bin/trans/cbg_m2fig @@ -16,10 +16,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.8 1996/12/07 19:23:07 peterg +## Registered agian. +## # Revision 1.7 1996/11/09 19:04:34 peterg # Removed cp $1_$1_cbg.fig $1_cbg.fig. # ## Revision 1.6 1996/11/06 15:58:46 peterg ## Changed Matrix to RMATRIX @@ -56,11 +59,11 @@ #Inform user echo Creating $1_cbg.fig # Use matrix manipulation to accomplish the transformation -$RMATRIX > cbg_m2fig.log 2>>mtt_error.txt << EOF +$MATRIX > cbg_m2fig.log 2>>mtt_error.txt << EOF system_name = '$1'; thick = 3; length = 150; red = 4; blue = 1; green = 12; font = 18; cbg2fig(system_name, ... '', '', ...