Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.188 1998/08/27 08:33:21 peterg +## New reduce integration methods - euler/Implicit only +## ## Revision 1.187 1998/08/25 20:06:56 peterg ## New data structure for abg.m and cbg.m ## ## Revision 1.186 1998/08/18 10:49:05 peterg ## VERSION 3.1 release @@ -718,10 +721,13 @@ mtt_switches="$mtt_switches $1 $2"; level=$2; shift ;; -A ) mtt_switches="$mtt_switches $1"; Solving='Solving';; + -abg ) + mtt_switches="$mtt_switches $1"; + start_at_abg='yes';; --version) echo MTT $version; exit;; --versions) mtt_versions; exit;; *) @@ -778,10 +784,11 @@ echo ' mtt ' 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 ' -c c-code generation' echo ' -d use directory ' echo ' -d use directory ' echo ' -o ode and dae are the same' echo ' -p print environment variables' @@ -851,10 +858,22 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. EOF exit fi + +# Start at abg representation +if [ -n "$start_at_abg" ]; then + if [ -f "$1_abg.m" ]; then + if [ "$quiet" != "quiet" ]; then + echo Starting from $1_abg.m + fi + else + echo $1_abg.m does not exist + exit + fi +fi # Clean up if [ "$1" = "clean" ]; then echo 'Removing intermediate files' rm -fr MTT_work