Overview
Comment:Partial fix for [ 545113 ] zeros missing in c++.
Fixes -oct by removing duplicate initialisation (-c is still outstanding).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: bb99a0315a17b4cc7b96bc29fa337bf21595a2431dcbdf56d1ccf9d8c5a308be
User & Date: geraint@users.sourceforge.net on 2002-04-17 16:23:59
Other Links: branch diff | manifest | tags
Context
2002-04-17
16:38:47
Now puts representation and examples files in:
~/.mtt/xmtt/reps and ~/.mtt/xmtt/examples and
automatically updates these as required.
xmtt --help more informative now.
Long and short options available.
check-in: a9a81af3ce user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:23:59
Partial fix for [ 545113 ] zeros missing in c++.
Fixes -oct by removing duplicate initialisation (-c is still outstanding).
check-in: bb99a0315a user: geraint@users.sourceforge.net tags: origin/master, trunk
13:46:58
#include <fstream> for -oct as well as -cc. check-in: cbf1949cbb user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_header from [9b53c3c771] to [0a1d86f26e].

8
9
10
11
12
13
14




15
16
17
18
19
20
21
# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$




## 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.
##
## Revision 1.36  2001/07/12 04:00:51  gawthrop







>
>
>
>







8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## 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.
##
## Revision 1.36  2001/07/12 04:00:51  gawthrop
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
if [ ${language} = "oct" ];then
    write_standalone_header
    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 <<EOF

// BEGIN Code

EOF
    return_DLD_outputs ${output}
    return_standalone_output







<
<
<
<
<
<
<
<







871
872
873
874
875
876
877








878
879
880
881
882
883
884
if [ ${language} = "oct" ];then
    write_standalone_header
    write_DLD_header
    map_DLD_inputs ${args}
    undeclared=`get_extra_fields ${args:-"nil"} ${output:-"nil"}`
    declare_DLD_outputs ${undeclared}
    array2constant








    cat <<EOF

// BEGIN Code

EOF
    return_DLD_outputs ${output}
    return_standalone_output


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]