aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralFieldData.H
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2022-01-09 07:53:02 -0800
committerGravatar GitHub <noreply@github.com> 2022-01-09 07:53:02 -0800
commitbd91b3d5ba42cdf867c132bfc333fac7c887de73 (patch)
tree8dd430ee991860e5c19b7a21321da2b9a04f6d74 /Source/FieldSolver/SpectralSolver/SpectralFieldData.H
parentb673c598713a8dba4e2477caecabe7a720e13045 (diff)
downloadWarpX-bd91b3d5ba42cdf867c132bfc333fac7c887de73.tar.gz
WarpX-bd91b3d5ba42cdf867c132bfc333fac7c887de73.tar.zst
WarpX-bd91b3d5ba42cdf867c132bfc333fac7c887de73.zip
Multi-J: J Always Linear in Time (#2679)
* Remove WarpX::J_linear_in_time * Fix Bug * Implement Deposition of Rho at Half Time * Implement New Equations for E * Fix New Equations for E * Cleaning * Fix Limits of X2, X3, X7 * Implement New Equations for F * Implement New Equations for F * Revert E Equations to Avoid Roundoff Changes * Remove Quadratic Equations * Remove Deposition of Rho at Half Time Step
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralFieldData.H')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralFieldData.H26
1 files changed, 13 insertions, 13 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H
index 16f8e179c..9b748a048 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H
+++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H
@@ -39,21 +39,21 @@ class SpectralFieldIndex
* Set integer indices to access data in spectral space
* and total number of fields to be stored.
*
- * \param[in] update_with_rho whether rho is used in the field update equations
- * \param[in] time_averaging whether the time averaging algorithm is used
- * \param[in] J_linear_in_time whether to use two currents computed at the beginning and
- * the end of the time interval (instead of using one current
- * computed at half time)
- * \param[in] dive_cleaning whether to use div(E) cleaning to account for errors in
- * Gauss law (new field F in the update equations)
- * \param[in] divb_cleaning whether to use div(B) cleaning to account for errors in
- * div(B) = 0 law (new field G in the update equations)
- * \param[in] pml whether the indices are used to access spectral data
- * for the PML spectral solver
+ * \param[in] update_with_rho whether rho is used in the field update equations
+ * \param[in] time_averaging whether the time averaging algorithm is used
+ * \param[in] do_multi_J whether the multi-J algorithm is used (hence two currents
+ * computed at the beginning and the end of the time interval
+ * instead of one current computed at half time)
+ * \param[in] dive_cleaning whether to use div(E) cleaning to account for errors in
+ * Gauss law (new field F in the update equations)
+ * \param[in] divb_cleaning whether to use div(B) cleaning to account for errors in
+ * div(B) = 0 law (new field G in the update equations)
+ * \param[in] pml whether the indices are used to access spectral data
+ * for the PML spectral solver
*/
SpectralFieldIndex (const bool update_with_rho,
const bool time_averaging,
- const bool J_linear_in_time,
+ const bool do_multi_J,
const bool dive_cleaning,
const bool divb_cleaning,
const bool pml);
@@ -86,7 +86,7 @@ class SpectralFieldIndex
int Ex_avg = -1, Ey_avg = -1, Ez_avg = -1;
int Bx_avg = -1, By_avg = -1, Bz_avg = -1;
- // J linear in time
+ // Multi-J, div(E) and div(B) cleaning
int Jx_new = -1, Jy_new = -1, Jz_new = -1;
int F = -1, G = -1;