Changeset 460

Show
Ignore:
Timestamp:
07/31/09 11:29:40 (15 years ago)
Author:
smidl
Message:

Correct handling of named Coms in emix::set_parameters - fixes crash of emix_test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/stat/emix.cpp

    r394 r460  
    77        dim = Coms0(0)->dimension(); 
    88        int i; 
     9        RV tmp_rv=Coms0(0)->_rv(); 
    910        for ( i=0;i<w.length();i++ ) { 
    10                 it_assert_debug ( dim== ( Coms0 ( i )->dimension() ),"Component sizes do not match!" ); 
     11                it_assert_debug ( dim== ( Coms0 ( i )->dimension() ),"Component sizes do not match!" );  
     12                it_assert_debug ( tmp_rv.equal( Coms0 ( i )->_rv() ),"Component RVs do not match!" ); 
    1113        } 
    1214        if ( copy ) { 
     
    2022                destroyComs=false; 
    2123        } 
     24        if (tmp_rv._dsize()==dim) epdf::set_rv(tmp_rv); //coms aer already OK, no need for set_rv 
    2225} 
    2326