Index: mttroot/mtt/bin/trans/mtt_header ================================================================== --- mttroot/mtt/bin/trans/mtt_header +++ mttroot/mtt/bin/trans/mtt_header @@ -10,10 +10,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.39 2002/04/15 10:54:31 geraint +## Statically declare outputs and initialise to zero. +## This is necessary to prevent spurious values from being output when no assignments are made (i.e. when "y(i) := 0 for all u" (Reduce:see NERO)). +## ## Revision 1.38 2001/07/23 23:43:15 gawthrop ## header only version does not need to compute sizes from _def.r ## ## Revision 1.37 2001/07/13 04:54:04 geraint ## Branch merge: numerical-algebraic-solution back to main. @@ -869,18 +873,10 @@ write_DLD_header map_DLD_inputs ${args} undeclared=`get_extra_fields ${args:-"nil"} ${output:-"nil"}` declare_DLD_outputs ${undeclared} array2constant - case ${arg_type} in - Matrix) - printf " ${w}\t\t\t= zeros ${arg_init};\n" - ;; - *) - ;; - esac - cat <