Changeset 854
- Timestamp:
- 03/08/10 14:27:03 (15 years ago)
- Location:
- library/bdm/base
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r850 r854 528 528 529 529 void DS::log_register ( logger &L, const string &prefix ) { 530 bdm_assert ( ytsize == Yrv._dsize(), "invalid DS: ytsize (" + num2str ( ytsize ) + ") different from Drv " + num2str ( Yrv._dsize() ) );531 bdm_assert ( utsize == Urv._dsize(), "invalid DS: utsize (" + num2str ( utsize ) + ") different from Urv " + num2str ( Urv._dsize() ) );530 bdm_assert ( dtsize == Drv._dsize(), "invalid DS: dtsize (" + num2str ( dtsize ) + ") different from Drv " + num2str ( Drv._dsize() ) ); 531 //bdm_assert ( utsize == Urv._dsize(), "invalid DS: utsize (" + num2str ( utsize ) + ") different from Urv " + num2str ( Urv._dsize() ) ); 532 532 533 533 root::log_register ( L, prefix ); 534 534 //we know that 535 535 if ( log_level.any() ) { 536 logrec->ids.set_size ( 2);537 logrec->ids ( 0 ) = logrec->L.add_vector ( Yrv, prefix );538 logrec->ids ( 1 ) = logrec->L.add_vector ( Urv, prefix );536 logrec->ids.set_size ( 1 ); 537 logrec->ids ( 0 ) = logrec->L.add_vector ( Drv, prefix ); 538 // logrec->ids ( 1 ) = logrec->L.add_vector ( Urv, prefix ); 539 539 } 540 540 } … … 542 542 void DS::log_write ( ) const { 543 543 if ( log_level.any() ) { 544 vec tmp ( Yrv._dsize() + Urv._dsize());544 vec tmp ( Drv._dsize()); 545 545 getdata ( tmp ); 546 546 // d is first in getdata 547 logrec->L.log_vector ( logrec->ids ( 0 ), tmp.left ( Yrv._dsize() ) ); 548 // u follows after d in getdata 549 logrec->L.log_vector ( logrec->ids ( 1 ), tmp.mid ( Yrv._dsize(), Urv._dsize() ) ); 547 logrec->L.log_vector ( logrec->ids ( 0 ), tmp ); 550 548 } 551 549 } -
library/bdm/base/bdmbase.h
r850 r854 891 891 892 892 class DS : public root { 893 LOG_LEVEL(DS, jednicka);893 LOG_LEVEL(DS,dt); 894 894 protected: 895 895 //! size of data returned by \c getdata() … … 908 908 //! default constructors 909 909 DS() : dtsize ( 0 ), utsize ( 0 ), ytsize ( 0 ), Drv(), Urv(), Yrv() { 910 log_level[ jednicka] = true;910 log_level[dt] = true; 911 911 }; 912 912