Differences From Artifact [e019adb924]:

To Artifact [eac1bd257e]:


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
27
28
29







+
+
+
+
+
+







# Copyright (c) P.J.Gawthrop, 1991, 1994, 1996

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  1998/03/07 12:51:20  peterg
## This is the new version of ese2dae - it does not do the CRs at this
## stage to give reduce an easier time.
##
## rese2ese_r does the constitutive relationship bit
##
## Revision 1.1  1998/03/07 12:49:31  peterg
## Initial revision
##
## Revision 1.12  1998/01/31 16:22:59  peterg
## Added IF MTTNx>0 THEN and IF MTTNy>0 THEN before the relevant
## assignements of MTTdX and MTTY to themselves.
##
67
68
69
70
71
72
73

74
75
76
77
78
79

80
81
82

83
84
85
86
87
88
89
73
74
75
76
77
78
79
80
81
82
83
84
85

86
87
88

89
90
91
92
93
94
95
96







+





-
+


-
+







fi

defname=$topname"_def.r"
crname=$topname"_cr.r"
paramname=$topname"_params.r"
daename=$sysname"_rdae.r"
esename=$sysname"_ese.r"
logname=$sysname"_rdae.log"

# Inform user
echo Creating $daename

# Remove the old log file
rm -f ese2dae_r.log
rm -f $logname

# Use symbolic algebra to accomplish the transformation
$SYMBOLIC >ese2dae_r.log  << EOF
$SYMBOLIC >$logname  << EOF

%Read the formatting function
in "$MTTPATH/trans/reduce_matrix.r";

% Definitions
in "$defname";

130
131
132
133
134
135
136
137

138
137
138
139
140
141
142
143

144
145







-
+

write ";END;";
SHUT "$daename";
quit;

EOF

# Now invoke the standard error handling.
mtt_error_r ese2dae_r.log
mtt_error_r $logname


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