Changeset 565 for library/bdm/base/bdmbase.cpp
- Timestamp:
- 08/19/09 16:54:24 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r545 r565 42 42 } else { 43 43 id = iter->second; 44 it_assert( RV_SIZES ( id ) == size, "RV " + name + " of different size already exists" );44 bdm_assert_debug ( RV_SIZES ( id ) == size, "RV " + name + " of different size already exists" ); 45 45 } 46 46 return id; … … 67 67 void RV::init ( const Array<std::string> &in_names, const ivec &in_sizes, const ivec &in_times ) { 68 68 len = in_names.length(); 69 it_assert_debug ( in_names.length() == in_times.length(), "check \"times\" " );70 it_assert_debug ( in_names.length() == in_sizes.length(), "check \"sizes\" " );69 bdm_assert_debug ( in_names.length() == in_times.length(), "check \"times\" " ); 70 bdm_assert_debug ( in_names.length() == in_sizes.length(), "check \"sizes\" " ); 71 71 72 72 times.set_length ( len ); … … 135 135 136 136 shared_ptr<mpdf> epdf::condition (const RV &rv) const { 137 it_warning ("Not implemented");137 bdm_warning ("Not implemented"); 138 138 return shared_ptr<mpdf>(); 139 139 } 140 140 141 141 shared_ptr<epdf> epdf::marginal (const RV &rv) const { 142 it_warning ("Not implemented");142 bdm_warning ("Not implemented"); 143 143 return shared_ptr<epdf>(); 144 144 } … … 194 194 v2v_up = rv.dataind (rv_up); 195 195 196 it_assert_debug (v2v_up.length() == downsize, "rv is not fully in rv_up");196 bdm_assert_debug (v2v_up.length() == downsize, "rv is not fully in rv_up"); 197 197 } 198 198 … … 202 202 v2v_up = upind; 203 203 204 it_assert_debug (v2v_up.length() == downsize, "rv is not fully in rv_up");204 bdm_assert_debug (v2v_up.length() == downsize, "rv is not fully in rv_up"); 205 205 } 206 206 … … 219 219 220 220 void datalink_m2e::pushup_cond (vec &val_up, const vec &val, const vec &cond) { 221 it_assert_debug (downsize == val.length(), "Wrong val");222 it_assert_debug (upsize == val_up.length(), "Wrong val_up");221 bdm_assert_debug (downsize == val.length(), "Wrong val"); 222 bdm_assert_debug (upsize == val_up.length(), "Wrong val_up"); 223 223 set_subvector (val_up, v2v_up, val); 224 224 set_subvector (val_up, v2c_up, cond); … … 259 259 } 260 260 } 261 it_assert_debug ( res.length() == dsize, "this rv is not fully present in crv!" ); 261 262 bdm_assert_debug ( res.length() == dsize, "this rv is not fully present in crv!" ); 262 263 return res; 263 264 … … 294 295 } 295 296 } 296 it_assert_debug ( selfi.length() == rv2i.length(), "this should not happen!" );297 bdm_assert_debug ( selfi.length() == rv2i.length(), "this should not happen!" ); 297 298 } 298 299 … … 322 323 void RV::from_setting ( const Setting &set ) { 323 324 Array<string> A; 324 it_assert ( !A.length(), "default array not empty" );325 325 UI::get ( A, set, "names" ); 326 326 … … 356 356 rvaddok = rv.add ( mpdfs ( i )->_rv() ); //add rv to common rvs. 357 357 // If rvaddok==false, mpdfs overlap => assert error. 358 it_assert_debug ( rvaddok || !checkoverlap, "mprod::mprod() input mpdfs overlap in rv!" );358 bdm_assert_debug ( rvaddok || !checkoverlap, "mprod::mprod() input mpdfs overlap in rv!" ); 359 359 } 360 360