Revision 263, 0.5 kB
(checked in by smidl, 15 years ago)
|
UIArxDS test
|
Line | |
---|
1 | /*! |
---|
2 | \file |
---|
3 | \brief Test of UI builders for ARX |
---|
4 | |
---|
5 | See file \ref arx for mathematical background. |
---|
6 | |
---|
7 | */ |
---|
8 | |
---|
9 | |
---|
10 | #include <stat/libDS_ui.h> |
---|
11 | |
---|
12 | using namespace bdm; |
---|
13 | int main() { |
---|
14 | UIFile F("UIArxDS_test.cfg"); |
---|
15 | |
---|
16 | logger* L; |
---|
17 | UIbuild(F.lookup("logger"),L); |
---|
18 | ArxDS * DS; |
---|
19 | UIbuild(F.lookup("system"),DS); |
---|
20 | int Ndat; |
---|
21 | F.lookupValue("experiment.ndat",Ndat); |
---|
22 | // SET SIMULATOR |
---|
23 | |
---|
24 | DS->log_add(*L); |
---|
25 | L->init(); |
---|
26 | |
---|
27 | for ( int tK=1;tK<Ndat;tK++ ) { |
---|
28 | DS->step(); |
---|
29 | DS->logit(*L); |
---|
30 | L->step(); |
---|
31 | } |
---|
32 | |
---|
33 | L->finalize(); |
---|
34 | |
---|
35 | delete L; |
---|
36 | delete DS; |
---|
37 | return 0; |
---|
38 | } |
---|