Changeset 1400 in Sophya for trunk/SophyaLib/NTools/fftpserver.cc
- Timestamp:
- Feb 13, 2001, 3:29:38 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/fftpserver.cc
r1394 r1400 132 132 ncs = 2*n-1 : ncs = 2*n-2; 133 133 134 if (out.NElts() != ncs) 134 if (out.NElts() != ncs) { 135 cerr << "DEBUG-FFTPack_ReShapetoReal() ncs = " << ncs 136 << " out.NElts()= " << out.NElts() << endl; 135 137 throw SzMismatchError("FFTPack_ReShapetoReal() - Wrong output array size !"); 136 // cerr << "DEBUG-FFTPack_ReShapetoReal() ncs = " << ncs 137 // << " out.NElts()= " << out.NElts() << endl; 138 } 138 139 139 140 sa_size_t k; … … 158 159 sa_size_t ncs = n/2+1; 159 160 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; 161 164 throw SzMismatchError("FFTPack_ReShapetoCompl() - Wrong output array size !"); 162 165 } 163 166 out(0) = complex<T> (in(0),0.); 164 167 for(int k=1;k<nc;k++)
Note:
See TracChangeset
for help on using the changeset viewer.