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.151 1998/05/23 16:18:37 peterg
## ordinary differential equation.m files generated with the new ode2lang
## method.
##
## Revision 1.150 1998/05/19 19:47:37 peterg
## Updated the odesso representation to use simpar file.
##
|
>
>
>
|
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.152 1998/05/24 15:43:10 peterg
## Added symbolic solution of alg. equations (-A)
##
## Revision 1.151 1998/05/23 16:18:37 peterg
## ordinary differential equation.m files generated with the new ode2lang
## method.
##
## Revision 1.150 1998/05/19 19:47:37 peterg
## Updated the odesso representation to use simpar file.
##
|
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
|
## Revision 1.2 1996/08/05 19:50:55 peter
## Put in fig.fig target.
##
## Revision 1.1 1996/08/04 17:29:42 peter
## Initial revision
##
###############################################################
#Check $MTTPATH has been set
mtt_check_var "$MTTPATH" "MTTPATH"
# MTT recursion level is zero unless explicitly set
level=0
#Computation mode is octave by default
computation=octave
#By default, the dae and ode representations are different
|
>
>
>
>
|
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
|
## Revision 1.2 1996/08/05 19:50:55 peter
## Put in fig.fig target.
##
## Revision 1.1 1996/08/04 17:29:42 peter
## Initial revision
##
###############################################################
#Check $MTTPATH has been set
mtt_check_var "$MTTPATH" "MTTPATH"
#Version
version='2.9++'
# MTT recursion level is zero unless explicitly set
level=0
#Computation mode is octave by default
computation=octave
#By default, the dae and ode representations are different
|
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
|
tidy=untidy ;;
-l )
mtt_switches="$mtt_switches $1";
level=$2; shift ;;
-A )
mtt_switches="$mtt_switches $1";
Solving='Solving';;
*)
echo "$1 is an invalid argument - ignoring" ;;
esac
shift
done
#Print header if not in quiet (-q) mode.
if [ "$quiet" != "quiet" ]; then
echo
echo 'MTT (Model Transformation Tools) version 2.9++'
echo '($Date$)'
echo 'This is free software with ABSOLUTELY NO WARRANTY.'
echo 'Type `mtt warranty'\' 'for details.'
echo
# Print current directory if in -d mode
if [ -n "$directory" ]; then
echo Using directory $directory
|
>
>
>
>
|
|
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
|
tidy=untidy ;;
-l )
mtt_switches="$mtt_switches $1";
level=$2; shift ;;
-A )
mtt_switches="$mtt_switches $1";
Solving='Solving';;
--version)
echo MTT $version; exit;;
--versions)
mtt_versions; exit;;
*)
echo "$1 is an invalid argument - ignoring" ;;
esac
shift
done
#Print header if not in quiet (-q) mode.
if [ "$quiet" != "quiet" ]; then
echo
echo 'MTT (Model Transformation Tools) version' $version
echo '($Date$)'
echo 'This is free software with ABSOLUTELY NO WARRANTY.'
echo 'Type `mtt warranty'\' 'for details.'
echo
# Print current directory if in -d mode
if [ -n "$directory" ]; then
echo Using directory $directory
|
646
647
648
649
650
651
652
653
654
655
656
657
658
659
|
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'
exit
fi
fi
if [ "$1" = "info" ] && [ "$3" = "" ]; then
echo Invoking info
|
>
>
|
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
|
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'
echo ' --versions print version of mtt and components and exit'
exit
fi
fi
if [ "$1" = "info" ] && [ "$3" = "" ]; then
echo Invoking info
|