Changeset 620 for library/bdm/base
- Timestamp:
- 09/16/09 14:47:36 (15 years ago)
- Location:
- library/bdm/base
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r604 r620 76 76 void RV::init ( const Array<std::string> &in_names, const ivec &in_sizes, const ivec &in_times ) { 77 77 len = in_names.length(); 78 bdm_assert _debug( in_names.length() == in_times.length(), "check \"times\" " );79 bdm_assert _debug( in_names.length() == in_sizes.length(), "check \"sizes\" " );78 bdm_assert ( in_names.length() == in_times.length(), "check \"times\" " ); 79 bdm_assert ( in_names.length() == in_sizes.length(), "check \"sizes\" " ); 80 80 81 81 times.set_length ( len ); -
library/bdm/base/bdmbase.h
r619 r620 35 35 //!Default constructor 36 36 str ( ivec ids0, ivec times0 ) : ids ( ids0 ), times ( times0 ) { 37 bdm_assert _debug( times0.length() == ids0.length(), "Incompatible input" );37 bdm_assert ( times0.length() == ids0.length(), "Incompatible input" ); 38 38 }; 39 39 }; … … 183 183 //! returns name of a scalar at position scalat, i.e. it can be in the middle of vector name, in that case it adds "_%d" to it 184 184 std::string scalarname ( int scalat ) const { 185 bdm_assert _debug(scalat<dsize,"Wrong input index");185 bdm_assert(scalat<dsize,"Wrong input index"); 186 186 int id=0; 187 187 int scalid=0; … … 995 995 //! Register DS for logging into logger L 996 996 virtual void log_add ( logger &L ) { 997 bdm_assert _debug( dtsize == Drv._dsize(), "invalid DS: dtsize (" + num2str ( dtsize ) + ") different from Drv " + num2str ( Drv._dsize() ) );998 bdm_assert _debug( utsize == Urv._dsize(), "invalid DS: utsize (" + num2str ( utsize ) + ") different from Urv " + num2str ( Urv._dsize() ) );997 bdm_assert ( dtsize == Drv._dsize(), "invalid DS: dtsize (" + num2str ( dtsize ) + ") different from Drv " + num2str ( Drv._dsize() ) ); 998 bdm_assert ( utsize == Urv._dsize(), "invalid DS: utsize (" + num2str ( utsize ) + ") different from Urv " + num2str ( Urv._dsize() ) ); 999 999 1000 1000 L_dt = L.add ( Drv, "" ); -
library/bdm/base/loggers.h
r611 r620 49 49 50 50 void logit ( int id, const vec &v ) { 51 bdm_assert _debug( id < vectors.length(), "Logger was not initialized, run init()." );51 bdm_assert ( id < vectors.length(), "Logger was not initialized, run init()." ); 52 52 if ( id >= 0 ) { 53 53 vectors ( id ).set_row ( ind, v ); -
library/bdm/base/user_info.h
r600 r620 321 321 322 322 root *typeless_instance = related_UI.new_instance(); 323 bdm_assert _debug( typeless_instance, "UI::new_instance failed" );323 bdm_assert ( typeless_instance, "UI::new_instance failed" ); 324 324 325 325 instance = dynamic_cast<T*> ( typeless_instance ); … … 351 351 T *tmp_inst = 0; 352 352 from_setting ( tmp_inst, element ); 353 bdm_assert _debug( tmp_inst, "UI::from_setting failed" );353 bdm_assert ( tmp_inst, "UI::from_setting failed" ); 354 354 instance = tmp_inst; 355 355 }