Overview
Comment:Changed cieqn so that sign ignored.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 2619ce9b12e431e93814429e9c97eae943208b8baa0a0ddd1413507ca4b72c10
User & Date: gawthrop@users.sourceforge.net on 1998-06-29 13:05:08
Other Links: branch diff | manifest | tags
Context
1998-06-30
12:46:24
Initial revision check-in: bef5c655ba user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-06-29
13:05:08
Changed cieqn so that sign ignored. check-in: 2619ce9b12 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:16:05
Whoops - FP bonds are p and f (in that order) check-in: d6fc60bf8d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/comp/simple/cieqn.m from [b070756f62] to [1e5df81dfe].

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.2  1997/12/04 13:48:00  peterg
% %% Added sign info to take account of direction of bonds.
% %%
% %% Revision 1.1  1997/04/09  10:18:26  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% Copyright (c) P.J. Gawthrop, 1996.
38
39
40
41
42
43
44
45
46
47
48
49
50
51








52
53
54
55
56
57
58
41
42
43
44
45
46
47







48
49
50
51
52
53
54
55
56
57
58
59
60
61
62







-
-
-
-
-
-
-
+
+
+
+
+
+
+
+








% Right-hand side causality
RHS_cause = (bonds(:,1)==CorI*ones(ports,1))*CorI
state_cause = zeros(ports,1); % State causality

for outport = 1:ports

  % Sort out direction
  if direction(outport,1) == 1
    sign = '+';
  else
    sign = '-';
  end;
  
#  % Sort out direction
#  if direction(outport,1) == 1
#    sign = '+';
#  else
#    sign = '-';
#  end;

  sign = '+';  
  LHS_number = bond_number(outport);
  if bonds(outport,1) == -CorI % Integral causality on this port
    state = structure(1)+1;
    LHS_cause = CorI;

    % Print equation of form x_i = MTTx(i)
    fprintf(eqnfile, '%s := MTTx(%1.0f,1);\n', ...


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