Changeset 1621 in Sophya


Ignore:
Timestamp:
Aug 6, 2001, 7:32:33 PM (24 years ago)
Author:
cmv
Message:

nom de variable douteux (pow) + SetTemp en trop cmv+rz 6/8/01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/alm.cc

    r865 r1621  
    6464  int_4 nlmax=Lmax();
    6565
    66   TVector<T>  pow(nlmax+1);
    67   pow.SetTemp(true);
     66  TVector<T>  powsp(nlmax+1);
    6867
    6968  for (int l=0; l<=nlmax;l++)
    7069    {
    71       pow(l)=( (*this)(l,0) ).real()*( (*this)(l,0) ).real();
     70      powsp(l)=( (*this)(l,0) ).real()*( (*this)(l,0) ).real();
    7271      for (int m=1; m<=l; m++)
    7372        {
    74           pow(l)+=2.*( (*this)(l,m).real()*(*this)(l,m).real()+
     73          powsp(l)+=2.*( (*this)(l,m).real()*(*this)(l,m).real()+
    7574             (*this)(l,m).imag()*(*this)(l,m).imag() );
    7675        }
    77       pow(l)/=(2.*l+1.);
     76      powsp(l)/=(2.*l+1.);
    7877    }
    79   return pow;
     78  return powsp;
    8079}
    8180
Note: See TracChangeset for help on using the changeset viewer.