8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
+
+
+
|
# Copyright (c) P.J.Gawthrop, 1996.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.3 1996/08/30 10:30:54 peter
## Switched order of args in matches.
##
## Revision 1.2 1996/08/30 09:35:10 peter
## Fixed problem with global variable in function.
##
## Revision 1.1 1996/08/24 13:34:48 peter
## Initial revision
##
###############################################################
|
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
-
+
|
symbols = sprintf("%s %s", symbols, arg[i]);
}
}
}
}
END {
# print the _sympar file
printf("%% Symbolic parameter file - generated by MTT\n\n");
printf("MTTNVar := %1.0f;\n", symbol_count);
if (symbol_count>0) {
printf("MATRIX MTTVar(MTTNVar,1);\n");
split(symbols,symbol);
for (i = 1; i <= symbol_count; i++) {
printf("MTTVar(%1.0f,1) \t := %s;\n", i, symbol[i]);
}
}
printf("END;\n\n");
}
|