aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2021-07-21 16:58:00 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-21 23:58:00 +0000
commita5fe0b4959e3fb5da816790a1fdc8b92384ae81e (patch)
treea668c984604db53f10932e438d94b934fa6a5ddd /Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H
parent37120212d1c233a4830e9b600aed26075a9e78c5 (diff)
downloadWarpX-a5fe0b4959e3fb5da816790a1fdc8b92384ae81e.tar.gz
WarpX-a5fe0b4959e3fb5da816790a1fdc8b92384ae81e.tar.zst
WarpX-a5fe0b4959e3fb5da816790a1fdc8b92384ae81e.zip
Multi-J Algo: Make div(E)/div(B) Cleaning Optional (#2116)
* Multi-J Algo: Make div(E)/div(B) Cleaning Optional * Remove Unnecessary Newlines
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H6
1 files changed, 5 insertions, 1 deletions
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