Overview
Comment: | Put equation on one line - easier for gino to parse |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b680013b7ea00ad8629feefcb93911fb |
User & Date: | gawthrop@users.sourceforge.net on 2003-03-24 12:17:10 |
Other Links: | branch diff | manifest | tags |
Context
2003-03-24
| ||
12:18:00 | Default file when no second argument check-in: 742bd32c68 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:17:10 | Put equation on one line - easier for gino to parse check-in: b680013b7e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:04:55 | Added -I switch check-in: 946f676f26 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/equation.m from [59fe75aa47] to [20f1c9cc29].
︙ | ︙ | |||
66 67 68 69 70 71 72 | a_comma = ""; else a_comma = ","; endif ## Set up first line of RHS | | | | | | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | a_comma = ""; else a_comma = ","; endif ## Set up first line of RHS RHS1 = sprintf("%s%s%s%s%s%s%s%s", ... cr, lp, args, a_comma, cause_name, c_comma, port_name, c_comma); ## Set up rest of RHS - the input variables, causality and ports. RHS2 = ""; for i=1:nports RHS2 = sprintf("%s\t%s", ... RHS2, varname(name, inbonds(i), incauses(i))); if strcmp(cr,"")==0 # add the causality & port info RHS2 = sprintf("%s,%s,%i", ... RHS2, cause2name(incauses(i)), inports(i)); endif if (i<nports) # Add a comma RHS2 = sprintf("%s,",RHS2); else RHS2 = sprintf("%s",RHS2); endif endfor ## Set up equation eqn = sprintf("%s := %s%s%s;\n", LHS, RHS1, RHS2, rp); endfunction |