︙ | | | ︙ | |
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.169 1998/07/25 16:35:12 peterg
## Incorporated mtt_p2c (uses p2c)
##
## Revision 1.168 1998/07/25 09:44:25 peterg
## Uses Pascal as step on the way to c code -- MUCH nicer!
## State and input now use the simple default - no steady states
##
|
>
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.170 1998/07/25 19:16:22 peterg
## Sorted out sympar + switch variables - new sympars rep combines both
##
## Revision 1.169 1998/07/25 16:35:12 peterg
## Incorporated mtt_p2c (uses p2c)
##
## Revision 1.168 1998/07/25 09:44:25 peterg
## Uses Pascal as step on the way to c code -- MUCH nicer!
## State and input now use the simple default - no steady states
##
|
︙ | | | ︙ | |
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
|
print='-p';;
-c )
mtt_switches="$mtt_switches $1";
computation=c ;;
-o )
mtt_switches="$mtt_switches $1";
dae_is_ode=1 ;;
-s )
mtt_switches="$mtt_switches $1";
switches=1 ;;
-d )
directory=$2; cd $directory; shift ;;
-S )
directory=$2; shift;;
-D )
mtt_switches="$mtt_switches $1";
debug=debug ;;
|
<
<
<
|
630
631
632
633
634
635
636
637
638
639
640
641
642
643
|
print='-p';;
-c )
mtt_switches="$mtt_switches $1";
computation=c ;;
-o )
mtt_switches="$mtt_switches $1";
dae_is_ode=1 ;;
-d )
directory=$2; cd $directory; shift ;;
-S )
directory=$2; shift;;
-D )
mtt_switches="$mtt_switches $1";
debug=debug ;;
|
︙ | | | ︙ | |
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
|
echo ' mtt <system_name> <representation> <language> <parameters>'
echo 'Options: -q quiet mode -- suppress MTT banner'
echo ' -v verbose mode'
echo ' -I prints more information'
echo ' -p print environment variables'
echo ' -c c-code generation'
echo ' -o ode and dae are the same'
echo ' -s use switch (ISW and CSW) components'
echo ' -d <dir> use directory <dir>'
echo ' -t tidy mode (default)'
echo ' -u untidy mode (leaves files in current dir)'
echo ' -d <dir> use directory <dir>'
echo ' -D debug -- leave log files etc'
echo ' -A solve algebraic equations symbolically'
echo ' --version print version and exit'
|
<
|
720
721
722
723
724
725
726
727
728
729
730
731
732
733
|
echo ' mtt <system_name> <representation> <language> <parameters>'
echo 'Options: -q quiet mode -- suppress MTT banner'
echo ' -v verbose mode'
echo ' -I prints more information'
echo ' -p print environment variables'
echo ' -c c-code generation'
echo ' -o ode and dae are the same'
echo ' -d <dir> use directory <dir>'
echo ' -t tidy mode (default)'
echo ' -u untidy mode (leaves files in current dir)'
echo ' -d <dir> use directory <dir>'
echo ' -D debug -- leave log files etc'
echo ' -A solve algebraic equations symbolically'
echo ' --version print version and exit'
|
︙ | | | ︙ | |
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
|
$1_ode.p : $1_def.r $1_ode.m
mtt_m2p $1_ode.m
$1_odeo.p : $1_def.r $1_odeo.m
mtt_m2p $1_odeo.m
$1_switch.p : $1_def.r $1_switch.m
mtt_m2p $1_switch.m
$1_ode2odes.p : $1_def.r $1_simpar.p $1_numpar.p $1_state.p $1_input.p \
$1_ode.p $1_odeo.p $1_switch.p $1_ode2odes.m mtt_write.p
mtt_m2p $1_ode2odes.m
$1_ode2odes.c: $1_ode2odes.p
mtt_p2c $info_switch $1 ode2odes
#SUMMARY obs observer equations for CGPC (r)
#SUMMARY obs observer equations for CGPC (m)
|
|
>
|
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
|
$1_ode.p : $1_def.r $1_ode.m
mtt_m2p $1_ode.m
$1_odeo.p : $1_def.r $1_odeo.m
mtt_m2p $1_odeo.m
$1_switch.p : $1_def.r $1_switch.m
mtt_m2p $1_switch.m
$1_ode2odes.p : $1_def.r $1_simpar.p $1_numpar.p $1_state.p $1_input.p \
$1_ode.p $1_odeo.p $1_switch.p $1_ode2odes.m mtt_write.p \
mtt_update.p
mtt_m2p $1_ode2odes.m
$1_ode2odes.c: $1_ode2odes.p
mtt_p2c $info_switch $1 ode2odes
#SUMMARY obs observer equations for CGPC (r)
#SUMMARY obs observer equations for CGPC (m)
|
︙ | | | ︙ | |
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
|
$1_$2.vc: RCS
echo Version control on $1_$2.$VCext
ci -I $1_$2.$VCext </dev/tty ; co -l $1_$2.$VCext
# Copy Pascal utilities
mtt_write.p:
echo Copying mtt_write.p; cp $MTTPATH/trans/p/mtt_write.p .
# Copy c utilities
dsvdcmp.c: dpythag.c nrutil.c nrutil.h
echo Copying dsvdcmp.c; cp $MTTPATH/trans/c/dsvdcmp.c .
dpythag.c:
echo Copying dpythag.c; cp $MTTPATH/trans/c/dpythag.c .
nrutil.c:
|
>
>
|
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
|
$1_$2.vc: RCS
echo Version control on $1_$2.$VCext
ci -I $1_$2.$VCext </dev/tty ; co -l $1_$2.$VCext
# Copy Pascal utilities
mtt_write.p:
echo Copying mtt_write.p; cp $MTTPATH/trans/p/mtt_write.p .
mtt_update.p:
echo Copying mtt_update.p; cp $MTTPATH/trans/p/mtt_update.p .
# Copy c utilities
dsvdcmp.c: dpythag.c nrutil.c nrutil.h
echo Copying dsvdcmp.c; cp $MTTPATH/trans/c/dsvdcmp.c .
dpythag.c:
echo Copying dpythag.c; cp $MTTPATH/trans/c/dpythag.c .
nrutil.c:
|
︙ | | | ︙ | |