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: |
38505163b2bbbde67cb1f490fc597431 |
User & Date: | gawthrop@users.sourceforge.net on 2000-05-16 18:55:10 |
Other Links: | branch diff | manifest | tags |
Context
2000-05-16
| ||
18:56:03 |
Upgraded for new simulation approach - uses data files to input parameters -- no more argv stuff check-in: 8690e22594 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
18:55:10 | Initial revision check-in: 38505163b2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
11:59:34 | Stard new version with data files not argv. check-in: 2a7d780b55 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/p/mtt_par_update.p version [5ebd9ad207].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 45 46 47 48 49 | PROCEDURE mtt_numpar_update(VAR new_numpar : ParameterVector; old_numpar : ParameterVector); VAR i : INTEGER; BEGIN {mtt_numpar_update} for i:=1 TO MTT_Npar DO {copy values} new_numpar[i] := old_numpar[i]; WHILE NOT eof(numparfile) DO {read and update values} IF NOT (numparfile^ = chr("#")) THEN BEGIN read(numparfile,i); read(numparfile,new_numpar[i]); END ELSE readln(numparfile); END {mtt_numpar_update}; PROCEDURE mtt_state_update(VAR new_state : StateVector; old_state : StateVector); VAR i : INTEGER; BEGIN {mtt_state_update} for i:=1 TO MTT_Nx DO {copy values} new_state[i] := old_state[i]; WHILE NOT eof(statefile) DO {read and update values} IF NOT (statefile^ = chr("#")) THEN BEGIN read(statefile,i); read(statefile,new_state[i]); END ELSE readln(statefile); END {mtt_state_update}; PROCEDURE mtt_simpar_update(VAR dt : REAL); BEGIN {mtt_simpar_update} WHILE NOT eof(simparfile) DO {read and update values} BEGIN IF NOT (simparfile^ = chr("#")) THEN read(simparfile,dt); readln(simparfile); END END {mtt_simpar_update}; |