Overview
Comment:Initial revision
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: fc9fb284e3ef4ba8709c7eabb77236dbb6e1fa2be49b0320beea307bd6863cfd
User & Date: gawthrop@users.sourceforge.net on 1999-04-20 06:18:27
Other Links: branch diff | manifest | tags
Context
1999-04-20
06:18:57
= to := check-in: d4b62ce12f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
06:18:27
Initial revision check-in: fc9fb284e3 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
06:17:15
Fudge to avoid a bizzare bug (?) in p2c which corrupts "zero_matrix" check-in: 9c178547d3 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/trans/p/mtt_euler.p version [6de6bf5883].

































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PROCEDURE mtt_euler(VAR x_out, x,dx : StateVector;
			dt	    : REAL;
			Nx	    : INTEGER;
			Open	    : StateVector);

VAR i : INTEGER;
   
BEGIN{mtt_euler}
   FOR i := 1 TO Nx DO
   BEGIN
      IF Open[i]>0.5 THEN{Open switch}
	 x_out[i] := 0.0
      ELSE
	 x_out[i] := x[i] + dx[i]*dt;
   END;
END;{mtt_euler}

Added mttroot/mtt/bin/trans/p/zero_matrix.p version [799bc2655a].























>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
PROCEDURE zero_matrix(VAR A : StateMatrix;
			  N : INTEGER);
VAR i,j	:  INTEGER;
   
BEGIN
   FOR i:=1 TO N DO
      FOR j:=1 TO N DO
	 A[i,j] := 0.0;
END;



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