Overview
Comment: | Added rule to create MTTyz vector (unknown inputs). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1a74bd58814feffa3efc3fc9c4a69fbe |
User & Date: | geraint@users.sourceforge.net on 2004-08-29 13:12:19 |
Other Links: | branch diff | manifest | tags |
Context
2004-08-29
| ||
13:13:24 | Vectorises sorted algebraic equations. check-in: 41edb4bf41 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
13:12:19 | Added rule to create MTTyz vector (unknown inputs). check-in: 1a74bd5881 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
13:11:21 | Writes MTTyz vector in the same format as MTTx and MTTy: MTTyz($d,1) check-in: 8fce5e129b user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/ese_r2make.pl from [f976c5ad02] to [499a5fe272].
︙ | ︙ | |||
112 113 114 115 116 117 118 119 120 121 | #------------------------------------------------------------------------------- sub write_make { # create lists of rates, states and tmpvars so that # separate rules can be created in the makefile my @list_of_rates; my @list_of_outputs; my @list_of_tmpvars; for my $lvar (sort (keys %expressions)) { | > | | > > > | 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 137 138 139 140 141 142 143 144 | #------------------------------------------------------------------------------- sub write_make { # create lists of rates, states and tmpvars so that # separate rules can be created in the makefile my @list_of_rates; my @list_of_outputs; my @list_of_unknown; my @list_of_tmpvars; for my $lvar (sort (keys %expressions)) { if ($lvar =~ /^MTTdX\(/) { @list_of_rates = (@list_of_rates, $lvar) ; } elsif ($lvar =~ /^MTTy\(/) { @list_of_outputs = (@list_of_outputs, $lvar); } elsif ($lvar =~ /^MTTyz/) { @list_of_unknown = (@list_of_unknown, $lvar); } elsif ($lvar =~ /^${sys}_/) { @list_of_tmpvars = (@list_of_tmpvars, $lvar); } else { die "MTT Error:\nese_r2make, unclassified variable: $lvar\n"; } } my @sorted_rates = sort (@list_of_rates); my @sorted_outputs = sort (@list_of_outputs); my @sorted_unknown = sort (@list_of_unknown); my @sorted_tmpvars = sort (@list_of_tmpvars); # write the header open (ESE, ">$outfile") or die ("MTT Error:\nese_r2make, cannot open $outfile\n"); |
︙ | ︙ | |||
151 152 153 154 155 156 157 | "#\n" . "# Created by MTT: $date\n\n"; # write the rules that external programs use print ESE "all: declare_tmpvars MTTdX MTTy\n\n" . "MTTdX: @sorted_rates\n\n" . | | > | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | "#\n" . "# Created by MTT: $date\n\n"; # write the rules that external programs use print ESE "all: declare_tmpvars MTTdX MTTy\n\n" . "MTTdX: @sorted_rates\n\n" . "MTTy: @sorted_outputs\n\n" . "MTTyz: @sorted_unknown\n\n"; # set the default output format: # double tmpvar; # lvalue := expression; print ESE "# default output format\n" . "ifeq (\"\$(assignment)\",\"\")\n" . |
︙ | ︙ |