Show
Ignore:
Timestamp:
06/19/09 17:57:53 (15 years ago)
Author:
smidl
Message:

compilation fixes - UI_build use exceptions now!!!!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/stat/merger.h

    r388 r392  
    8181                void set_sources (const Array<mpdf*> &Sources, bool own) { 
    8282                        compositepdf::set_elements (Sources,own); 
     83                        Nsources=mpdfs.length(); 
    8384                        //set sizes 
    8485                        dls.set_size (Sources.length()); 
     
    128129                                smpi (j) = XYZ (j) (0); /* beginning of the interval*/  
    129130                                it_assert(gridsize(j)!=0.0,"Zeros in gridsize!"); 
    130                                 steps (j) = (smpi(j) - XYZ(j)(1))/gridsize(j); 
     131                                steps (j) = ( XYZ(j)(1)-smpi(j) )/gridsize(j); 
    131132                        } 
    132133                        // fill samples 
     
    138139                                for (int j = 0;j < dim;j++) { 
    139140                                        if (ind (j) == gridsize (j) - 1) { //j-th index is full 
    140                                                 ind (j) = 0; //shift back 
     141//                                              ind (j) = 0; //shift back 
    141142                                                smpi(j) = XYZ(j)(0); 
    142143                                                 
    143                                                 ind (j + 1) ++; //increase the next dimension; 
     144//                                              ind (j + 1) ++; //increase the next dimension; 
    144145                                                smpi(j+1) += steps(j+1); 
    145146                                                 
    146147                                                if (ind (j + 1) < gridsize (j + 1) - 1) break; 
    147148                                        } else { 
    148                                                 ind (j) ++;  
     149//                                              ind (j) ++;  
    149150                                                smpi(j) +=steps(j); 
    150151                                                break; 
     
    272273                                        set_method (GEOMETRIC); 
    273274                                else if (!strcmp (meth_str.c_str(), "lognormal")) { 
    274                                         set_method (GEOMETRIC); 
     275                                        set_method (LOGNORMAL); 
    275276                                        set.lookupValue( "beta",beta); 
    276277                                } 
    277278                        } 
    278                         validate(); 
    279279                } 
    280280