Index: mttroot/mtt/bin/trans/mtt_m2p ================================================================== --- mttroot/mtt/bin/trans/mtt_m2p +++ mttroot/mtt/bin/trans/mtt_m2p @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.7 1998/07/25 20:06:23 peterg +## Does the mtt_update function +## ## Revision 1.6 1998/07/25 16:59:40 peterg ## Give other procedures local i,j vars. ## ## Revision 1.5 1998/07/25 15:06:17 peterg ## Added DDT VAR @@ -83,26 +86,26 @@ echo " StateVector =ARRAY[1..$Nx] OF REAL;" echo " InputVector =ARRAY[1..$Nu] OF REAL;" echo " OutputVector =ARRAY[1..$Ny] OF REAL;" echo " IntegrationMethod = (Euler,ImplicitL,Implicit);" echo "VAR" - echo " t,LAST,DT,DDT : REAL;" - echo " mttx,mttdx : StateVector;" - echo " mttu : InputVector;" - echo " mtty : OutputVector;" - echo " i,j,it,iLast,STEPFACTOR : INTEGER;" - echo " METHOD : STRING;" + echo " MTTt,mttLAST,mttDT,mttDDT : REAL;" + echo " mttx,mttdx : StateVector;" + echo " mttu : InputVector;" + echo " mtty : OutputVector;" + echo " MTTi,MTTj,MTTit,MTTiLast,mttSTEPFACTOR : INTEGER;" + echo " mttMETHOD : STRING;" ;; switch) echo "PROCEDURE $Sys_rep(VAR mttxs : StateVector;" echo " mttx : StateVector);" echo "VAR" - echo " i,j : INTEGER;" + echo " MTTi,MTTj : INTEGER;" ;; *) echo "PROCEDURE $Sys_rep;" echo "VAR" - echo " i,j : INTEGER;" + echo " MTTi,MTTj : INTEGER;" ;; esac) > $Filename cat<> $Filename @@ -158,21 +161,22 @@ printf("VAR "); for (k=1;k> $Filename # p2c doesn't like mixed case filenames! if [ "$Filename" != "$filename" ]; then echo Creating $filename cp -f $Filename $filename fi