Changeset 89

Show
Ignore:
Timestamp:
04/30/08 15:14:05 (16 years ago)
Author:
smidl
Message:

logger test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tests/loggers_test.cpp

    r87 r89  
    1010int main() 
    1111{ 
     12        int i; 
     13         
    1214        RV th = RV ( "1 2","{a b }","1 1","0 0"); 
    13         RV r = RV ( "3 4" ); 
     15        RV r = RV ( "2","{r }","2","0" ); 
    1416 
    15         dirfilelog L("dirfile",10); 
     17        dirfilelog L("exp/dirfile",10); 
    1618         
    17         L.add(r,"r"); 
    18         L.add(th,"th"); 
     19        int rid; 
     20        int thid; 
     21         
     22        rid=L.add(r,""); 
     23        thid=L.add(th,"th"); 
    1924         
    2025        L.init(); 
    2126 
     27        for (i=0; i<150; i++){   
     28                L.logit(rid,vec_2((double)i,(double)(i+1))); 
     29                L.logit(thid,vec_2((double)(100-i),(double)(i-50))); 
     30                L.step(); 
     31        } 
     32        L.step(true); 
    2233}