Overview
| Comment: | Put default values in _simpar.m in case of missing values in txt file |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
1d554350612aca6445b387028e0116d1 |
| User & Date: | gawthrop@users.sourceforge.net on 2002-04-18 17:51:11.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2002-04-18
| ||
| 18:05:19 | mailman style check-in: d4d011deb8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 17:51:11 | Put default values in _simpar.m in case of missing values in txt file check-in: 1d55435061 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 17:14:11 | Updated -example to --example to correspond to new xmtt check-in: 8788b600f5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/mtt_txt2m
from [428f070229]
to [4f5082efa1].
| ︙ | ︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %% Revision 1.14 2001/07/13 04:54:04 geraint # %% Branch merge: numerical-algebraic-solution back to main. # %% # %% Revision 1.13.4.2 2001/07/09 00:24:58 geraint # %% input rep: Removed input name mapping, left state name mapping. # %% # %% Revision 1.13.4.1 2001/06/26 01:01:28 geraint | > > > | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %% Revision 1.15 2002/03/26 12:00:37 geraint # %% Escaped characters to eliminate awk warnings. # %% # %% Revision 1.14 2001/07/13 04:54:04 geraint # %% Branch merge: numerical-algebraic-solution back to main. # %% # %% Revision 1.13.4.2 2001/07/09 00:24:58 geraint # %% input rep: Removed input name mapping, left state name mapping. # %% # %% Revision 1.13.4.1 2001/06/26 01:01:28 geraint |
| ︙ | ︙ | |||
185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
## Special for input rep
if [ "$representation" = "input" ]; then
echo >> $outfile
echo "## States" >>$outfile
mtt_name2array $system state >> $outfile # Set up state by name
fi
# Write out the code from the txt file
echo >> $outfile
echo "## User defined code from $1_$2.txt" >> $outfile
cat $1_$2.txt | strip_comments | grep -v METHOD |\
awk -F# 'BEGIN{
quote = "\047";
| > > > > > > > > > > > > > > > > > | 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
## Special for input rep
if [ "$representation" = "input" ]; then
echo >> $outfile
echo "## States" >>$outfile
mtt_name2array $system state >> $outfile # Set up state by name
fi
## Special for simpar rep
if [ "$representation" = "simpar" ]; then
cat >> $outfile<<EOF
## Defaults (in case of missing values in txt file)
mttsimpar.first = 0.0;
mttsimpar.last = 10.0;
mttsimpar.dt = 0.1;
mttsimpar.stepfactor = 1;
mttsimpar.wmin = -1;
mttsimpar.wmax = 2;
mttsimpar.wsteps = 100;
mttsimpar.input = 1;
EOF
fi
# Write out the code from the txt file
echo >> $outfile
echo "## User defined code from $1_$2.txt" >> $outfile
cat $1_$2.txt | strip_comments | grep -v METHOD |\
awk -F# 'BEGIN{
quote = "\047";
|
| ︙ | ︙ |