Index: mttroot/mtt/bin/trans/dae2lde_r ================================================================== --- mttroot/mtt/bin/trans/dae2lde_r +++ mttroot/mtt/bin/trans/dae2lde_r @@ -11,10 +11,15 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.2.4.2 2002/09/10 23:24:19 geraint +## Rationalised local and global optimisations. +## Fixes presentation of locally optimised code (ode view). +## Much more elegant :-) +## ## Revision 1.2.4.1 2002/09/03 23:44:43 geraint ## adding global optimisation (-optg). ## ## Revision 1.2 2001/07/27 23:29:10 geraint ## Optimises only when requested (-opt). @@ -26,15 +31,19 @@ optimise=''; optimise_msg='' while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -optimise_global ) - optimise='-optimise_global' - optimise_msg=' with global optimisation' ;; +# optimise='-optimise_global' +# optimise_msg=' with global optimisation' ;; + optimise='' + optimise_msg='' ;; -optimise_local ) - optimise='-optimise_local' - optimise_msg=' with local optimisation' ;; +# optimise='-optimise_local' +# optimise_msg=' with local optimisation' ;; + optimise='' + optimise_msg='' ;; *) echo "$1 is an invalid argument - ignoring" ;; esac shift done @@ -126,23 +135,16 @@ write "END;"; SHUT "$1_ldeo.r"; quit; EOF -if [ ${optimise:-""} = "-optimise_global" ]; then -# TODO: mtt_optimise global $1 lde -# TODO: mtt_optimise global $1 ldeo -elif [ ${optimise:-""} = "-optimise_local" ]; then -# TODO: mtt_optimise local $1 lde -# TODO: mtt_optimise local $1 ldeo -fi +# TODO: edit mtt_optimise to accept lde and ldeo +# if [ ${optimise:-""} = "-optimise_global" ]; then +# mtt_optimise global $1 lde +# mtt_optimise global $1 ldeo +# elif [ ${optimise:-""} = "-optimise_local" ]; then +# mtt_optimise local $1 lde +# mtt_optimise local $1 ldeo +# fi # Now invoke the standard error handling. mtt_error_r cse2lde_r.log - - - - - - - -