Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.259 2000/09/11 08:21:27 peterg +## Introduced MML - but for _tf rep only. +## ## Revision 1.258 2000/09/11 08:17:28 peterg ## Extended _simp.r to incude default switches ## ## Revision 1.257 2000/09/02 15:53:53 peterg ## Now does partitioning up to dae.view @@ -1005,10 +1008,13 @@ m='oct';; -opt ) mtt_switches="$mtt_switches $1"; optimise='-optimise';; -partition ) mtt_switches="$mtt_switches $1"; partition='-partition';; + -viewlevel ) mtt_switches="$mtt_switches $1 $2"; + viewlevel=$2; + shift;; --version) echo 'MTT version' $version; exit;; --versions) mtt_versions; exit;; *) @@ -1071,23 +1077,24 @@ echo ' -abg start at abg.m representation' echo ' -c c-code generation' echo ' -d use directory ' echo ' -dc Maximise derivative (not integral) causality' echo ' -dc Maximise derivative (not integral) causality' - echo ' -i implicit Use implicit integration' - echo ' -i euler Use Euler integration' + echo ' -i [implicit,euler] Use implicit or euler integration' echo ' -o ode is same as dae' echo ' -oct use oct files in place of m files where appropriate' echo ' -opt optimise code generation' echo ' -p print environment variables' + echo ' -partition partition hierachical system' echo ' -r reset time stamp on representation' echo ' -s try to generate sensitivity BG (experimental)' echo ' -ss use steady-state info to initialise simulations' echo ' -stdin read input data from standard input for simulations' echo ' -t tidy mode (default)' echo ' -u untidy mode (leaves files in current dir)' echo ' -v verbose mode' + echo ' -viewlevel N View N levels of hierachy' echo ' --version print version and exit' echo ' --versions print version of mtt and components and exit' exit fi fi @@ -2702,11 +2709,11 @@ $HTMLVIEW $1_$2/$1_$2.html& #View a ps file $1_$2.pview: $1_$2.ps echo Creating view of $1_$2 - $PSVIEW $1_$2.ps & + mtt_multi $PSVIEW $1 $2 ps $viewlevel | sh #View a gdat file $1_$2.dview: $1_$2.gdat echo Creating view of $1_$2 gdat2view $1_$2 '$ARGS'&