diff --git a/Common/processfields_fd.cpp b/Common/processfields_fd.cpp index dd362d0..68227dc 100644 --- a/Common/processfields_fd.cpp +++ b/Common/processfields_fd.cpp @@ -94,7 +94,7 @@ int ProcessFieldsFD::Process() { 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 + exp_jwt_2_dt *= Op->GetTimestep() * m_FD_Interval; // multiply with timestep-interval field_fd = m_FD_Fields.at(n); for (pos[0]=0; pos[0]GetTimestep(); + m_FD_Results[i].at(n) += (double)m_Results[i] * m_weight * std::exp( -2.0 * _I * M_PI * m_FD_Samples.at(n) * time ) * 2.0 * Op->GetTimestep() * (double)m_FD_Interval; } ++m_FD_SampleCount; if (m_Flush)