Overview
Comment:New name argument added.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: b416de8c28116fa5e0dd475724df7cbd9c22ff85681525b3917c16a3fb1c74e3
User & Date: gawthrop@users.sourceforge.net on 1996-08-30 18:35:43
Other Links: branch diff | manifest | tags
Context
1996-08-30
18:37:17
inor changes. check-in: 36bcfe473f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:35:43
New name argument added. check-in: b416de8c28 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:38:25
Initial revision check-in: 21c7904e95 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/comp/simple/FMR_eqn.m from [fef81a6448] to [3c02a6697e].

11
12
13
14
15
16
17



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







+
+
+







%    structure,eqnfile);

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.1  1996/08/30 16:38:25  peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% Copyright (c) P.J. Gawthrop, 1996.


if nargin<6
41
42
43
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
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







-
-
+
+

-
+



-
-
-
+
+
+




-
+









  if f_1 == 1 				% Flow out
    op = '*';
  else                                  % Effort out
    op = '/';
  end;
  
  fprintf(eqnfile, '%s := %s%s%s;\n', ...
      varname(bond_number(1), -e_1), ...
      varname(bond_number(1), e_1), ...
      varname(name,bond_number(1), -e_1), ...
      varname(name,bond_number(1), e_1), ...
      op, ...
      varname(bond_number(2), -1));
      varname(name,bond_number(2), -1));
else 					% Deduce modulation
  
   fprintf(eqnfile, '%s := %s/%s;\n', ...
      varname(bond_number(2), -1), ...
      varname(bond_number(1), -1), ...
      varname(bond_number(1), 1));
      varname(name,bond_number(2), -1), ...
      varname(name,bond_number(1), -1), ...
      varname(name,bond_number(1), 1));
end;

% Effort on port 2 is always zero
   fprintf(eqnfile, '%s := 0;\n', ...
      varname(bond_number(2), 1));
      varname(name,bond_number(2), 1));

 
      


 




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