Overview
Comment:Don't write an empty cseo file
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 761ac82af7241409d9e9f99313c32b3873fcddfd52c272f6b052b0b0b93f1c90
User & Date: gawthrop@users.sourceforge.net on 2005-03-21 11:50:39
Other Links: branch diff | manifest | tags
Context
2005-03-31
07:53:48
New Bicausal 2 Unicausal converter check-in: 66ad55a1ce user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2005-03-21
11:50:39
Don't write an empty cseo file check-in: 761ac82af7 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:44:06
Avoid error messages when no inputs or no outputs or no states check-in: e2561c665a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/dae2cse_r from [95dc8808f1] to [2dd70a2575].

11
12
13
14
15
16
17




18
19
20
21
22
23
24
# Copyright (c) P.J.Gawthrop 1991, 1992, 1994.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$




## Revision 1.25  2002/09/18 19:46:48  geraint
## Refined test to reduce shell loop overhead for unnecessary E matrix.
## Removed unnecessary attempt to optimise cse.
## Fixes sm representation.
##
## Revision 1.24  2002/09/16 08:08:00  geraint
## Merged changes from global-optimisation branch.







>
>
>
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (c) P.J.Gawthrop 1991, 1992, 1994.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.26  2002/10/28 23:31:21  gawthrop
## Added additional term to MTTEdx to account for zdot terms on
## Right-Hand Side state equations
##
## Revision 1.25  2002/09/18 19:46:48  geraint
## Refined test to reduce shell loop overhead for unnecessary E matrix.
## Removed unnecessary attempt to optimise cse.
## Fixes sm representation.
##
## Revision 1.24  2002/09/16 08:08:00  geraint
## Merged changes from global-optimisation branch.
477
478
479
480
481
482
483
484
485
486
487

488
489
490
491
492
493
494
495
496
497
498
OUT "$1_csex.r2";
write "%File: $1_cse.r";
in ("$1_csex_write.r");
write "END;";
SHUT "$1_csex.r2";

%Write out the  output equations
IF MTTNy>0 THEN
BEGIN
OUT "$1_cseo.r2";
write "%File: $1_cseo.r";

in ("$1_cseo_write.r");
write "END;";
SHUT "$1_cseo.r2";
END;
quit;
EOF

touch $1_ae.r1 $1_ae.r2
touch $1_cseo.r1
touch $1_cseo.r2
cat $1_ae.r1 $1_ae.r2 > $1_ae.r







<
<


>
|


<







481
482
483
484
485
486
487


488
489
490
491
492
493

494
495
496
497
498
499
500
OUT "$1_csex.r2";
write "%File: $1_cse.r";
in ("$1_csex_write.r");
write "END;";
SHUT "$1_csex.r2";

%Write out the  output equations


OUT "$1_cseo.r2";
write "%File: $1_cseo.r";
IF MTTNy>0 THEN
   in ("$1_cseo_write.r");
write "END;";
SHUT "$1_cseo.r2";

quit;
EOF

touch $1_ae.r1 $1_ae.r2
touch $1_cseo.r1
touch $1_cseo.r2
cat $1_ae.r1 $1_ae.r2 > $1_ae.r


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