diff --git a/Common/processfields_fd.cpp b/Common/processfields_fd.cpp index 4057535..dd362d0 100644 --- a/Common/processfields_fd.cpp +++ b/Common/processfields_fd.cpp @@ -92,7 +92,9 @@ int ProcessFieldsFD::Process() unsigned int pos[3]; for (size_t n = 0; n exp_jwt = std::exp( (std::complex)(-2.0 * _I * M_PI * m_FD_Samples.at(n) * T) ); + std::complex exp_jwt_2_dt = std::exp( (std::complex)(-2.0 * _I * M_PI * m_FD_Samples.at(n) * T) ); + exp_jwt_2_dt *= 2; // *2 for single-sided spectrum + exp_jwt_2_dt *= Op->GetTimestep(); // multiply with timestep field_fd = m_FD_Fields.at(n); for (pos[0]=0; pos[0]GetTimestep(); } ++m_FD_SampleCount; if (m_Flush)