Commit 1818dfc5 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

implemented copy constructor for DRFFTWAFFArrayEngine

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3967
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 941baab4
......@@ -30,11 +30,12 @@
*
* REVISIONS and CHANGES
* - 16/05/2011 V1.0 Thomas Forbriger
* - 27/05/2011 V1.1 test copy constructor
*
* ============================================================================
*/
#define CXXFFTWARTEST_VERSION \
"CXXFFTWARTEST V1.0 test fftw3 array engine"
"CXXFFTWARTEST V1.1 test fftw3 array engine"
#define CXXFFTWARTEST_CVSID \
"$Id$"
......@@ -306,7 +307,8 @@ int main(int iargc, char* argv[])
{
// prepare array engine
if (opt.verbose) { cout << "create FFT array engine" << endl; }
fourier::fft::DRFFTWAFFArrayEngine engine(ntraces, nsamples);
fourier::fft::DRFFTWAFFArrayEngine primaryengine(ntraces, nsamples);
fourier::fft::DRFFTWAFFArrayEngine engine(primaryengine);
if (opt.verbose)
{
......
......@@ -29,11 +29,13 @@
*
* REVISIONS and CHANGES
* - 13/05/2011 V1.0 Thomas Forbriger
* - 27/05/2011 V1.1 added copy constructor (required for class member
* initialization)
*
* ============================================================================
*/
#define TF_FFTWAFFAR_CC_VERSION \
"TF_FFTWAFFAR_CC V1.0 "
"TF_FFTWAFFAR_CC V1.1"
#define TF_FFTWAFFAR_CC_CVSID \
"$Id$"
......@@ -67,6 +69,13 @@ namespace fourier {
/*----------------------------------------------------------------------*/
DRFFTWAFFArrayEngine::DRFFTWAFFArrayEngine(const DRFFTWAFFArrayEngine& e)
: Mseriesarray(e.Mseriesarray), Mspectrumarray(e.Mspectrumarray),
Mplanr2c(0), Mplanc2r(0)
{ }
/*----------------------------------------------------------------------*/
//! delete plan.
DRFFTWAFFArrayEngine::~DRFFTWAFFArrayEngine()
{
......
......@@ -30,6 +30,8 @@
*
* REVISIONS and CHANGES
* - 13/05/2011 V1.0 Thomas Forbriger
* - 27/05/2011 V1.1 added copy constructor (required for class member
* initialization)
*
* ============================================================================
*/
......@@ -38,7 +40,7 @@
#ifndef TF_FFTWAFFAR_H_VERSION
#define TF_FFTWAFFAR_H_VERSION \
"TF_FFTWAFFAR_H V1.0 "
"TF_FFTWAFFAR_H V1.1"
#define TF_FFTWAFFAR_H_CVSID \
"$Id$"
......@@ -94,6 +96,7 @@ namespace fourier {
const int& nsamp);
DRFFTWAFFArrayEngine(const TAseries& series,
const TAspectrum& spec);
DRFFTWAFFArrayEngine(const DRFFTWAFFArrayEngine& engine);
~DRFFTWAFFArrayEngine();
void r2c();
void c2r();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment