Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.273 2000/10/10 21:00:27 peterg +## More changes for new code gneration +## ## Revision 1.272 2000/10/06 16:20:00 peterg ## added ode_write rule ## ## Revision 1.271 2000/10/03 12:14:25 peterg ## Version 4.8 @@ -1106,11 +1109,11 @@ echo ' mtt rclean -- recursively cleans up intermediate files' echo ' mtt Clean -- cleans up all generated files' echo ' mtt clean' echo ' mtt copy ' echo ' mtt rename ' - echo ' mtt vc' + echo ' mtt vc' echo ' mtt ' echo ' mtt ' echo 'Options: -q quiet mode -- suppress MTT banner' echo ' -A solve algebraic equations symbolically' echo ' -D debug -- leave log files etc' @@ -1425,10 +1428,13 @@ # Version control VC='' if [ "$3" = "vc" ]; then tidy=untidy; + if [ -n "$4" ]; then + log_message=-m$4 + fi case $2 in abg ) VC='ok' VCext='fig' ;; lbl ) @@ -1928,14 +1934,16 @@ $1_simpar.m: $1_simpar.txt mtt_txt2m $1 simpar #SUMMARY numpar numerical parameter declaration -- default (txt) -$1_numpar.txt: - mtt $mtt_switches -q -u $1 sympar txt; - sympar2numpar_txt2txt $1 - +ifeq ($target,$1_numpar.txt) +$1_numpar.txt: $1_sympar.txt + mtt_update $1 numpar update +else + mtt_update $1 numpar +endif #SUMMARY numpar numerical parameter declaration (m) $1_numpar.m: $1_numpar.txt $1_sympars.txt mtt_txt2m $1 numpar #SUMMARY numpar numerical parameter declaration (c) @@ -2153,18 +2161,21 @@ #SUMMARY cse* constrained-state equations (view) #SUMMARY cse constrained-state equations (ps) #Constrained-state equations $1_cse.r: $1_dae.r $1_def.r $1_sympar.r $1_subs.r dae2cse_r $Solve $1; tidy $1_cse.r $1_subs.r - +$1_csex.r: $1_cse.r + touch $1_csex.r $1_cseo.r: $1_cse.r touch $1_cseo.r #$1_cse.m: $1_def.r $1_cse.r $1_sympar.r $1_subs.r # cse_r2m $1; matlab_tidy $1_cse.m $1_cse.m: $1_def.r $1_cse.r $1_sympars.txt mtt_r2m $optimise -parameters $1 cse;# matlab_tidy $1_cse.m; matlab_tidy $1_cseo.m; +$1_csex.m: $1_def.r $1_csex.r $1_sympars.txt + mtt_r2m $1 csex $1_cseo.m: $1_def.r $1_cseo.r $1_sympars.txt mtt_r2m $optimise -parameters $1 cseo;# matlab_tidy $1_cse.m; matlab_tidy $1_cseo.m; $1_cse.tex: $1_cse.r $1_sympar.r $1_simp.r cse_r2tex $1 $2; latex_tidy $1_cse.tex @@ -2228,11 +2239,11 @@ # The main simulation programme ifeq ($integration_method,implicit) $1_ode2odes.m : $1_def.r $1_sympars.txt $1_smxa.$m $1_smxax.$m\ $1_simpar.m $1_numpar.m $1_state.m $1_input.m \ - $1_cse.$m $1_cseo.$m $1_switchopen.m + $1_csex.$m $1_cseo.$m $1_switchopen.m make_ode2odes $1 $integration_method endif ifeq ($integration_method,euler) $1_ode2odes.m : $1_def.r $1_sympars.txt\ $1_simpar.m $1_numpar.m $1_state.m $1_input.m \ @@ -2263,12 +2274,12 @@ $1_ode.p : $1_def.r $1_ode.m mtt_m2p $1_ode.m $1_odeo.p : $1_def.r $1_odeo.m mtt_m2p $1_odeo.m -$1_cse.p : $1_def.r $1_cse.m - mtt_m2p $1_cse.m +$1_csex.p : $1_def.r $1_cse.m + mtt_m2p $1_csex.m $1_cseo.p : $1_def.r $1_cseo.m mtt_m2p $1_cseo.m $1_smx.p : $1_def.r $1_smx.m mtt_m2p $1_smx.m $1_smxa.p : $1_def.r $1_smxa.m @@ -2279,11 +2290,11 @@ mtt_m2p $1_switchopen.m ifeq ($integration_method,implicit) $1_ode2odes.p : $1_ode2odes.m $1_def.r $1_smxa.p $1_smxax.p\ $1_simpar.p $1_numpar.p $1_state.p $1_input.p \ - $1_cse.p $1_cseo.p $1_switchopen.p + $1_csex.p $1_cseo.p $1_switchopen.p mtt_m2p $1_ode2odes.m $integration_method $stdin endif ifeq ($integration_method,euler) $1_ode2odes.p : $1_ode2odes.m $1_def.r\ $1_simpar.p $1_numpar.p $1_state.p $1_input.p \ @@ -2823,11 +2834,11 @@ RCS: echo Creating RCS mkdir RCS $1_$2.vc: RCS echo Version control on $1_$2.$VCext - ci -I $1_$2.$VCext