Index: mttroot/mtt/bin/trans/mtt_header ================================================================== --- mttroot/mtt/bin/trans/mtt_header +++ mttroot/mtt/bin/trans/mtt_header @@ -10,10 +10,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.65 2004/08/29 13:14:29 geraint +## Added rule to make header for sae (sorted algebraic equations). +## ## Revision 1.64 2004/08/29 01:48:46 geraint ## Added rules to create headers for sorted systems: sesx and sesy. ## ## Revision 1.63 2004/08/28 22:08:41 geraint ## Fixed zeromatrices statements: spaces instead of commas @@ -602,11 +605,11 @@ Ny=`mtt_getsize $system y` # Outputs Nyz=`mtt_getsize $system yz` # Zero outputs case ${rep} in dm) - let Nx=Nx+2*Nz+Nyz # Matrices not usual size + Nx=$(( $Nx + 2 * $Nz + $Nyz )) # Matrices not usual size ;; *) esac Npar=`wc -l $system\_sympar.txt | gawk '{print $1}'` Index: mttroot/mtt/bin/trans/mtt_update ================================================================== --- mttroot/mtt/bin/trans/mtt_update +++ mttroot/mtt/bin/trans/mtt_update @@ -11,10 +11,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.22 2003/08/19 13:08:44 gawthrop +## Ingnore if/endif +## ## Revision 1.21 2003/08/14 10:33:46 gawthrop ## Ignore if and endif ## ## Revision 1.20 2003/08/13 15:49:39 gawthrop ## Don't sort the states when defaulting - leave in implied order @@ -187,11 +190,11 @@ else info=`cut -f1 $infofile | sort` # Sort fi i=0; for new in $info; do - let i=$i+1; + i=$(( $i + 1 )); initial_value $i ${default} echo $new $value |\ gawk '{printf("%s\t= %s; # Default\n",$1,$2)}' >> $textfile done exit Index: mttroot/mtt/bin/trans/sub_sh2tex ================================================================== --- mttroot/mtt/bin/trans/sub_sh2tex +++ mttroot/mtt/bin/trans/sub_sh2tex @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.6 2004/08/26 16:15:40 geraint +## Counts abg.m instead of fig files so that dia models are also included. +## ## Revision 1.5 2004/02/10 16:11:01 gawthrop ## Removed debug ## ## Revision 1.4 2004/02/10 10:22:10 gawthrop ## Do proper arithmetic via let @@ -82,13 +85,13 @@ system=$1 filename=$2 if [ -z "$3" ]; then - let level=0; + level=0; else - let level=$4; + level=$4; fi echo "level: $level" #Top-level commands if [ -z "$2" ]; then filename="$1_sub.tex" @@ -135,11 +138,11 @@ if [ "$n_subsystems" != "0" ]; then cat <> $filename \begin{$listtype} EOF # Recursively generate the subsystems - let level1="$level+1" + level1=$(( $level + 1 )) sh $system\_sub.sh "sub_sh2tex $arg " " $filename $system $level1" cat <> $filename \end{$listtype} EOF #else