Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.297 2001/03/29 19:20:45 gawthrop +## Can now use c representations of crs when using -c option +## ## Revision 1.296 2001/03/27 01:07:34 geraint ## Improved determination of Octave version for ode2odes.exe creation. ## Removed FORCE check_update of .txts. ## ## Revision 1.295 2001/03/23 11:21:29 gawthrop @@ -1250,11 +1253,11 @@ echo ' -opt optimise code generation' echo ' -p print environment variables' echo ' -partition partition hierachical system' echo ' -pdf generate pdf in place of ps' echo ' -r reset time stamp on representation' - echo ' -s try to generate sensitivity BG (experimental)' + echo ' -s generate sensitivity BG (use mtt -s sSys rep lang)' echo ' -ss use steady-state info to initialise simulations' echo ' -stdin read input data from standard input for simulations' echo ' -sub operate on this subsystem' echo ' -t tidy mode (default)' echo ' -u untidy mode (leaves files in current dir)' @@ -1834,12 +1837,12 @@ exit; fi if [ -n "$sensitivity" ]; then - sys=`echo $1 | cut -c 2-` - sys_abg=$sys"_abg" + sys_s=`echo $1 | cut -c 2-` + sys_abg=${sys_s}_abg fi ## Check octave version case `$MATRIX --version | awk -F\. '{print $2}'` in 0) define_octave_dev="";; # stable @@ -1850,11 +1853,11 @@ ################################ # This is the main mtt programme ################################ -##echo Target is $target, Subsystem is $Subsystem, options are $mtt_switches +echo Target is $target, Subsystem is $Subsystem, options are $mtt_switches $MAKE -S $verbose -f - $target << EOF # Cancel implicit rules I don't want %.dvi: %.tex @@ -1892,11 +1895,11 @@ def2write_r $1 $2 ifeq ("$sensitivity","sensitivity") ifeq ("$level","0") $1_abg.fig: $sys_abg.fig - abg2sensitivity_fig $sys + abg2sensitivity_fig $sys_s else # Either find the sensitivity model or fetch the model and create sensitivity model $1_abg.fig: mtt -q -u $mtt_switches compcopy $1 || abg2sensitivity_fig $sys endif endif @@ -2278,11 +2281,11 @@ #SUMMARY def definitions - system orders etc. (h) #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 -${sys}_ese.r: $1_cbg.m +${sys}_ese.r: ${sys}_cbg.m cbg2ese_m2r $partition $info_switch $Subsystem; #ese_tidy $1 $1_def.r: $1_ese.r touch $1_def.r $1_struc.txt: $1_ese.r