Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.160 1998/07/04 11:38:51 peterg +## Version 3.0-- (Seascale) +## ## Revision 1.159 1998/07/04 11:37:43 peterg ## Aliases implemented for parameters + lots of associated goodies ## New-style lbl files - no more SS nonsense. ## ## Revision 1.158 1998/07/03 09:06:39 peterg @@ -575,10 +578,13 @@ # By default, make it tidy tidy=tidy; # Default not verbose verbose=' -s' + +# Default no info +info_switch='' #Initialise list mtt_switches=''; @@ -607,11 +613,15 @@ -D ) mtt_switches="$mtt_switches $1"; debug=debug ;; -v ) mtt_switches="$mtt_switches $1"; + info_switch='-I'; verbose=' -w ' ;; + -I ) + mtt_switches="$mtt_switches $1"; + info_switch='-I' ;; -t ) tidy=tidy ;; -T ) tidy=tidy; verytidy=verytidy ;; @@ -673,10 +683,11 @@ echo ' mtt vc' echo ' mtt ' echo ' mtt ' 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 use directory ' @@ -1426,11 +1437,11 @@ #SUMMARY abg acausal bond graph (m) #Raw bond graph to acausal bond graph: mfile $1_abg.m: $1_rbg.m $1_alias.m $1_sub.sh sh $1_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m' - rbg2abg_m $1 + rbg2abg_m $info_switch $1 #SUMMARY cbg causal bond graph (m) #Acausal bond graph to causal bond graph: mfile $1_cbg.m: $1_abg.m @@ -1449,11 +1460,11 @@ #SUMMARY struc structure - list of inputs, outputs and states (txt) #SUMMARY struc structure - list of inputs, outputs and states (tex) #SUMMARY struc structure - list of inputs, outputs and states (view) #Elementary system equations + definitions $1_ese.r: $1_cbg.m - cbg2ese_m2r $1; ese_tidy $1 + cbg2ese_m2r $info_switch $1; ese_tidy $1 $1_def.r: $1_ese.r touch $1_def.r $1_struc.txt: $1_ese.r touch $1_struc.txt $1_struc.tex: $1_struc.txt