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/math/square_mat.cpp

    r536 r565  
    3535}; 
    3636fsqmat::fsqmat ( const mat &M0 ) : sqmat ( M0.cols() ) { 
    37         it_assert_debug ( ( M0.cols() == M0.rows() ), "M0 must be square" ); 
     37        bdm_assert_debug ( ( M0.cols() == M0.rows() ), "M0 must be square" ); 
    3838        M = M0; 
    3939}; 
     
    6565ldmat::ldmat ( const mat &V ) : sqmat ( V.cols() ) { 
    6666 
    67         it_assert_debug ( dim == V.rows(), "ldmat::ldmat matrix V is not square!" ); 
     67        bdm_assert_debug ( dim == V.rows(), "ldmat::ldmat matrix V is not square!" ); 
    6868 
    6969        // L and D will be allocated by ldform() 
     
    8181        double *rraw = r._data(); 
    8282 
    83         it_assert_debug ( v.length() == dim, "LD::ldupdt vector v is not compatible with this ld." ); 
     83        bdm_assert_debug ( v.length() == dim, "LD::ldupdt vector v is not compatible with this ld." ); 
    8484 
    8585        for ( int i = dim - 1; i >= 0; i-- ) { 
     
    123123        int dim = D.length(); 
    124124 
    125         it_assert_debug ( ld2.D.length() == dim, "LD.add() incompatible sizes of LDs;" ); 
     125        bdm_assert_debug ( ld2.D.length() == dim, "LD.add() incompatible sizes of LDs" ); 
    126126 
    127127        //Fixme can be done more efficiently either via dydr or ldform 
     
    231231        int mn = ( m < n ) ? m : n ; 
    232232 
    233 //      it_assert_debug( A.cols()==dim,"ldmat::ldform A is not compatible" ); 
    234         it_assert_debug ( D0.length() == A.rows(), "ldmat::ldform Vector D must have the length as row count of A" ); 
     233        bdm_assert_debug ( D0.length() == A.rows(), "ldmat::ldform Vector D must have the length as row count of A" ); 
    235234 
    236235        L = concat_vertical ( zeros ( n, n ), diag ( sqrt ( D0 ) ) * A ); 
     
    389388                *kr = 0.0; 
    390389                if ( *Df < -threshold ) { 
    391                         it_warning ( "Problem in dydr: subraction of dyad results in negative definitness. Likely mistake in calling function." ); 
     390                        bdm_warning ( "Problem in dydr: subraction of dyad results in negative definitness. Likely mistake in calling function." ); 
    392391                } 
    393392                *Df = 0.0;