Overview
Comment:Removed an fprintf that was a mistake.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: add52fe137ffe58a77f0f0c95c1f17e36b3611e201906d05946733309d6a8f01
User & Date: gawthrop@users.sourceforge.net on 1996-09-12 13:12:04.000
Other Links: branch diff | manifest | tags
Context
1996-09-12
16:40:45
Now does a default (when no constitutive relationship) with a unit
constitutive relationship on each port.
check-in: 5878a5ebb6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:12:04
Removed an fprintf that was a mistake. check-in: add52fe137 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:06:38
Removed reducndant lines. check-in: 4b8882ab24 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
︙︙
11
12
13
14
15
16
17



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%    structure,eqnfile)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


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

if nargin<8
  eqnfile = 'stdout';
end;


% Find the number of ports
[ports,junk] = size(bonds);


for outport = 1:ports
  outcause = -bonds(outport,1);
  outnumber = bond_number(outport);
  fprintf(eqnfile, '%s\t:= ', varname(name,outnumber, outcause));
  incause = bonds(:,1);
  eqn =  equation(name,cr,args,outnumber,outcause,outport, ...
                               bond_number,incause,1:ports);
  fprintf(eqnfile, '%s',eqn);
end;









>
>
>

















<







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

38
39
40
41
42
43
44
%    structure,eqnfile)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.1  1996/09/12 11:00:56  peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


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

if nargin<8
  eqnfile = 'stdout';
end;


% Find the number of ports
[ports,junk] = size(bonds);


for outport = 1:ports
  outcause = -bonds(outport,1);
  outnumber = bond_number(outport);

  incause = bonds(:,1);
  eqn =  equation(name,cr,args,outnumber,outcause,outport, ...
                               bond_number,incause,1:ports);
  fprintf(eqnfile, '%s',eqn);
end;



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