︙ | | | ︙ | |
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Copyright (C) 2001 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.416 2006/09/27 13:03:20 geraint
## Fixed fr.view and enabled commands to directly build ??fr.m
##
## Revision 1.415 2006/02/09 23:58:24 geraint
## rtxi: builds but does not yet work.
##
## Revision 1.414 2005/11/18 17:23:19 geraint
|
>
>
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright (C) 2001 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.417 2008/07/22 17:37:01 geraint
## Fixed case of MTT_EXAMPLES
##
## Revision 1.416 2006/09/27 13:03:20 geraint
## Fixed fr.view and enabled commands to directly build ??fr.m
##
## Revision 1.415 2006/02/09 23:58:24 geraint
## rtxi: builds but does not yet work.
##
## Revision 1.414 2005/11/18 17:23:19 geraint
|
︙ | | | ︙ | |
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
|
mtt_switches="$mtt_switches $1"; read_dir=$1
if [ -d "${read_dir}" ]; then
read_dirs="${read_dirs} ${read_dir}"
else
echo "${read_dir} does not exist - ignoring"
fi
;;
-viewlevel ) mtt_switches="$mtt_switches $1 $2";
viewlevel=$2;
shift;;
--version)
echo 'MTT version' $version; exit;;
--versions)
mtt_versions; exit;;
|
>
>
>
|
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
|
mtt_switches="$mtt_switches $1"; read_dir=$1
if [ -d "${read_dir}" ]; then
read_dirs="${read_dirs} ${read_dir}"
else
echo "${read_dir} does not exist - ignoring"
fi
;;
-nas ) no_alpha_sort="no_alpha_sort";
mtt_switches="$mtt_switches $1";
;;
-viewlevel ) mtt_switches="$mtt_switches $1 $2";
viewlevel=$2;
shift;;
--version)
echo 'MTT version' $version; exit;;
--versions)
mtt_versions; exit;;
|
︙ | | | ︙ | |
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
|
-cr use cr before resolving equations
-D debug -- leave log files etc
-d <dir> use directory <dir>
-dc maximise derivative (not integral) causality
-dr <dir> use files contained in <dir>
-I prints more information
-i <method> integration method: implicit|euler|rk4|dassl
-o ode is same as dae
-oct use oct files in place of m files where appropriate
-opt optimise code generation (equivalent to -optl)
-optl locally optimise code generation (line-by-line)
-ntmpvar <N> declare <N> temporary variables (default=$num_tmp_var)
-p print environment variables
-partition partition hierachical system
|
>
|
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
|
-cr use cr before resolving equations
-D debug -- leave log files etc
-d <dir> use directory <dir>
-dc maximise derivative (not integral) causality
-dr <dir> use files contained in <dir>
-I prints more information
-i <method> integration method: implicit|euler|rk4|dassl
-nas no alphabetic sort (of components)
-o ode is same as dae
-oct use oct files in place of m files where appropriate
-opt optimise code generation (equivalent to -optl)
-optl locally optimise code generation (line-by-line)
-ntmpvar <N> declare <N> temporary variables (default=$num_tmp_var)
-p print environment variables
-partition partition hierachical system
|
︙ | | | ︙ | |
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
|
$1_rep.txt:
makerep_txt $1;
endif
#SUMMARY rbg raw bond graph (m)
#Raw bond graph: fig file to mfile
$1_rbg.m: $1_abg.fig $1_lbl.txt
rbg_fig2m $1
$1_cmp.m: $1_lbl.txt $1_cmp.txt
lbl2cmp_txt2m.pl --sys=$1 --$debug
$1_fig.fig: $1_rbg.m
#SUMMARY sabg stripped acausal bond graph (fig)
|
|
|
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
|
$1_rep.txt:
makerep_txt $1;
endif
#SUMMARY rbg raw bond graph (m)
#Raw bond graph: fig file to mfile
$1_rbg.m: $1_abg.fig $1_lbl.txt
rbg_fig2m $1 $no_alpha_sort
$1_cmp.m: $1_lbl.txt $1_cmp.txt
lbl2cmp_txt2m.pl --sys=$1 --$debug
$1_fig.fig: $1_rbg.m
#SUMMARY sabg stripped acausal bond graph (fig)
|
︙ | | | ︙ | |