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.24 2000/12/05 10:04:52 peterg +## Fixed dummy variable bug +## ## Revision 1.23 2000/12/05 09:47:50 peterg ## Include crs as c files ## ## Revision 1.22 2000/12/04 12:19:12 peterg ## Changed $() to `` and $() to expr for sh compatibility -- geraint @@ -285,11 +288,11 @@ if [ "$rep" = "simpar" ]; then output=${output}${map} # Output is simpar_map in this case fi -function zero_matrices +zero_matrices() { ## Set matrices to zero echo ## echo '## Set matrices to zero' for name in $zeromatrices; do @@ -314,11 +317,11 @@ esac echo " mtt$name = zeros($N,$M);" done } -function declare_dummies +declare_dummies() { # Get the dummies dummies="mtt_tmp" rm -f mtt_dummies for dummy in $dummies; do @@ -340,21 +343,21 @@ for dummy in $dummy_list; do echo ' ' $var_declaration $dummy';' done } # declare_dummies -function declare_switches +declare_switches () { cat < #include @@ -556,11 +559,11 @@ EOF } -function map_DLD_inputs +map_DLD_inputs () { s=${1:-""} # comma separated input list if [ -z ${s:-""} ];then return; fi c=`get_field ${s} 0` # count of inputs i=0 @@ -581,11 +584,11 @@ done printf "\n" } -function declare_DLD_outputs +declare_DLD_outputs () { s=${1:-""} # comma separated output list c=`get_field ${s} 0` # count of outputs i=0 while [ ${i} -lt ${c} ]; do @@ -595,11 +598,11 @@ printf " ${arg_type}\t${w}\t${arg_size};\n" done } -function return_DLD_outputs +return_DLD_outputs () { s=${1:-""} # comma separated output list c=`get_field ${s} 0` # count of outputs i=0 cat <