From 05d1071151b437222ae472e2650e82526ecbd074 Mon Sep 17 00:00:00 2001 From: Thomas Forbriger Date: Fri, 22 Jul 2016 19:59:14 +0200 Subject: [PATCH] libstfinv [WP]: clear output Fourier coefficients when preparing next run --- src/libs/libstfinv/stfinvfourier.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/libstfinv/stfinvfourier.cc b/src/libs/libstfinv/stfinvfourier.cc index d3199fa2..d009becb 100644 --- a/src/libs/libstfinv/stfinvfourier.cc +++ b/src/libs/libstfinv/stfinvfourier.cc @@ -275,6 +275,7 @@ namespace stfinv { * All input is available as time series data in first place. * -# Copy time series data to STFFourierDomainEngine::Mfftengineinput * -# Transform time series data to Fourier domain + * -# Clear output coefficients * * This function should be called by the very first statement of the * exec-function of the derived class (e.g. STFEngineFDLeastSquares::exec). @@ -283,6 +284,7 @@ namespace stfinv { { this->getinput(); Mfftengineinput.r2c(); + Mfftengineoutput.series()=0.; } // void STFFourierDomainEngine::fftinput() /*----------------------------------------------------------------------*/ @@ -551,6 +553,10 @@ namespace stfinv { /*----------------------------------------------------------------------*/ + /*! + * Apply a time domain taper to the impulse response of the source time + * function correction filter. + */ void STFFourierDomainEngine::taperstf() { if (this->Mapplystftaper) -- GitLab