Overview
Comment: | Now calls mtt_solve instead of mtt_lud (mtt_lud is now called by mtt_solve) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
bb3161228eabda6889c05bb75f5dc728 |
User & Date: | gawthrop@users.sourceforge.net on 1999-10-26 23:45:30 |
Other Links: | branch diff | manifest | tags |
Context
1999-10-26
| ||
23:47:58 | Now does cse.m file check-in: ab8ae05167 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
23:45:30 |
Now calls mtt_solve instead of mtt_lud (mtt_lud is now called by mtt_solve) check-in: bb3161228e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
23:44:36 | Now packages up mtt_solve_lud OR mtt_solve_svd check-in: 1c85e99796 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/p/mtt_implicit.p from [88346d95ba] to [03b794d400].
1 2 3 4 5 6 7 8 9 10 11 12 | PROCEDURE mtt_implicit(VAR xnew,x,dx : StateVector; VAR AA : StateMatrix; VAR AAx : StateVector; dt : REAL; Nx : INTEGER; VAR open : StateVector); VAR i,ii,j,jj : INTEGER; BB,xsub : StateVector; AAsub : StateMatrix; | | < < | | 1 2 3 4 5 6 7 8 9 10 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 | PROCEDURE mtt_implicit(VAR xnew,x,dx : StateVector; VAR AA : StateMatrix; VAR AAx : StateVector; dt : REAL; Nx : INTEGER; VAR open : StateVector); VAR i,ii,j,jj : 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; BB[ii] := AAx[i] + dt*dx[i]; FOR j := 1 TO Nx DO IF open[j]<0.5 THEN BEGIN jj := jj+1; AAsub[ii,jj] := AA[i,j]; END; END; END; Nx := ii; {New size} mtt_solve(xsub,AAsub,BB,Nx); {Solve AAx=BB} ii := 0; FOR i := 1 TO Nx DO IF open[i]<0.5 THEN BEGIN ii := ii+1; xnew[i] := xsub[ii]; END ELSE xnew[i] := 0.0; END;{mtt_implicit} |