Changeset 3003 in Sophya


Ignore:
Timestamp:
Jul 3, 2006, 1:05:40 PM (19 years ago)
Author:
ansari
Message:

Adaptation SphericalTransformServer a uppression const des arguments FFTForward/Backward cmv+Reza 03/07/2006

Location:
trunk/SophyaLib/Samba
Files:
2 edited

Legend:

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

    r2991 r3003  
    567567    }
    568568  TVector<complex<T> > transformedData(nph);
    569   fftIntfPtr_-> FFTForward(datain, transformedData);
     569  // Il faut avoir instancie le serveur de FFT avec l'option preserveinput=true
     570  fftIntfPtr_-> FFTForward(const_cast<TVector< complex<T> > &>(datain), transformedData);
    570571
    571572  TVector< complex<T> > dataout(nmmax+1);
     
    616617  // du vecteur reel entre est nph)
    617618  //   cout << " longueur de datain  = " << nph << endl;
    618   fftIntfPtr_-> FFTForward(datain, transformedData);
     619  // Il faut avoir instancie le serveur de FFT avec l'option preserveinput=true
     620  fftIntfPtr_-> FFTForward(const_cast< TVector<T> &>(datain), transformedData);
    619621  //  cout <<  " taille de la transformee " << transformedData.Size() << endl;
    620622  //  TVector< complex<T> > dataout(nmmax+1);
  • trunk/SophyaLib/Samba/sphericaltransformserver.h

    r2313 r3003  
    2020  SphericalTransformServer() 
    2121    {
    22       fftIntfPtr_=new FFTPackServer;
     22      fftIntfPtr_=new FFTPackServer(true); // preserveinput = true
    2323      fftIntfPtr_->setNormalize(false);
    2424    };
     
    2727 /*!
    2828 Set a fft server. The constructor sets a default fft server (fft-pack). So it is not necessary to call this method for a standard use.
     29 \warning The FFTServerInterface object should NOT overwrite the input arrays
    2930*/
    3031  void SetFFTServer(FFTServerInterface* srv=NULL)
Note: See TracChangeset for help on using the changeset viewer.