Overview
Comment:*** empty log message ***
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 409432c3fd9b1423561d22618a9b26991e80458482706191aaa81d727093a9c5
User & Date: gawthrop@users.sourceforge.net on 2000-12-28 12:02:19
Other Links: branch diff | manifest | tags
Context
2000-12-28
12:02:48
Initial revision check-in: 5f1e8a3807 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:02:19
*** empty log message *** check-in: 409432c3fd user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:58:07
Put under RCS check-in: d4245be859 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/p/mtt_implicit.p from [5b28cc85bb] to [e4c58449c4].

1
2
3
4
5
6
7
8
9
10
11
12
13


14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22













+
+







PROCEDURE mtt_implicit(VAR xnew	: StateVector;
			   x,dx	: StateVector;
			   AA	: StateMatrix;
			   AAx	: StateVector;
			   dt	: REAL;
			   Nx	: INTEGER;
			   open	: StateVector);

VAR
   i,ii,j,jj,Nxsub : INTEGER;
   BB,xsub   : StateVector;
   AAsub     : StateMatrix;
   
(*$I $MTTPATH/trans/p/mtt_solve.p *)

BEGIN{mtt_implicit}
   ii := 0;
   FOR i := 1 TO  Nx DO {BB is (1-A*dt)*x +dx*dt}
   BEGIN
      IF open[i]<0.5 THEN
      BEGIN
	 ii := ii+1; jj := 0;
37
38
39
40
41
42
43
44
45
46
47
39
40
41
42
43
44
45

46
47
48







-



	 IF open[i]<0.5 THEN
	 BEGIN
	    ii := ii+1; 
	    xnew[i] := xsub[ii];
	 END
	 ELSE
	 xnew[i] := 0.0;
	 writeln(i,ii);
      END;
END;{mtt_implicit}			  

Modified mttroot/mtt/bin/trans/p/mtt_write.p from [e259772c46] to [0a11e8a899].

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

45
46

47
48
49
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

45
46

47
48

49
50

51
52
53
54







+
+
+
















+
+





-
+

-
+

-
+

-
+



      P.J. Gawthrop July 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5  1999/03/15 21:57:38  peterg
## Removed the # symbol
##
## Revision 1.4  1998/11/26 13:31:30  peterg
## Put missing space after 2nd t
##
## Revision 1.3  1998/07/25 20:41:38  peterg
## Spaces between numbers
##
## Revision 1.2  1998/07/25 14:04:14  peterg
## Changed format
##
## Revision 1.1  1998/07/25 09:47:25  peterg
## Initial revision
##
###############################################################


*}

CONST TAB=9;
 
VAR
   i : INTEGER;
   
BEGIN
   write(t," ");
   write(t,chr(TAB));
   FOR i := 1 TO ny DO
      write(y[i]," ");
      write(y[i],chr(TAB));

   write(t," ");
   write(t,chr(TAB));
   FOR i := 1 TO nx DO
      write(x[i]," ");
      write(x[i],chr(TAB));
   writeln;
END;
   


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