Index: mttroot/mtt/bin/trans/make_ode2odes ================================================================== --- mttroot/mtt/bin/trans/make_ode2odes +++ mttroot/mtt/bin/trans/make_ode2odes @@ -7,10 +7,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.53 2001/03/21 03:24:59 geraint +## Calculate inputs before outputs (.cc). +## ## Revision 1.52 2001/03/19 02:28:52 geraint ## Branch merge: merging-ode2odes-exe back to MAIN. ## ## Revision 1.51.2.7 2001/03/17 09:51:07 geraint ## Implemented Runge-Kutta IV fixed-step method (-i rk4). @@ -311,18 +314,24 @@ } # make_m make_cc() { # get octave version -octave_development=`octave --version | awk '{print $4}' | awk -F\. '{print $2}'` -if [ $octave_development ]; then - vector_value=column_vector_value - feval_header=parse.h -else - vector_value=vector_value - feval_header=toplev.h -fi +case `$MATRIX --version | awk -F\. '{print $2}'` in + 0) # stable + vector_value=vector_value + feval_header=toplev.h + ;; + 1) # development + vector_value=column_vector_value + feval_header=parse.h + ;; + *) + vector_value=column_vector_value + feval_header=parse.h + ;; +esac cat < $filename #include #include #include