Overview
Comment:Don't write globals which are already assigned to a number.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 16bd2610f6964c02b52dc57eeaf887951d3abe6baa6988456051720fe4954296
User & Date: gawthrop@users.sourceforge.net on 1997-01-05 19:34:35
Other Links: branch diff | manifest | tags
Context
1997-01-06
21:36:44
Fixed bug mtt_error --> mtt_error.txt
Replaced lsode by Euler integration.
check-in: 54877be992 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1997-01-05
19:34:35
Don't write globals which are already assigned to a number. check-in: 16bd2610f6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:25:59
More informative message about port bonds incompatible with ports check-in: ad3bd0df1a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/ode_r2m from [1df16f5507] to [864bf807e7].

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$



## Revision 1.4  1996/09/12 18:33:32  peter
## Put back under rcs
##
## Revision 1.3  1996/08/30 11:04:28  peter
## Changed line length to 500.
##
## Revision 1.2  1996/08/24 14:09:41  peter







>
>
>







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.5  1996/09/13 19:41:39  peter
## *** empty log message ***
##
## Revision 1.4  1996/09/12 18:33:32  peter
## Put back under rcs
##
## Revision 1.3  1996/08/30 11:04:28  peter
## Changed line length to 500.
##
## Revision 1.2  1996/08/24 14:09:41  peter
58
59
60
61
62
63
64


65




66
67
68
69
70
71
72
73
74
75
PROCEDURE common;
BEGIN
  IF MTTNvar>0 THEN
  BEGIN
    write "% Read in the parameters";
    write "global ...;;";
    FOR i := 1:MTTNvar DO


    BEGIN




       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 definitions";
  write "[nx,ny,nu,nz,nyz] = $1_def";







>
>
|
>
>
>
>
|
|
|







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
PROCEDURE common;
BEGIN
  IF MTTNvar>0 THEN
  BEGIN
    write "% Read in the parameters";
    write "global ...;;";
    FOR i := 1:MTTNvar DO
    IF numberp(MTTVar(i,1)) 
      THEN 
      BEGIN
      % Do nowt
      END
      ELSE  
      BEGIN
         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 definitions";
  write "[nx,ny,nu,nz,nyz] = $1_def";


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