Changeset 810 in Sophya


Ignore:
Timestamp:
Apr 3, 2000, 7:46:32 PM (25 years ago)
Author:
ercodmgr
Message:

Adaptation modifs TArray<T>,PPersist - Reza 03/04/2000

Location:
trunk/SophyaPI/PIext
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nomskymapadapter.cc

    r594 r810  
    173173  int_4 nl = mtx.NRows();
    174174  int_4 nc = mtx.NCols();
    175   mtx.Reset(defval);   // On met tout a defval
     175  mtx.DataBlock().Reset(defval);   // On met tout a defval
    176176//  cout << " NRows= " << nl << "  NCols= " << nc  << endl;
    177177  for(l=0; l<nl; l++) {
  • trunk/SophyaPI/PIext/nomtmatvecadapter.cc

    r719 r810  
    1111#include "pitvmaad.h"
    1212
     13#include "fioarr.h"
    1314
    1415
     
    5960TVector<T>* v = dynamic_cast<TVector<T> *>(mMtx);
    6061if (v != NULL) {
    61   FIO_TVector<T> fio(v);
     62  FIO_TArray<T> fio(v);
    6263  fio.Write(pos, nom);
    6364  }
    6465else {
    65   FIO_TMatrix<T> fio(mMtx);
     66  FIO_TArray<T> fio(mMtx);
    6667  fio.Write(pos, nom);
    6768  }
  • trunk/SophyaPI/PIext/pawexecut.cc

    r685 r810  
    145145else if(typeid(*mobj)==typeid(Matrix))  {Matrix*  ob=(Matrix*) mobj; ob->Zero();}
    146146#else
    147 if(typeid(*mobj)==typeid(Vector))       {Vector*  ob=(Vector*) mobj; ob->Reset(0.);}
    148 else if(typeid(*mobj)==typeid(Matrix))  {Matrix*  ob=(Matrix*) mobj; ob->Reset(0.);}
     147if(typeid(*mobj)==typeid(Vector))       {Vector*  ob=(Vector*) mobj; ob->DataBlock().Reset(0.);}
     148else if(typeid(*mobj)==typeid(Matrix))  {Matrix*  ob=(Matrix*) mobj; ob->DataBlock().Reset(0.);}
    149149#endif
    150150else if(typeid(*mobj)==typeid(Histo))   {Histo*   ob=(Histo*)  mobj; ob->Zero();}
Note: See TracChangeset for help on using the changeset viewer.