From a5fe0b4959e3fb5da816790a1fdc8b92384ae81e Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Wed, 21 Jul 2021 16:58:00 -0700 Subject: Multi-J Algo: Make div(E)/div(B) Cleaning Optional (#2116) * Multi-J Algo: Make div(E)/div(B) Cleaning Optional * Remove Unnecessary Newlines --- .../FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H | 6 +++++- 1 file changed, 5 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 f7cd06edf..1df77f6f3 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H @@ -58,7 +58,9 @@ class PsatdAlgorithm : public SpectralBaseAlgorithm const amrex::Real dt, const bool update_with_rho, const bool time_averaging, - const bool J_linear_in_time); + const bool J_linear_in_time, + const bool dive_cleaning, + const bool divb_cleaning); /** * \brief Updates the E and B fields in spectral space, according to the relevant PSATD equations @@ -165,6 +167,8 @@ class PsatdAlgorithm : public SpectralBaseAlgorithm bool m_update_with_rho; bool m_time_averaging; bool m_J_linear_in_time; + bool m_dive_cleaning; + bool m_divb_cleaning; bool m_is_galilean; }; #endif // WARPX_USE_PSATD -- cgit v1.2.3