Changeset 1400 in Sophya for trunk/SophyaLib/NTools/fftpserver.cc


Ignore:
Timestamp:
Feb 13, 2001, 3:29:38 PM (25 years ago)
Author:
ansari
Message:

Modifs-debug FFTServerInterface FFTPackServer - Reza 13/2/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/fftpserver.cc

    r1394 r1400  
    132132                    ncs = 2*n-1 : ncs = 2*n-2;
    133133
    134   if (out.NElts() != ncs)
     134  if (out.NElts() != ncs) {
     135     cerr << "DEBUG-FFTPack_ReShapetoReal() ncs = " << ncs
     136          << " out.NElts()= " << out.NElts() << endl;
    135137    throw SzMismatchError("FFTPack_ReShapetoReal() - Wrong output array size !");
    136     //    cerr << "DEBUG-FFTPack_ReShapetoReal() ncs = " << ncs
    137     //   << " out.NElts()= " << out.NElts() << endl;
     138  }
    138139
    139140  sa_size_t k;
     
    158159  sa_size_t ncs = n/2+1;
    159160  sa_size_t nc = (n%2 != 0) ? n/2+1 : n/2;
    160   if (out.NElts() != ncs)
     161  if (out.NElts() != ncs) {
     162    cerr << "DBG-ReShapetoCompl() ncs=" << ncs
     163         << " out.NElts()= " << out.NElts() << endl;
    161164    throw SzMismatchError("FFTPack_ReShapetoCompl() - Wrong output array size !");
    162 
     165  }
    163166  out(0) = complex<T> (in(0),0.);
    164167  for(int k=1;k<nc;k++)
Note: See TracChangeset for help on using the changeset viewer.