Changeset 966

Show
Ignore:
Timestamp:
05/21/10 00:44:35 (14 years ago)
Author:
smidl
Message:

Check connections between DS and Est

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/bdmtoolbox/mex/estimator.cpp

    r944 r966  
    151151        Array<datalink_buffered*> Dls_buf (0); 
    152152        for ( int i=0; i<Es.length(); i++ ) { 
     153                //check if they are properly named 
     154                bdm_assert(Es(i)->_yrv()._dsize() == Es(i)->dimensiony(), "Estimator["+num2str(i)+"] does not name yrv properly." 
     155                "size(yrv)="+num2str(Es(i)->_yrv()._dsize() ) + ", declared dimension of y="+num2str(Es(i)->dimensiony())); 
     156                bdm_assert(Es(i)->_rvc()._dsize() == Es(i)->dimensionc(), "Estimator["+num2str(i)+"] does not name rvc properly." 
     157                "size(rvc)="+num2str(Es(i)->_rvc()._dsize() ) + ", declared dimension of rvc="+num2str(Es(i)->dimensionc())); 
    153158                //connect actual data 
    154159                Dls ( i ) = new datalink ( Es ( i )->_yrv(),Ds->_drv() ); //datalink between a datasource and estimator 
     
    165170                        Dlsc(i)->set_connection ( Es ( i )->_rvc(),Ds->_drv() ); //datalink between a datasource and estimator 
    166171                         
     172                        bdm_assert_debug(Dlsc(i)->_downsize() == Es ( i )->_rvc()._dsize(), "Data required by Est[" + num2str(i) + "], " +  
     173                        Es(i)->_rvc().to_string() + ", are not available in DS drv:" + Ds->_drv().to_string();); 
    167174                } else { 
    168175                        Dlsc ( i ) = new datalink ( Es ( i )->_rvc(),Ds->_drv() ); //datalink between a datasource and estimator