Overview
Comment:Global parameters.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 32159655caab1e20b41fbe85c84d8bbf914cfeafc3217b0f394fa1fe752cc279
User & Date: gawthrop@users.sourceforge.net on 1996-08-24 14:27:29
Other Links: branch diff | manifest | tags
Context
1996-08-24
14:27:59
Global parameters.
Error handling.
check-in: f5e9ca2fd9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:27:29
Global parameters. check-in: 32159655ca user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:23:00
Global parameter passing.
Proper error handling.
check-in: 622ba119af user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/dae_r2m from [982a9844fe] to [1d787a7f7c].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
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.4  1996/08/18 20:02:21  peter
## Include zero outputs.
##
## Revision 1.3  1996/08/16 13:10:53  peter
## Fixed bug Ny changed to Nx in redidual loop.
##
## Revision 1.2  1996/08/16 08:57:34  peter
## Reads $1_input.
##
## Revision 1.1  1996/08/15 16:46:06  peter
59
60
61
62
63
64
65
66
67


68
69
70
71


72
73
74
75
76
77
78
62
63
64
65
66
67
68


69
70
71
72


73
74
75
76
77
78
79
80
81







-
-
+
+


-
-
+
+








%Define the common part of the functions.

PROCEDURE common;
BEGIN
  IF MTTNvar>0 THEN
  BEGIN
    write "% Read in the parameters";
    write "[ ...;;";
    write "% Set the parameters";
    write "global ...;;";
    FOR i := 1:MTTNvar DO
    BEGIN
       IF i<MTTNvar THEN write MTTVar(i,1), ",..."
                    ELSE write MTTVar(i,1), "] = $1_numpar"
       IF i<MTTNvar THEN write MTTVar(i,1), " ..."
                    ELSE write MTTVar(i,1), ";"
    END;
  END;
  
  write "% Read in the input";
  write "u = $1_input(t)";

  write "% Read in the arguments";


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