Overview
Comment: | Now uses filenum instead of line name. Uses fopen |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
86e3cc0ec8dd23259944106af5d735b3 |
User & Date: | gawthrop@users.sourceforge.net on 1996-12-04 21:51:02 |
Other Links: | branch diff | manifest | tags |
Context
1996-12-04
| ||
21:52:01 | Uses filenum and fopen instead of filename. check-in: aaafe23054 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
21:51:02 |
Now uses filenum instead of line name. Uses fopen check-in: 86e3cc0ec8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
21:49:47 |
Compares full-name with empty string (instead of testing for zero length) check-in: 558b159355 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/abg2cbg_m from [d9e73ea7a6] to [96dba78e8a].
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Acausal bond graph to causal bond graph: mfile format ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ # Revision 1.8 1996/08/25 09:31:49 peter # More error handling. # ## Revision 1.7 1996/08/25 09:22:55 peter ## # Print errors, if any. ## mtt_error error.txt ## | > > > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Acausal bond graph to causal bond graph: mfile format ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ # 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. # ## Revision 1.7 1996/08/25 09:22:55 peter ## # Print errors, if any. ## mtt_error error.txt ## |
︙ | ︙ | |||
90 91 92 93 94 95 96 | # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. | | > | > > > > > | < < < | > | | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. infofile='mtt_info.txt' typefile="$1_type.sh" # Remove the old log file rm -f abg2cbg_m.log rm -f $1_cbg.m rm -f $typefile rm -f $infofile #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 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' port_bonds = []; [cbonds,status] = abg2cbg(system_name, '', '', port_bonds, ... typefilenum, infofile); 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 |