Overview
Comment:Reads $1_input.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 6537e9c6878f3b2ee035c4915c62f00763ad953928b5485ef1ee810581288ac5
User & Date: gawthrop@users.sourceforge.net on 1996-08-16 08:57:34
Other Links: branch diff | manifest | tags
Context
1996-08-16
12:50:41
Initial revision check-in: 17224381f2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:57:34
Reads $1_input. check-in: 6537e9c687 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:24:31
Correctly chooses how to make a ps file using $REPTYPE. check-in: e614bfbe5f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/dae_r2m from [b4cda47e9b] to [e61e4f7c03].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Copyright (c) P.J.Gawthrop 1991, 1994, 1995, 1996

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



###############################################################


# WARNING this is experimental!!
# It asumes that the output y is NOT dependent on derivatives of
#  z or u.








>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) P.J.Gawthrop 1991, 1994, 1995, 1996

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1996/08/15 16:46:06  peter
## Initial revision
##
###############################################################


# WARNING this is experimental!!
# It asumes that the output y is NOT dependent on derivatives of
#  z or u.

59
60
61
62
63
64
65



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
    FOR i := 1:MTTNvar DO
    BEGIN
       IF i<MTTNvar THEN write MTTVar(i,1), ",..."
                    ELSE write MTTVar(i,1), "] = $1_numpar"
    END;
  END;
  



  write "% Read in the arguments";
  write "$1_args";
  
  write "% check that u is defined and default it if not";
  write "if exist('u')==0";
  write "  u = ones(", MTTNu, ",1);";
  write "end";
  
  write "% Set up the State variables";
  FOR i := 1:MTTNx DO
  BEGIN
    write "MTTx", i, " = MTTx(", i, ");";
  END;

  write "% Set up the non-state variables";







>
>
>



<
<
<
<
<







62
63
64
65
66
67
68
69
70
71
72
73
74





75
76
77
78
79
80
81
    FOR i := 1:MTTNvar DO
    BEGIN
       IF i<MTTNvar THEN write MTTVar(i,1), ",..."
                    ELSE write MTTVar(i,1), "] = $1_numpar"
    END;
  END;
  
  write "% Read in the input";
  write "u = $1_input(t)";

  write "% Read in the arguments";
  write "$1_args";
  





  write "% Set up the State variables";
  FOR i := 1:MTTNx DO
  BEGIN
    write "MTTx", i, " = MTTx(", i, ");";
  END;

  write "% Set up the non-state variables";


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