Differences From Artifact [d53b30499c]:

To Artifact [0925ef3585]:


12
13
14
15
16
17
18



19
20
21
22
23
24
25
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28







+
+
+








###############################################################
## Version control history
###############################################################
## $Id$
##
## $Log$
# Revision 1.6  1996/08/26  13:25:07  peterg
# Corrected error handling.
#
# Revision 1.5  1996/08/24  14:38:11  peter
# Error handling included.
#
## Revision 1.4  1996/08/19 09:02:12  peter
## Errors go to user - not log.
##
## Revision 1.3  1996/08/18 20:05:55  peter
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
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
84
85
86







-
+

-
-
+
+
+
+
+
+
+


+
+
+
-
+
+






+
+
+
+

-
+



touch $infofile

#Inform user
echo Creating $eqnfile
echo Creating $1_def.r

# Use matrix manipulation to accomplish the transformation
$MATRIX > cbg2ese_m2r.log 2>mtt_error << EOF
$MATRIX > cbg2ese_m2r.log 2>mtt_error.txt << EOF

infofile = '$infofile'
system_name = '$1'
infofile = '$infofile';;
system_name = '$1';
system_type = '';
system_cr = '';
system_args = '';
full_name = '';

deffile = '$1_def.r';

%Structure matrix [states,nonstates,inputs,outputs,zero_outputs]
structure = zeros(1,5);

structure = cbg2ese(system_name,'','',infofile)
structure = cbg2ese(system_name, system_type, system_cr, ...
                     system_args, full_name , 1, structure, infofile);
makedef(structure,deffile);
  
EOF

cat $infofile

cat $1_*ese.r - > $1_ese.r 2>> mtt_error.txt <<EOF
END;
EOF

# Now invoke the standard error handling.
mtt_error_r cbg2ese_m2r.log
mtt_error mtt_error.txt




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