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/stat/discrete.h

    r564 r565  
    5555                        void initialize() { 
    5656                                dim = ranges.length(); 
    57                                 it_assert_debug(gridsizes.length()==dim,"Incompatible dimensions of input"); 
     57                                bdm_assert_debug(gridsizes.length() == dim, "Incompatible dimensions of input"); 
    5858                                Npoints = prod(gridsizes); 
    59                                 it_assert_debug(Npoints>0,"Wrong input parameters"); 
     59                                bdm_assert_debug(Npoints > 0, "Wrong input parameters"); 
    6060                                 
    6161                                //precompute steps 
     
    7171                                vec v ( dim ); 
    7272                                for ( int j = 0; j < dim; j++ ) { 
    73                                         it_assert_debug(inds(j)<gridsizes(j), "Index out of bounds"); 
     73                                        bdm_assert_debug(inds(j) < gridsizes(j), "Index out of bounds"); 
    7474                                        v ( j ) = ranges(j)(0) + (0.5+inds(j))*steps(j); 
    7575                                } 
     
    8080                        long linear_index (const ivec inds){ 
    8181                                long ind=0; 
    82                                 it_assert_debug(inds.length()==dim,"Improper indeces inds"); 
     82                                bdm_assert_debug(inds.length() == dim, "Improper indices inds"); 
    8383                                int dim_skips=1; // skips in active dimension, in the first dimension, the skips are 1 index per value 
    8484