From dbd252d9b83ce3bbdb66021dc0ed50f5b94b7830 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Mon, 16 Nov 2020 15:33:15 -0800 Subject: Fix PSATD equations used with PML (#1513) * Implement new PML PSATD equations * Update CI test and benchmark * Compute coefficients C1,...,C22 on the fly * Add check on initial energy from diagnostics --- .../FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H index 348282dce..a4cccbc55 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PMLPsatdAlgorithm.H @@ -65,8 +65,8 @@ class PMLPsatdAlgorithm : public SpectralBaseAlgorithm std::array,3>& current) override final; private: - SpectralRealCoefficients C_coef, S_ck_coef; - + SpectralRealCoefficients C_coef, S_ck_coef, inv_k2_coef; + amrex::Real m_dt; }; #endif // WARPX_USE_PSATD -- cgit v1.2.3