Changeset 815 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Apr 5, 2000, 5:46:05 PM (25 years ago)
Author:
ercodmgr
Message:

Adaptation modifs TArray - Reza 5/4/2000

Location:
trunk/SophyaPI/PIext
Files:
2 edited

Legend:

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

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

    r810 r815  
    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->DataBlock().Reset(0.);}
    148 else if(typeid(*mobj)==typeid(Matrix))  {Matrix*  ob=(Matrix*) mobj; ob->DataBlock().Reset(0.);}
     147 if(typeid(*mobj)==typeid(Vector))       {Vector*  ob=(Vector*) mobj; (*ob) = 0.; }
     148// ob->DataBlock().Reset(0.);}
     149 else if(typeid(*mobj)==typeid(Matrix))   {Matrix*  ob=(Matrix*) mobj; (*ob) = 0.; }
     150//ob->DataBlock().Reset(0.);}
    149151#endif
    150152else if(typeid(*mobj)==typeid(Histo))   {Histo*   ob=(Histo*)  mobj; ob->Zero();}
Note: See TracChangeset for help on using the changeset viewer.