From 345feb7faa0647ec52025adb450c2855154e8111 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Mon, 6 Jul 2020 11:26:41 -0700 Subject: PSATD: add option to update E without using rho (#1128) * Introduce option to update E with/without rho * Clean up * Include equations in docs * Fix EOL whitespaces error * Small clean-up * Clean up --- Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H index eb440d118..b492d9a18 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H @@ -25,7 +25,8 @@ class PsatdAlgorithm : public SpectralBaseAlgorithm const amrex::DistributionMapping& dm, const int norder_x, const int norder_y, const int norder_z, const bool nodal, - const amrex::Real dt); + const amrex::Real dt, + const bool update_with_rho); // Redefine functions from base class virtual void pushSpectralFields(SpectralFieldData& f) const override final; virtual int getRequiredNumberOfFields() const override final { @@ -55,6 +56,7 @@ class PsatdAlgorithm : public SpectralBaseAlgorithm private: SpectralRealCoefficients C_coef, S_ck_coef, X1_coef, X2_coef, X3_coef; amrex::Real m_dt; + bool m_update_with_rho; }; #endif // WARPX_USE_PSATD -- cgit v1.2.3