Show
Ignore:
Timestamp:
08/19/09 16:54:24 (15 years ago)
Author:
vbarta
Message:

using own error macros (basically copied from IT++, but never aborting)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.cpp

    r545 r565  
    4242        } else { 
    4343                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" ); 
    4545        } 
    4646        return id; 
     
    6767void RV::init ( const Array<std::string> &in_names, const ivec &in_sizes, const ivec &in_times ) { 
    6868        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\" " ); 
    7171 
    7272        times.set_length ( len ); 
     
    135135 
    136136shared_ptr<mpdf> epdf::condition (const RV &rv) const { 
    137         it_warning ("Not implemented"); 
     137        bdm_warning ("Not implemented"); 
    138138        return shared_ptr<mpdf>(); 
    139139} 
    140140 
    141141shared_ptr<epdf> epdf::marginal (const RV &rv) const { 
    142         it_warning ("Not implemented"); 
     142        bdm_warning ("Not implemented"); 
    143143        return shared_ptr<epdf>(); 
    144144} 
     
    194194        v2v_up = rv.dataind (rv_up); 
    195195 
    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"); 
    197197} 
    198198 
     
    202202        v2v_up = upind; 
    203203 
    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"); 
    205205} 
    206206 
     
    219219 
    220220void 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"); 
    223223        set_subvector (val_up, v2v_up, val); 
    224224        set_subvector (val_up, v2c_up, cond); 
     
    259259                } 
    260260        } 
    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!" ); 
    262263        return res; 
    263264 
     
    294295                } 
    295296        } 
    296         it_assert_debug ( selfi.length() == rv2i.length(), "this should not happen!" ); 
     297        bdm_assert_debug ( selfi.length() == rv2i.length(), "this should not happen!" ); 
    297298} 
    298299 
     
    322323void RV::from_setting ( const Setting &set ) { 
    323324        Array<string> A; 
    324         it_assert ( !A.length(), "default array not empty" ); 
    325325        UI::get ( A, set, "names" ); 
    326326 
     
    356356                rvaddok = rv.add ( mpdfs ( i )->_rv() ); //add rv to common rvs. 
    357357                // 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!" ); 
    359359        } 
    360360