︙ | | |
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
+
+
+
+
|
# Copyright (C) 2001 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.368 2002/12/12 17:18:41 geraint
## Fixed [ 647664 ] Namespace clash: LANG
## Prepended MTT_ to SYS, OPTS and LANG environment variables.
##
## Revision 1.367 2002/12/09 00:14:08 geraint
## Hierarchical dia and mixed dia/fig bond graphs now working.
##
## Revision 1.366 2002/12/06 21:56:21 geraint
## Cosmetic change: removed commented-out lines.
##
## Revision 1.365 2002/12/06 12:45:25 gawthrop
|
︙ | | |
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
|
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
|
+
+
+
|
level=$2; shift ;;
-A )
mtt_switches="$mtt_switches $1";
Solve='-A';;
-abg )
mtt_switches="$mtt_switches $1";
start_at_abg='yes';;
-ibg )
mtt_switches="$mtt_switches $1";
use_ibg='yes';;
-stdin )
mtt_switches="$mtt_switches $1";
stdin=stdin;;
-sub ) mtt_switches="$mtt_switches $1 $2";
sub='-sub';
subsystem="_"$2;
shift;;
|
︙ | | |
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
|
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
|
+
|
echo ' mtt <system_name> <representation> <language>'
echo ' mtt <system_name> <representation> <language> <parameters>'
echo 'Options: -q quiet mode -- suppress MTT banner'
echo ' -A solve algebraic equations symbolically'
echo ' -D debug -- leave log files etc'
echo ' -I prints more information'
echo ' -abg start at abg.m representation'
echo ' -ibg use intermediate representation to transform rbg to abg (EXPERIMENTAL)'
echo ' -c c-code generation'
echo ' -cc C++ code generation'
echo ' -cr Use cr before resolving equations'
echo ' -d <dir> use directory <dir>'
echo ' -dr <dir> use files contained in <dir>'
echo ' -dc Maximise derivative (not integral) causality'
echo ' -i <implicit|euler|rk4|dassl> Use implicit, euler, rk4 or dassl integration'
|
︙ | | |
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
|
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
|
+
+
+
+
+
+
+
+
+
+
+
+
|
#Raw bond graph to acausal bond graph: mfile
ifneq ($start_at_abg,yes)
%_abg.m: %_abg.dia %_lbl.txt %_alias.m
abg_dia2m \$*
(sh \$*_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null || exit 1') || exit 1
ifneq ($use_ibg,yes)
%_abg.m: %_rbg.m %_alias.m %_sub.sh %_icd.m
(sh \$*_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null || exit 1') || exit 1
rbg2abg_m $info_switch \$*
else
.PRECIOUS: %_ibg.m
%_ibg.m: %_rbg.m
@echo "EXPERIMENTAL: Creating \$@"
rbg2ibg_m $info_switch \$*
%_abg.m: %_ibg.m %_alias.m %_sub.sh %_icd.m
@echo "EXPERIMENTAL: Creating \$@"
(sh \$*_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null || exit 1') || exit 1
ibg2abg_m $info_switch \$*
endif
endif
#SUMMARY cbg* causal bond graph (m)
#Acausal bond graph to causal bond graph: mfile
$1_cbg.m: $1_abg.m
abg2cbg_m $info_switch $causality_switch $1
|
︙ | | |