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.3 1996/08/30 11:04:28 peter
## Changed line length to 500.
##
## Revision 1.2 1996/08/24 14:09:41 peter
## Global parameter passing.
##
## Revision 1.1 1996/08/18 12:03:49 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.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
## Global parameter passing.
##
## Revision 1.1 1996/08/18 12:03:49 peter
|
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
%Set up the number of argument variables to zero in case the user has forgotten
MTTNVar := 0;
%Read the parameter file
in "$1_sympar.r";
ON NERO; % Suppress zero elements
%Define the common part of the functions.
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 arguments";
write "$1_args";
write "% Set up the State variables";
FOR i := 1:MTTNx DO
BEGIN
write "MTTx", i, " = x(", i, ");";
|
<
>
>
>
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
%Set up the number of argument variables to zero in case the user has forgotten
MTTNVar := 0;
%Read the parameter file
in "$1_sympar.r";
ON NERO; % Suppress zero elements
%Define the common part of the functions.
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";
write "% Read in the arguments";
write "$1_args";
write "% Set up the State variables";
FOR i := 1:MTTNx DO
BEGIN
write "MTTx", i, " = x(", i, ");";
|