Index: mttroot/mtt/bin/trans/mtt_txt2m ================================================================== --- mttroot/mtt/bin/trans/mtt_txt2m +++ mttroot/mtt/bin/trans/mtt_txt2m @@ -13,10 +13,13 @@ # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ +# %% Revision 1.4 2000/05/18 12:05:42 peterg +# %% Replaced sympar by sympars in numpar rep +# %% # %% Revision 1.3 2000/05/11 16:09:24 peterg # %% Put in simpar.first parameter # %% # %% Revision 1.2 2000/05/11 12:16:46 peterg # %% New version of simpar - with record @@ -110,11 +113,13 @@ case $representation in simpar) lang_header -noglobals $1 simpar m '' mttsimpar > $1_simpar.m ;; numpar) - lang_header $1 numpar m '' MTTpar > $1_numpar.m + lang_header $1 numpar m '' MTTpar > $1_numpar.m; + echo "## Set parameters to zero" >> $1_numpar.m; + sympar2par_txt2m $1 zero >> $1_numpar.m; ;; *) echo "function $name = $1_$2$arg" > $1_$2.m echo "%% $2 file ($1_$2.m)" >> $1_$2.m echo "%% Generated by MTT at `date`" >> $1_$2.m @@ -171,17 +176,16 @@ -e 's/#/%/g' \ >> $1_$2.m if [ "$2" = "numpar" ]; then - awk '{ - printf(" MTTpar(%i) \t= %s;\n",++i, tolower($1)); - }'< $1_sympars.txt >>$1_numpar.m + echo "## Set up the parameter vector" >> $1_numpar.m; + sympar2par_txt2m $1 set >> $1_numpar.m; fi