Changeset 723 for library/bdm/base

Show
Ignore:
Timestamp:
11/15/09 23:02:02 (15 years ago)
Author:
smidl
Message:

Big commit of LQG stuff

Location:
library/bdm/base
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.h

    r713 r723  
    796796        datalink_buffered() : datalink_part(), history ( 0 ), h2v_down ( 0 ), h2v_hist ( 0 ) {}; 
    797797        //! push current data to history 
    798         void step ( const vec &val_up ) { 
     798        void store_data ( const vec &val_up ) { 
    799799                if ( v2h_up.length() > 0 ) { 
    800800                        history.shift_right ( 0, v2h_up.length() ); 
     
    818818        void set_connection ( const RV &rv, const RV &rv_up ) { 
    819819                // create link between up and down 
    820                 datalink_part::set_connection ( rv, rv_up ); 
     820                datalink_part::set_connection ( rv, rv_up.remove_time() ); // only non-delayed version 
    821821 
    822822                // create rvs of history 
     
    871871        //! update buffer 
    872872        void step ( const vec &dt, const vec &ut ) { 
    873                 dl1.step ( dt ); 
    874                 dl2.step ( ut ); 
     873                dl1.store_data ( dt ); 
     874                dl2.store_data ( ut ); 
    875875        } 
    876876}; 
  • library/bdm/base/datasources.h

    r700 r723  
    163163        public: 
    164164                void step() { 
    165                         yt2rgr.step(yt); // y is now history 
     165                        yt2rgr.store_data(yt); // y is now history 
    166166                        ut2rgr.filldown ( ut,rgr ); 
    167167                        yt2rgr.filldown ( yt,rgr ); 
    168168                        yt=ipdf->samplecond ( rgr ); 
    169                         ut2rgr.step(ut); //u is now history 
     169                        ut2rgr.store_data(ut); //u is now history 
    170170                } 
    171171                void getdata ( vec &dt_out ) const { 
     
    175175                } 
    176176                void write(const vec &ut0){ut=ut0;} 
    177  
     177                void write(const vec &ut0, const ivec &ind){set_subvector(ut,ind,ut0);} 
     178                 
    178179                /*! 
    179180                \code