aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2020-07-06 11:26:41 -0700
committerGravatar GitHub <noreply@github.com> 2020-07-06 11:26:41 -0700
commit345feb7faa0647ec52025adb450c2855154e8111 (patch)
tree10fc5525a86b9aacfef9ef537d0ee363ec505c55 /Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H
parent0a146f12b7a18159561bc74595a3853063216d3c (diff)
downloadWarpX-345feb7faa0647ec52025adb450c2855154e8111.tar.gz
WarpX-345feb7faa0647ec52025adb450c2855154e8111.tar.zst
WarpX-345feb7faa0647ec52025adb450c2855154e8111.zip
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
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H4
1 files changed, 3 insertions, 1 deletions
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